Skip to content

Commit

Permalink
Merge pull request #3951 from Ginger-Automation/BugFix/RemoteWebDrive…
Browse files Browse the repository at this point in the history
…rAgentNotWorking

Remote Web Driver Node installation package file download working
  • Loading branch information
Maheshkale447 authored Oct 3, 2024
2 parents d3b4460 + f6e81c4 commit 5b57c75
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
#endregion

using Amdocs.Ginger.Common;
using Amdocs.Ginger.Common.Drivers.CoreDrivers.Web;
using GingerCore;
using GingerCore.Drivers;
using System;
Expand Down Expand Up @@ -197,6 +198,7 @@ private void GetNodeFilesButton_Click(object sender, RoutedEventArgs e)
string IEDriverFile = "IEDriverServer.exe";
string EdgeDriverFile = "msedgedriver.exe";
SeleniumDriver seleniumDriver = new SeleniumDriver();
seleniumDriver.BrowserType = WebBrowserType.Chrome;
string chromeSourceFile = seleniumDriver.GetDriverPath(SeleniumDriver.eBrowserType.Chrome);
string chromeDestFile = System.IO.Path.Combine(targetPath, chromeDriverFile);

Expand All @@ -212,7 +214,7 @@ private void GetNodeFilesButton_Click(object sender, RoutedEventArgs e)
}

}

seleniumDriver.BrowserType = WebBrowserType.FireFox;
string fireFoxSourceFile = seleniumDriver.GetDriverPath(SeleniumDriver.eBrowserType.FireFox);
string fireFoxDestFile = System.IO.Path.Combine(targetPath, fireFoxDriverFile);

Expand All @@ -228,7 +230,7 @@ private void GetNodeFilesButton_Click(object sender, RoutedEventArgs e)
Reporter.ToLog(eLogLevel.DEBUG, "firefox Driver not found");
}
}

seleniumDriver.BrowserType = WebBrowserType.InternetExplorer;
string IESourceFile = seleniumDriver.GetDriverPath(SeleniumDriver.eBrowserType.IE);
string IEDestFile = System.IO.Path.Combine(targetPath, IEDriverFile);

Expand All @@ -243,7 +245,7 @@ private void GetNodeFilesButton_Click(object sender, RoutedEventArgs e)
Reporter.ToLog(eLogLevel.DEBUG, "IE Driver not found");
}
}

seleniumDriver.BrowserType = WebBrowserType.Edge;
string edgeSourceFile = seleniumDriver.GetDriverPath(SeleniumDriver.eBrowserType.Edge);
string edgeDestFile = System.IO.Path.Combine(targetPath, EdgeDriverFile);

Expand Down

0 comments on commit 5b57c75

Please sign in to comment.