1- chrome_jvm_flags = select ({
1+ chromedriver_jvm_flags = select ({
22 "@selenium//common:use_pinned_linux_chrome" : [
33 "-Dwebdriver.chrome.driver=$(location @linux_chromedriver//:chromedriver)" ,
4- "-Dwebdriver.chrome.binary=$(location @linux_chrome//:chrome-linux/chrome)" ,
54 ],
65 "@selenium//common:use_pinned_macos_chrome" : [
76 "-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" : [
816 "-Dwebdriver.chrome.binary=$(location @mac_chrome//:Chromium.app)/Contents/MacOS/Chromium" ,
917 ],
1018 "@selenium//common:use_local_chromedriver" : [],
@@ -16,11 +24,17 @@ chrome_jvm_flags = select({
1624 "-Dwebdriver.headless=true" ,
1725 ],
1826 "//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" : [],
1934})
2035
2136edge_jvm_flags = select ({
2237 "@selenium//common:use_pinned_macos_edge" : [
23- "-Dwebdriver.edge.driver=$(location @mac_edgedriver//:msedgedriver)" ,
2438 "-Dwebdriver.edge.binary=\" $(location @mac_edge//:Edge.app)/Contents/MacOS/Microsoft Edge\" " ,
2539 ],
2640 "@selenium//common:use_local_msedgedriver" : [],
@@ -32,15 +46,23 @@ edge_jvm_flags = select({
3246 "-Dwebdriver.headless=true" ,
3347 ],
3448 "//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" : [],
3559})
3660
3761firefox_jvm_flags = select ({
3862 "@selenium//common:use_pinned_linux_firefox" : [
39- "-Dwebdriver.gecko.driver=$(location @linux_geckodriver//:geckodriver)" ,
4063 "-Dwebdriver.firefox.bin=$(location @linux_firefox//:firefox/firefox)" ,
4164 ],
4265 "@selenium//common:use_pinned_macos_firefox" : [
43- "-Dwebdriver.gecko.driver=$(location @mac_geckodriver//:geckodriver)" ,
4466 "-Dwebdriver.firefox.bin=$(location @mac_firefox//:Firefox.app)/Contents/MacOS/firefox" ,
4567 ],
4668 "@selenium//common:use_local_geckodriver" : [],
@@ -52,4 +74,4 @@ firefox_jvm_flags = select({
5274 "-Dwebdriver.headless=true" ,
5375 ],
5476 "//conditions:default" : [],
55- })
77+ }) + geckodriver_jvm_flags
0 commit comments