Skip to content

Commit

Permalink
[#262] refactoring of BrowserFactory.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry.bogatko committed Sep 18, 2024
1 parent d09a50d commit 5a06b8a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ public virtual Browser Browser
{
var driverCtx = ActionRetrier.DoWithRetry(() => DriverContext,
new[] { typeof(WebDriverException), typeof(InvalidOperationException) });

Browser browser;
browser = driverCtx != null

var browser = driverCtx != null
? new Browser(driverCtx.Driver, driverCtx.DriverService)
: new Browser(ActionRetrier.DoWithRetry(() => Driver, new[] { typeof(WebDriverException), typeof(InvalidOperationException) }));

Expand Down

0 comments on commit 5a06b8a

Please sign in to comment.