Package com.vaadin.flow.testutil
Class DevToolsWrapper
java.lang.Object
com.vaadin.flow.testutil.DevToolsWrapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetCacheDisabled(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.
-
Constructor Details
-
DevToolsWrapper
public DevToolsWrapper(org.openqa.selenium.WebDriver driver)
-
-
Method Details
-
setOfflineEnabled
Controls the throttling `Offline` option in DevTools via the corresponding Selenium API.- Parameters:
isEnabled- whether to enable the offline mode.
-
setCacheDisabled
Controls the `Disable cache` option in DevTools via the corresponding Selenium API.- Parameters:
isDisabled- whether to disable the browser cache.
-