public class BrowserOptions extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MACBOOK_PRO_RETINA_PIXEL_DENSITY |
| Constructor and Description |
|---|
BrowserOptions() |
BrowserOptions(boolean headless) |
BrowserOptions(boolean headless,
int pixelDensity) |
BrowserOptions(int pixelDensity) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPixelDensity() |
boolean |
isHeadless() |
String |
toString() |
public static final int MACBOOK_PRO_RETINA_PIXEL_DENSITY
public BrowserOptions()
public BrowserOptions(boolean headless)
headless - Set true for Chrome and Firefox browsers to run them in headless modepublic BrowserOptions(int pixelDensity)
pixelDensity - Specify the device scale factor or pixel density : For MacBook Pro, it is 2: use
the MACBOOK_PRO_RETINA_PIXEL_DENSITY constantpublic BrowserOptions(boolean headless,
int pixelDensity)
headless - Set true for Chrome and Firefox browsers to run them in headless modepixelDensity - Specify the device scale factor or pixel density : For MacBook Pro, it is 2: use
the MACBOOK_PRO_RETINA_PIXEL_DENSITY constantCopyright © 2007–2019. All rights reserved.