Class DevToolsWrapper

java.lang.Object
com.vaadin.flow.testutil.DevToolsWrapper

public class DevToolsWrapper extends Object
  • Constructor Details

    • DevToolsWrapper

      public DevToolsWrapper(org.openqa.selenium.WebDriver driver)
  • Method Details

    • 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.