Skip to content

Commit

Permalink
Added commandTimeout (the maximum amount of time to wait for each com…
Browse files Browse the repository at this point in the history
…mand) to the FirefoxDriver
  • Loading branch information
raczeja committed Oct 21, 2016
1 parent f061305 commit a67aed9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Objectivity.Test.Automation.Common/DriverContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -396,12 +396,12 @@ public void Start()
switch (BaseConfiguration.TestBrowser)
{
case BrowserType.Firefox:
this.driver = new FirefoxDriver(this.FirefoxProfile);
this.driver = new FirefoxDriver(new FirefoxBinary(), this.FirefoxProfile, TimeSpan.FromSeconds(BaseConfiguration.LongTimeout));
break;
case BrowserType.FirefoxPortable:
var profile = this.FirefoxProfile;
var firefoxBinary = new FirefoxBinary(BaseConfiguration.FirefoxPath);
this.driver = new FirefoxDriver(firefoxBinary, profile);
this.driver = new FirefoxDriver(firefoxBinary, profile, TimeSpan.FromSeconds(BaseConfiguration.LongTimeout));
break;
case BrowserType.InternetExplorer:
this.driver = new InternetExplorerDriver(this.InternetExplorerProfile);
Expand Down

0 comments on commit a67aed9

Please sign in to comment.