Skip to content

Commit

Permalink
[#262] added n-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry.bogatko committed Sep 17, 2024
1 parent 1af433f commit a796a3e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion Aquality.Selenium/src/Aquality.Selenium/Browsers/Browser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public class Browser : IApplication
/// <summary>
/// Instantiate browser.
/// </summary>
/// <param name="webDriver">Instance of Selenium WebDriver for desired web browser.</param>
/// <param name="driverContext">Context of the webdriver (for example: DriverService is a part of context)</param>
public Browser(DriverContext driverContext)
{
Expand All @@ -57,6 +56,10 @@ public Browser(DriverContext driverContext)
/// </summary>
/// <value>Instance of Selenium WebDriver for desired web browser.</value>
public WebDriver Driver { get; }

/// <summary>
/// Container of WebDriver and other objects which are involved into webdriver instantiation process
/// </summary>
public DriverContext DriverContext { get; }

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ public class DriverContext
public WebDriver Driver { get; set; }
public DriverService? DriverService { get; set; }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ protected override DriverContext DriverContext
var config = new OperaConfig();
var operaSettings = (OperaSettings)driverSettings;
var driverPath = new DriverManager().SetUpDriver(config, operaSettings.WebDriverVersion, operaSettings.SystemArchitecture);
driverCtx = GetDriver<ChromeDriver>(
() => ChromeDriverService.CreateDefaultService(Path.GetDirectoryName(driverPath), config.GetBinaryName()),
driverCtx = GetDriver<ChromeDriver>(() => ChromeDriverService.CreateDefaultService(Path.GetDirectoryName(driverPath), config.GetBinaryName()),
(ChromeOptions)driverSettings.DriverOptions, commandTimeout);
break;
case BrowserName.Safari:
Expand Down

0 comments on commit a796a3e

Please sign in to comment.