@@ -15,40 +15,40 @@ headless_args = select({
1515
1616chrome_args = select ({
1717 "@selenium//common:use_pinned_linux_chrome" : [
18- "--driver-binary=$(location @linux_chromedriver//:chromedriver)" ,
19- "--browser-binary=$(location @linux_chrome//:chrome-linux64/chrome)" ,
18+ "--driver-binary=$(rootpath @linux_chromedriver//:chromedriver)" ,
19+ "--browser-binary=$(rootpath @linux_chrome//:chrome-linux64/chrome)" ,
2020 "--browser-args=--disable-dev-shm-usage" ,
2121 "--browser-args=--no-sandbox" ,
2222 ],
2323 "@selenium//common:use_pinned_macos_chrome" : [
24- "--driver-binary=$(location @mac_chromedriver//:chromedriver)" ,
25- "--browser-binary=$(location @mac_chrome//:Chrome.app)/Contents/MacOS/Chrome" ,
24+ "--driver-binary=$(rootpath @mac_chromedriver//:chromedriver)" ,
25+ "--browser-binary=$(rootpath @mac_chrome//:Chrome.app)/Contents/MacOS/Chrome" ,
2626 ],
2727 "//conditions:default" : [],
2828}) + headless_args
2929
3030edge_args = select ({
3131 "@selenium//common:use_pinned_linux_edge" : [
32- "--driver-binary=$(location @linux_edgedriver//:msedgedriver)" ,
33- "--browser-binary=$(location @linux_edge//:opt/microsoft/msedge/microsoft-edge)" ,
32+ "--driver-binary=$(rootpath @linux_edgedriver//:msedgedriver)" ,
33+ "--browser-binary=$(rootpath @linux_edge//:opt/microsoft/msedge/microsoft-edge)" ,
3434 "--browser-args=--disable-dev-shm-usage" ,
3535 "--browser-args=--no-sandbox" ,
3636 ],
3737 "@selenium//common:use_pinned_macos_edge" : [
38- "--driver-binary=$(location @mac_edgedriver//:msedgedriver)" ,
39- "--browser-binary='$(location @mac_edge//:Edge.app)/Contents/MacOS/Microsoft Edge'" ,
38+ "--driver-binary=$(rootpath @mac_edgedriver//:msedgedriver)" ,
39+ "--browser-binary='$(rootpath @mac_edge//:Edge.app)/Contents/MacOS/Microsoft Edge'" ,
4040 ],
4141 "//conditions:default" : [],
4242}) + headless_args
4343
4444firefox_args = select ({
4545 "@selenium//common:use_pinned_linux_firefox" : [
46- "--driver-binary=$(location @linux_geckodriver//:geckodriver)" ,
47- "--browser-binary=$(location @linux_firefox//:firefox/firefox)" ,
46+ "--driver-binary=$(rootpath @linux_geckodriver//:geckodriver)" ,
47+ "--browser-binary=$(rootpath @linux_firefox//:firefox/firefox)" ,
4848 ],
4949 "@selenium//common:use_pinned_macos_firefox" : [
50- "--driver-binary=$(location @mac_geckodriver//:geckodriver)" ,
51- "--browser-binary=$(location @mac_firefox//:Firefox.app)/Contents/MacOS/firefox" ,
50+ "--driver-binary=$(rootpath @mac_geckodriver//:geckodriver)" ,
51+ "--browser-binary=$(rootpath @mac_firefox//:Firefox.app)/Contents/MacOS/firefox" ,
5252 ],
5353 "//conditions:default" : [],
5454}) + headless_args
0 commit comments