1
- chrome_jvm_flags = select ({
1
+ chromedriver_jvm_flags = select ({
2
2
"@selenium//common:use_pinned_linux_chrome" : [
3
3
"-Dwebdriver.chrome.driver=$(location @linux_chromedriver//:chromedriver)" ,
4
- "-Dwebdriver.chrome.binary=$(location @linux_chrome//:chrome-linux/chrome)" ,
5
4
],
6
5
"@selenium//common:use_pinned_macos_chrome" : [
7
6
"-Dwebdriver.chrome.driver=$(location @mac_chromedriver//:chromedriver)" ,
7
+ ],
8
+ "//conditions:default" : [],
9
+ })
10
+
11
+ chrome_jvm_flags = select ({
12
+ "@selenium//common:use_pinned_linux_chrome" : [
13
+ "-Dwebdriver.chrome.binary=$(location @linux_chrome//:chrome-linux/chrome)" ,
14
+ ],
15
+ "@selenium//common:use_pinned_macos_chrome" : [
8
16
"-Dwebdriver.chrome.binary=$(location @mac_chrome//:Chromium.app)/Contents/MacOS/Chromium" ,
9
17
],
10
18
"@selenium//common:use_local_chromedriver" : [],
@@ -16,11 +24,17 @@ chrome_jvm_flags = select({
16
24
"-Dwebdriver.headless=true" ,
17
25
],
18
26
"//conditions:default" : [],
27
+ }) + chromedriver_jvm_flags
28
+
29
+ edgedriver_jvm_flags = select ({
30
+ "@selenium//common:use_pinned_macos_edge" : [
31
+ "-Dwebdriver.edge.driver=$(location @mac_edgedriver//:msedgedriver)" ,
32
+ ],
33
+ "//conditions:default" : [],
19
34
})
20
35
21
36
edge_jvm_flags = select ({
22
37
"@selenium//common:use_pinned_macos_edge" : [
23
- "-Dwebdriver.edge.driver=$(location @mac_edgedriver//:msedgedriver)" ,
24
38
"-Dwebdriver.edge.binary=\" $(location @mac_edge//:Edge.app)/Contents/MacOS/Microsoft Edge\" " ,
25
39
],
26
40
"@selenium//common:use_local_msedgedriver" : [],
@@ -32,15 +46,23 @@ edge_jvm_flags = select({
32
46
"-Dwebdriver.headless=true" ,
33
47
],
34
48
"//conditions:default" : [],
49
+ }) + edgedriver_jvm_flags
50
+
51
+ geckodriver_jvm_flags = select ({
52
+ "@selenium//common:use_pinned_linux_firefox" : [
53
+ "-Dwebdriver.gecko.driver=$(location @linux_geckodriver//:geckodriver)" ,
54
+ ],
55
+ "@selenium//common:use_pinned_macos_firefox" : [
56
+ "-Dwebdriver.gecko.driver=$(location @mac_geckodriver//:geckodriver)" ,
57
+ ],
58
+ "//conditions:default" : [],
35
59
})
36
60
37
61
firefox_jvm_flags = select ({
38
62
"@selenium//common:use_pinned_linux_firefox" : [
39
- "-Dwebdriver.gecko.driver=$(location @linux_geckodriver//:geckodriver)" ,
40
63
"-Dwebdriver.firefox.bin=$(location @linux_firefox//:firefox/firefox)" ,
41
64
],
42
65
"@selenium//common:use_pinned_macos_firefox" : [
43
- "-Dwebdriver.gecko.driver=$(location @mac_geckodriver//:geckodriver)" ,
44
66
"-Dwebdriver.firefox.bin=$(location @mac_firefox//:Firefox.app)/Contents/MacOS/firefox" ,
45
67
],
46
68
"@selenium//common:use_local_geckodriver" : [],
@@ -52,4 +74,4 @@ firefox_jvm_flags = select({
52
74
"-Dwebdriver.headless=true" ,
53
75
],
54
76
"//conditions:default" : [],
55
- })
77
+ }) + geckodriver_jvm_flags
0 commit comments