2023-05-22 17:41:11 +01:00
|
|
|
chromedriver_jvm_flags = select({
|
2021-02-23 08:40:45 +00:00
|
|
|
"@selenium//common:use_pinned_linux_chrome": [
|
2020-12-02 10:57:17 +00:00
|
|
|
"-Dwebdriver.chrome.driver=$(location @linux_chromedriver//:chromedriver)",
|
|
|
|
|
],
|
2021-02-23 08:40:45 +00:00
|
|
|
"@selenium//common:use_pinned_macos_chrome": [
|
2020-12-02 10:57:17 +00:00
|
|
|
"-Dwebdriver.chrome.driver=$(location @mac_chromedriver//:chromedriver)",
|
2023-05-22 17:41:11 +01:00
|
|
|
],
|
|
|
|
|
"//conditions:default": [],
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
chrome_jvm_flags = select({
|
|
|
|
|
"@selenium//common:use_pinned_linux_chrome": [
|
2023-06-14 15:47:15 +01:00
|
|
|
"-Dwebdriver.chrome.binary=$(location @linux_chrome//:chrome-linux64/chrome)",
|
2023-05-22 17:41:11 +01:00
|
|
|
],
|
|
|
|
|
"@selenium//common:use_pinned_macos_chrome": [
|
2023-06-14 15:47:15 +01:00
|
|
|
"-Dwebdriver.chrome.binary=$(location @mac_chrome//:Chrome.app)/Contents/MacOS/Chrome",
|
2020-12-02 10:57:17 +00:00
|
|
|
],
|
2023-02-17 12:13:13 +01:00
|
|
|
"@selenium//common:use_local_chromedriver": [],
|
2020-12-02 10:57:17 +00:00
|
|
|
"//conditions:default": [
|
2023-02-17 12:13:13 +01:00
|
|
|
"-Dselenium.skiptest=false",
|
2020-12-02 10:57:17 +00:00
|
|
|
],
|
2021-02-13 17:05:03 +00:00
|
|
|
}) + select({
|
2021-02-23 08:40:45 +00:00
|
|
|
"@selenium//common:use_headless_browser": [
|
2021-02-13 17:05:03 +00:00
|
|
|
"-Dwebdriver.headless=true",
|
|
|
|
|
],
|
|
|
|
|
"//conditions:default": [],
|
2023-05-22 17:41:11 +01:00
|
|
|
}) + chromedriver_jvm_flags
|
|
|
|
|
|
|
|
|
|
edgedriver_jvm_flags = select({
|
2024-03-15 11:26:40 -07:00
|
|
|
"@selenium//common:use_pinned_linux_edge": [
|
|
|
|
|
"-Dwebdriver.edge.driver=$(location @linux_edgedriver//:msedgedriver)",
|
|
|
|
|
],
|
2023-05-22 17:41:11 +01:00
|
|
|
"@selenium//common:use_pinned_macos_edge": [
|
|
|
|
|
"-Dwebdriver.edge.driver=$(location @mac_edgedriver//:msedgedriver)",
|
|
|
|
|
],
|
|
|
|
|
"//conditions:default": [],
|
2020-12-01 16:37:01 +00:00
|
|
|
})
|
|
|
|
|
|
2020-12-02 10:57:17 +00:00
|
|
|
edge_jvm_flags = select({
|
2024-03-15 11:26:40 -07:00
|
|
|
"@selenium//common:use_pinned_linux_edge": [
|
|
|
|
|
"-Dwebdriver.edge.binary=$(location @linux_edge//:opt/microsoft/msedge/microsoft-edge)",
|
|
|
|
|
],
|
2021-02-23 08:40:45 +00:00
|
|
|
"@selenium//common:use_pinned_macos_edge": [
|
2021-03-15 16:47:51 +00:00
|
|
|
"-Dwebdriver.edge.binary=\"$(location @mac_edge//:Edge.app)/Contents/MacOS/Microsoft Edge\"",
|
2020-12-02 10:57:17 +00:00
|
|
|
],
|
2023-02-17 12:13:13 +01:00
|
|
|
"@selenium//common:use_local_msedgedriver": [],
|
2020-12-02 10:57:17 +00:00
|
|
|
"//conditions:default": [
|
2023-02-17 12:13:13 +01:00
|
|
|
"-Dselenium.skiptest=false",
|
2020-12-02 10:57:17 +00:00
|
|
|
],
|
2021-02-13 17:05:03 +00:00
|
|
|
}) + select({
|
2021-02-23 08:40:45 +00:00
|
|
|
"@selenium//common:use_headless_browser": [
|
2021-02-13 17:05:03 +00:00
|
|
|
"-Dwebdriver.headless=true",
|
|
|
|
|
],
|
|
|
|
|
"//conditions:default": [],
|
2023-05-22 17:41:11 +01:00
|
|
|
}) + edgedriver_jvm_flags
|
|
|
|
|
|
|
|
|
|
geckodriver_jvm_flags = select({
|
|
|
|
|
"@selenium//common:use_pinned_linux_firefox": [
|
|
|
|
|
"-Dwebdriver.gecko.driver=$(location @linux_geckodriver//:geckodriver)",
|
|
|
|
|
],
|
|
|
|
|
"@selenium//common:use_pinned_macos_firefox": [
|
|
|
|
|
"-Dwebdriver.gecko.driver=$(location @mac_geckodriver//:geckodriver)",
|
|
|
|
|
],
|
|
|
|
|
"//conditions:default": [],
|
2020-12-01 16:37:01 +00:00
|
|
|
})
|
|
|
|
|
|
2020-12-02 10:57:17 +00:00
|
|
|
firefox_jvm_flags = select({
|
2021-02-23 08:40:45 +00:00
|
|
|
"@selenium//common:use_pinned_linux_firefox": [
|
2023-05-03 16:55:31 +01:00
|
|
|
"-Dwebdriver.firefox.bin=$(location @linux_firefox//:firefox/firefox)",
|
2020-12-02 10:57:17 +00:00
|
|
|
],
|
2021-02-23 08:40:45 +00:00
|
|
|
"@selenium//common:use_pinned_macos_firefox": [
|
2020-12-02 10:57:17 +00:00
|
|
|
"-Dwebdriver.firefox.bin=$(location @mac_firefox//:Firefox.app)/Contents/MacOS/firefox",
|
|
|
|
|
],
|
2023-02-17 12:13:13 +01:00
|
|
|
"@selenium//common:use_local_geckodriver": [],
|
2020-12-02 10:57:17 +00:00
|
|
|
"//conditions:default": [
|
2023-02-17 12:13:13 +01:00
|
|
|
"-Dselenium.skiptest=false",
|
2020-12-02 10:57:17 +00:00
|
|
|
],
|
2021-02-13 17:05:03 +00:00
|
|
|
}) + select({
|
2021-02-23 08:40:45 +00:00
|
|
|
"@selenium//common:use_headless_browser": [
|
2021-02-13 17:05:03 +00:00
|
|
|
"-Dwebdriver.headless=true",
|
|
|
|
|
],
|
|
|
|
|
"//conditions:default": [],
|
2023-05-22 17:41:11 +01:00
|
|
|
}) + geckodriver_jvm_flags
|
2023-09-19 16:18:13 +02:00
|
|
|
|
|
|
|
|
firefox_beta_jvm_flags = select({
|
|
|
|
|
"@selenium//common:use_pinned_linux_firefox": [
|
|
|
|
|
"-Dwebdriver.firefox.bin=$(location @linux_beta_firefox//:firefox/firefox)",
|
|
|
|
|
],
|
|
|
|
|
"@selenium//common:use_pinned_macos_firefox": [
|
|
|
|
|
"-Dwebdriver.firefox.bin=$(location @mac_beta_firefox//:Firefox.app)/Contents/MacOS/firefox",
|
|
|
|
|
],
|
|
|
|
|
"@selenium//common:use_local_geckodriver": [],
|
|
|
|
|
"//conditions:default": [
|
|
|
|
|
"-Dselenium.skiptest=false",
|
|
|
|
|
],
|
|
|
|
|
}) + select({
|
|
|
|
|
"@selenium//common:use_headless_browser": [
|
|
|
|
|
"-Dwebdriver.headless=true",
|
|
|
|
|
],
|
|
|
|
|
"//conditions:default": [],
|
|
|
|
|
}) + geckodriver_jvm_flags
|