From a67aed981b05f6f2ea1267a93c5861550b32a6de Mon Sep 17 00:00:00 2001 From: Jakub Raczek Date: Fri, 21 Oct 2016 11:41:56 +0200 Subject: [PATCH] Added commandTimeout (the maximum amount of time to wait for each command) to the FirefoxDriver --- Objectivity.Test.Automation.Common/DriverContext.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Objectivity.Test.Automation.Common/DriverContext.cs b/Objectivity.Test.Automation.Common/DriverContext.cs index a0f61d82d..7c0bbe1e4 100644 --- a/Objectivity.Test.Automation.Common/DriverContext.cs +++ b/Objectivity.Test.Automation.Common/DriverContext.cs @@ -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);