Skip to content

Commit

Permalink
Merge pull request #3 from Dor-bl/webdriver_path
Browse files Browse the repository at this point in the history
chore: Remove relative path from webDriverPath
  • Loading branch information
aristotelos authored Apr 2, 2024
2 parents d0160ad + c885f9c commit db3fb29
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/FlaUI.WebDriver.UITests/WebDriverFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ public void Setup()
string assemblyDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
Directory.SetCurrentDirectory(assemblyDir);

var assemblyConfigurationAttribute = Assembly.GetExecutingAssembly().GetCustomAttribute<AssemblyConfigurationAttribute>();
var buildConfigurationName = assemblyConfigurationAttribute?.Configuration;

var webDriverPath = $"..\\..\\..\\..\\FlaUI.WebDriver\\bin\\{buildConfigurationName}\\FlaUI.WebDriver.exe";
string webDriverPath = Path.Combine(Directory.GetCurrentDirectory(), "FlaUI.WebDriver.exe");
var webDriverArguments = $"--urls={WebDriverUrl}";
var webDriverProcessStartInfo = new ProcessStartInfo(webDriverPath, webDriverArguments)
{
Expand Down

0 comments on commit db3fb29

Please sign in to comment.