Package com.crawljax.core.configuration
Class BrowserOptions
- java.lang.Object
-
- com.crawljax.core.configuration.BrowserOptions
-
public class BrowserOptions extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intMACBOOK_PRO_RETINA_PIXEL_DENSITYprivate intpixelDensityprivate org.openqa.selenium.firefox.FirefoxProfileprofileprivate booleanUSE_CDPa flag available for chrome (use chrome developer tools)
-
Constructor Summary
Constructors Constructor Description BrowserOptions()BrowserOptions(boolean USE_CDP)BrowserOptions(int pixelDensity)BrowserOptions(int pixelDensity, boolean USE_CDP)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPixelDensity()org.openqa.selenium.firefox.FirefoxProfilegetProfile()booleanisUSE_CDP()voidsetPixelDensity(int pixelDensity)voidsetProfile(org.openqa.selenium.firefox.FirefoxProfile profile)voidsetUSE_CDP(boolean USE_CDP)Enables/Disables usage of Chrome Developer Protocol (CDP)StringtoString()
-
-
-
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 constantUSE_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)
-
-