Class BrowserOptions


  • public class BrowserOptions
    extends Object
    • Field Detail

      • MACBOOK_PRO_RETINA_PIXEL_DENSITY

        public static final int MACBOOK_PRO_RETINA_PIXEL_DENSITY
        See Also:
        Constant Field Values
      • pixelDensity

        private int pixelDensity
      • profile

        private org.openqa.selenium.firefox.FirefoxProfile profile
      • USE_CDP

        private boolean USE_CDP
        a flag available for chrome (use chrome developer tools)
    • Constructor Detail

      • BrowserOptions

        public BrowserOptions()
      • BrowserOptions

        public BrowserOptions​(int pixelDensity)
        Parameters:
        pixelDensity - Specify the device scale factor or pixel density : For MacBook Pro, it is 2: use the MACBOOK_PRO_RETINA_PIXEL_DENSITY constant
      • BrowserOptions

        public BrowserOptions​(int pixelDensity,
                              boolean USE_CDP)
        Parameters:
        pixelDensity - Specify the device scale factor or pixel density : For MacBook Pro, it is 2: use the MACBOOK_PRO_RETINA_PIXEL_DENSITY constant
        USE_CDP - Set true if you want to enable chrome developer tools (Used in clickable detection)
      • BrowserOptions

        public BrowserOptions​(boolean USE_CDP)
        Parameters:
        USE_CDP - Set true if you want to enable chrome developer tools (Used in clickable detection)
    • Method Detail

      • isUSE_CDP

        public boolean isUSE_CDP()
      • setUSE_CDP

        public void setUSE_CDP​(boolean USE_CDP)
        Enables/Disables usage of Chrome Developer Protocol (CDP)
        Parameters:
        USE_CDP -
      • getPixelDensity

        public int getPixelDensity()
      • setPixelDensity

        public void setPixelDensity​(int pixelDensity)
      • getProfile

        public org.openqa.selenium.firefox.FirefoxProfile getProfile()
      • setProfile

        public void setProfile​(org.openqa.selenium.firefox.FirefoxProfile profile)