+24
-9
lines changedFilter options
+24
-9
lines changed Original file line number Diff line number Diff line change
@@ -31,10 +31,8 @@ jobs:
31
31
include:
32
32
- driver: Chrome
33
33
browser: chrome
34
-
location: C:\SeleniumWebDrivers\ChromeDriver
35
34
- driver: Firefox
36
35
browser: chrome
37
-
location: C:\SeleniumWebDrivers\GeckoDriver
38
36
with:
39
37
name: Browser Tests (${{ matrix.driver }}, ${{ matrix.framework }})
40
38
browser: ${{ matrix.browser }}
@@ -44,6 +42,8 @@ jobs:
44
42
run: |
45
43
bazel build //dotnet/test/common:${{ matrix.browser }}
46
44
$env:ACTIVE_DRIVER_CONFIG = '${{ matrix.driver }}'
47
-
$env:DRIVER_SERVICE_LOCATION = '${{ matrix.location }}'
45
+
rm "$env:ChromeWebDriver" -r -v
46
+
rm "$env:EdgeWebDriver" -r -v
47
+
rm "$env:GeckoWebDriver" -r -v
48
48
cd dotnet
49
49
dotnet test test/common/WebDriver.Common.Tests.csproj --framework ${{ matrix.framework }}
Original file line number Diff line number Diff line change
@@ -16,12 +16,13 @@
16
16
// limitations under the License.
17
17
// </copyright>
18
18
19
+
using Newtonsoft.Json;
20
+
using OpenQA.Selenium.Internal;
19
21
using System;
20
22
using System.Collections.Generic;
21
23
using System.Diagnostics;
22
-
using Newtonsoft.Json;
23
-
using OpenQA.Selenium.Internal;
24
24
using System.Globalization;
25
+
using System.Reflection;
25
26
26
27
#if !NET45 && !NET46 && !NET47
27
28
using System.Runtime.InteropServices;
@@ -37,6 +38,7 @@ namespace OpenQA.Selenium
37
38
/// </summary>
38
39
public static class SeleniumManager
39
40
{
41
+
private static string basePath = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
40
42
private static string binary;
41
43
42
44
/// <summary>
@@ -140,7 +142,7 @@ private static string Binary
140
142
private static string RunCommand(string fileName, string arguments)
141
143
{
142
144
Process process = new Process();
143
-
process.StartInfo.FileName = fileName;
145
+
process.StartInfo.FileName = $"{basePath}/{fileName}";
144
146
process.StartInfo.Arguments = arguments;
145
147
process.StartInfo.UseShellExecute = false;
146
148
process.StartInfo.RedirectStandardOutput = true;
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
1
1
<?xml version="1.0" encoding="utf-8" ?>
2
2
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
3
4
+
<PropertyGroup>
5
+
<Selenium_Manager_BinariesRootPath Condition="$(Selenium_Manager_BinariesRootPath) == ''">$(MSBuildThisFileDirectory)..\manager</Selenium_Manager_BinariesRootPath>
6
+
</PropertyGroup>
7
+
4
8
<ItemGroup>
5
-
<None Include="$(MSBuildThisFileDirectory)..\manager\linux\selenium-manager">
9
+
<None Include="$(Selenium_Manager_BinariesRootPath)\linux\selenium-manager">
6
10
<Link>selenium-manager\linux\%(Filename)%(Extension)</Link>
7
11
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
8
12
<Visible>False</Visible>
9
13
</None>
10
14
11
-
<None Include="$(MSBuildThisFileDirectory)..\manager\macos\selenium-manager">
15
+
<None Include="$(Selenium_Manager_BinariesRootPath)\macos\selenium-manager">
12
16
<Link>selenium-manager\macos\%(Filename)%(Extension)</Link>
13
17
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
14
18
<Visible>False</Visible>
15
19
</None>
16
20
17
-
<None Include="$(MSBuildThisFileDirectory)..\manager\windows\selenium-manager.exe">
21
+
<None Include="$(Selenium_Manager_BinariesRootPath)\windows\selenium-manager.exe">
18
22
<Link>selenium-manager\windows\%(Filename)%(Extension)</Link>
19
23
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
20
24
<Visible>False</Visible>
Original file line number Diff line number Diff line change
@@ -218,6 +218,9 @@ public void ShouldBeAbleToUploadTheSameFileTwice()
218
218
219
219
uploadElement.SendKeys(inputFile.FullName);
220
220
uploadElement.Submit();
221
+
222
+
// Explicitly wait next page to be loaded, Firefox is not handling elements submitting
223
+
WaitFor(() => driver.Url.EndsWith("resultPage.html"), "We are not redirected to the resultPage after submitting web element");
221
224
}
222
225
223
226
inputFile.Delete();
Original file line number Diff line number Diff line change
@@ -63,4 +63,10 @@
63
63
<Exec Command="$(ProjectDir)WebDriver.Common.Tests.csproj.prebuild.sh $(ProjectDir)" />
64
64
</Target>
65
65
66
+
<!-- It is automatically imported when Selenium.WebDriver consumed via nuget package -->
67
+
<PropertyGroup>
68
+
<Selenium_Manager_BinariesRootPath>..\..\..\common\manager</Selenium_Manager_BinariesRootPath>
69
+
</PropertyGroup>
70
+
<Import Project="..\..\src\webdriver\build\Selenium.WebDriver.targets" />
71
+
66
72
</Project>
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4