From c885f9cda9a2553dbef0fb583d5f93a137ca7d2e Mon Sep 17 00:00:00 2001 From: Dor-bl Date: Sat, 30 Mar 2024 22:10:55 +0300 Subject: [PATCH] chore: Remove relative path from webDriverPath --- src/FlaUI.WebDriver.UITests/WebDriverFixture.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/FlaUI.WebDriver.UITests/WebDriverFixture.cs b/src/FlaUI.WebDriver.UITests/WebDriverFixture.cs index e37eaca..9599ae5 100644 --- a/src/FlaUI.WebDriver.UITests/WebDriverFixture.cs +++ b/src/FlaUI.WebDriver.UITests/WebDriverFixture.cs @@ -19,10 +19,7 @@ public void Setup() string assemblyDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); Directory.SetCurrentDirectory(assemblyDir); - var assemblyConfigurationAttribute = Assembly.GetExecutingAssembly().GetCustomAttribute(); - 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) {