WebDriverOptions
WebDriverOptions is responsible for configuring the IDriverWeb instance (e.g. Selenium’s WebDriver).
var config = new WebDriverOptions{ Headless = false};Properties
Section titled “Properties”Headless
Section titled “Headless”Description: Whether the driver should run in a headless state or not.
Type: bool
Browser
Section titled “Browser”Description: The browser to run a test against
Type: Browser
Supported Browsers
Section titled “Supported Browsers”| Browser | API Reference |
|---|---|
| Chrome | Browser.Chrome |
| Edge | Browser.Edge |
| Firefox | Browser.Firefox |
| Safari | Browser.Safari |
EmulatedDeviceName
Section titled “EmulatedDeviceName”Description: The target emulated device (e.g. iPhone 12 Pro).
Note: Mobile emulation is only supported in
ChromeandEdge
Type: string
You can specify an
EmulatedDeviceNameeither via a plain ole string you write yourself, or via a list of supported devices in ourDeviceclass. YourEmulatedDeviceNamemust match 1:1 with thetitleof the device in Chrome/Edge’s preferences.
Supported Devices via the Device class
Section titled “Supported Devices via the Device class”| Device | API Reference |
|---|---|
| iPhone 12 Pro | Device.IPhone12Pro |
| iPhone SE | Device.IPhoneSE |
| iPad Air | Device.IPadAir |
| iPad Mini | Device.IPadMini |
| Nest Hub | Device.NestHub |
| Nest Hub Max | Device.NestHubMax |
| Samsung Galaxy S8+ | Device.SamsungGalaxyS8Plus |
| Samsung Galaxy S20 Ultra | Device.SamsungGalaxyS20Ultra |
| Samsung Galaxy Fold | Device.SamsungGalaxyFold |