Class DevToolsWrapper


  • public class DevToolsWrapper
    extends Object
    • Constructor Detail

      • DevToolsWrapper

        public DevToolsWrapper​(org.openqa.selenium.WebDriver driver)
    • 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()