Package com.vaadin.flow.testutil
Class DevToolsWrapper
- java.lang.Object
-
- com.vaadin.flow.testutil.DevToolsWrapper
-
public class DevToolsWrapper extends Object
-
-
Constructor Summary
Constructors Constructor Description DevToolsWrapper(org.openqa.selenium.WebDriver driver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidsetCacheDisabled(Boolean isDisabled)Controls the `Disable cache` option in DevTools via the corresponding Selenium API.voidsetOfflineEnabled(Boolean isEnabled)Controls the throttling `Offline` option in DevTools via the corresponding Selenium API.
-
-
-
Method Detail
-
setOfflineEnabled
public void setOfflineEnabled(Boolean isEnabled)
Controls the throttling `Offline` option in DevTools via the corresponding Selenium API.- Parameters:
isEnabled- whether to enable the offline mode.
-
setCacheDisabled
public void setCacheDisabled(Boolean isDisabled)
Controls the `Disable cache` option in DevTools via the corresponding Selenium API.- Parameters:
isDisabled- whether to disable the browser cache.
-
close
public void close()
-
-