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) {