C# Class Selenium.Extensions.WebDriverManager

Mostra file Open project: Jayman1305/Selenium.Extensions

Public Properties

Property Type Description
ScreenShotCounter int
TestOutputHelper ITestOutputHelper
TestWebDriver ITestWebDriver

Private Properties

Property Type Description
AttachDriverEvents IWebDriver
ExceptionThrown void
FindElementCompleted void
FindingElement void
Navigated void
NavigatedBack void
NavigatedForward void
ValidateSavePaths TestSettings

Public Methods

Method Description
InitializeInstalledBrowserDriver ( TestSettings testSettings, ITestOutputHelper testOutputHelper ) : ITestWebDriver

Gets the web driver for locally installed browsers.

InitializeMultiBrowserEmulatorDriver ( TestSettings testSettings, Emulator emulator, DeviceOrientation orientation, ITestOutputHelper testOutputHelper ) : ITestWebDriver

Gets the multi browser emulator web driver.

InitializeSauceLabsDriver ( string browserName, string os, string apiName, string device, string version, TestSettings testSettings, DeviceOrientation deviceOrientation, ITestOutputHelper testOutputHelper ) : ITestWebDriver

Gets the sauce labs web driver.

InitializeStandaloneBrowserDriver ( TestSettings testSettings, decimal browserVersion, ITestOutputHelper testOutputHelper ) : ITestWebDriver

Gets the web driver for standalone browsers.

ValidateDriverPresentOrUnblocked ( WebDriverType webDriverType, string driverLocation ) : string

Private Methods

Method Description
AttachDriverEvents ( IWebDriver driver ) : IWebDriver
ExceptionThrown ( object sender, OpenQA.Selenium.Support.Events.WebDriverExceptionEventArgs e ) : void
FindElementCompleted ( object sender, OpenQA.Selenium.Support.Events.FindElementEventArgs e ) : void
FindingElement ( object sender, OpenQA.Selenium.Support.Events.FindElementEventArgs e ) : void
Navigated ( object sender, WebDriverNavigationEventArgs e ) : void
NavigatedBack ( object sender, WebDriverNavigationEventArgs e ) : void
NavigatedForward ( object sender, WebDriverNavigationEventArgs e ) : void
ValidateSavePaths ( TestSettings testSettings ) : TestSettings

Validates the save path.

Method Details

InitializeInstalledBrowserDriver() public static method

Gets the web driver for locally installed browsers.
The details you specified are invalid The details you specified are invalid
public static InitializeInstalledBrowserDriver ( TestSettings testSettings, ITestOutputHelper testOutputHelper ) : ITestWebDriver
testSettings TestSettings The test settings.
testOutputHelper ITestOutputHelper The test output helper.
return ITestWebDriver

InitializeMultiBrowserEmulatorDriver() public static method

Gets the multi browser emulator web driver.
public static InitializeMultiBrowserEmulatorDriver ( TestSettings testSettings, Emulator emulator, DeviceOrientation orientation, ITestOutputHelper testOutputHelper ) : ITestWebDriver
testSettings TestSettings The test settings.
emulator Emulator The emulator.
orientation DeviceOrientation The device orientation.
testOutputHelper ITestOutputHelper The test output helper.
return ITestWebDriver

InitializeSauceLabsDriver() public static method

Gets the sauce labs web driver.
Selenium settings not set.
public static InitializeSauceLabsDriver ( string browserName, string os, string apiName, string device, string version, TestSettings testSettings, DeviceOrientation deviceOrientation, ITestOutputHelper testOutputHelper ) : ITestWebDriver
browserName string The full browser name.
os string The operating system.
apiName string The api name.
device string The device name.
version string The version name.
testSettings TestSettings The test settings.
deviceOrientation DeviceOrientation The device orientation.
testOutputHelper ITestOutputHelper The test output helper.
return ITestWebDriver

InitializeStandaloneBrowserDriver() public static method

Gets the web driver for standalone browsers.
public static InitializeStandaloneBrowserDriver ( TestSettings testSettings, decimal browserVersion, ITestOutputHelper testOutputHelper ) : ITestWebDriver
testSettings TestSettings The test settings.
browserVersion decimal The browser version.
testOutputHelper ITestOutputHelper The test output helper.
return ITestWebDriver

ValidateDriverPresentOrUnblocked() public static method

public static ValidateDriverPresentOrUnblocked ( WebDriverType webDriverType, string driverLocation ) : string
webDriverType WebDriverType
driverLocation string
return string

Property Details

ScreenShotCounter public_oe static_oe property

public static int ScreenShotCounter
return int

TestOutputHelper public_oe static_oe property

public static ITestOutputHelper TestOutputHelper
return ITestOutputHelper

TestWebDriver public_oe static_oe property

public static ITestWebDriver TestWebDriver
return ITestWebDriver