Skip to content

WebDriverOptions

WebDriverOptions is responsible for configuring the IDriverWeb instance (e.g. Selenium’s WebDriver).

Usage

var config = new WebDriverOptions
{
Headless = false
};

Properties

Headless

Description: Whether the driver should run in a headless state or not.

Type: bool

Browser

Description: The browser to run a test against

Type: Browser

Supported Browsers

BrowserAPI Reference
ChromeBrowser.Chrome
EdgeBrowser.Edge
FirefoxBrowser.Firefox
SafariBrowser.Safari

EmulatedDeviceName

Description: The target emulated device (e.g. iPhone 12 Pro).

Note: Mobile emulation is only supported in Chrome and Edge

Type: string

You can specify an EmulatedDeviceName either via a plain ole string you write yourself, or via a list of supported devices in our Device class. Your EmulatedDeviceName must match 1:1 with the title of the device in Chrome/Edge’s preferences.

Supported Devices via the Device class

DeviceAPI Reference
iPhone 12 ProDevice.IPhone12Pro
iPhone SEDevice.IPhoneSE
iPad AirDevice.IPadAir
iPad MiniDevice.IPadMini
Nest HubDevice.NestHub
Nest Hub MaxDevice.NestHubMax
Samsung Galaxy S8+Device.SamsungGalaxyS8Plus
Samsung Galaxy S20 UltraDevice.SamsungGalaxyS20Ultra
Samsung Galaxy FoldDevice.SamsungGalaxyFold