Skip to content

Commit

Permalink
Merge branch 'trunk' into add-ability-to-decorate-child-classes-of-we…
Browse files Browse the repository at this point in the history
…bdriver
  • Loading branch information
pujagani committed Jul 6, 2022
2 parents fa15dd8 + 8e24d93 commit f385053
Show file tree
Hide file tree
Showing 64 changed files with 2,101 additions and 1,515 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ jobs:
- name: Run browser tests in ${{ matrix.browser }}
uses: ./.github/actions/bazel-test
with:
query: attr(tags, ${{ matrix.browser }}, tests(//java/...)) except attr(tags, 'lint|rc|remote', tests(//java/...))
query: attr(tags, ${{ matrix.browser }}, tests(//java/...)) except attr(tags, 'rc|remote', tests(//java/...))
attempts: 3
env:
DISPLAY: :99
Expand Down
16 changes: 8 additions & 8 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ bazel_skylib_workspace()

http_archive(
name = "rules_python",
sha256 = "cdf6b84084aad8f10bf20b46b77cb48d83c319ebe6458a18e9d2cebf57807cdd",
strip_prefix = "rules_python-0.8.1",
url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.8.1.tar.gz",
sha256 = "56dc7569e5dd149e576941bdb67a57e19cd2a7a63cc352b62ac047732008d7e1",
strip_prefix = "rules_python-0.10.0",
url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.10.0.tar.gz",
)

load("@rules_python//python:repositories.bzl", "python_register_toolchains")
Expand Down Expand Up @@ -132,9 +132,9 @@ rules_jvm_external_setup()

http_archive(
name = "contrib_rules_jvm",
sha256 = "c561a011b3005ccb3d6903bf60d655e2539189e3ed9b3595ecffd64e2061a338",
strip_prefix = "rules_jvm-35d89231aed8527b49dd2caba966e9cb097b4da6",
url = "https://github.com/bazel-contrib/rules_jvm/archive/35d89231aed8527b49dd2caba966e9cb097b4da6.zip",
sha256 = "a939cd04da2deee16131898d91d8e23559dcd1a30a5128beac30a2b01b33c94f",
strip_prefix = "rules_jvm-0.4.0",
url = "https://github.com/bazel-contrib/rules_jvm/archive/v0.4.0.tar.gz",
)

load("@contrib_rules_jvm//:repositories.bzl", "contrib_rules_jvm_deps")
Expand Down Expand Up @@ -168,8 +168,8 @@ selenium_register_dotnet()

http_archive(
name = "build_bazel_rules_nodejs",
sha256 = "0fad45a9bda7dc1990c47b002fd64f55041ea751fafc00cd34efb96107675778",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.5.0/rules_nodejs-5.5.0.tar.gz"],
sha256 = "ee3280a7f58aa5c1caa45cb9e08cbb8f4d74300848c508374daf37314d5390d6",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.5.1/rules_nodejs-5.5.1.tar.gz"],
)

load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies")
Expand Down
46 changes: 23 additions & 23 deletions common/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -10,81 +10,81 @@ def pin_browsers():

http_archive(
name = "linux_firefox",
url = "https://ftp.mozilla.org/pub/firefox/releases/99.0/linux-x86_64/en-US/firefox-99.0.tar.bz2",
sha256 = "b6d895047c8911a49d944f78f710718091957f0057344cea735096ab4a8c07d1",
url = "https://ftp.mozilla.org/pub/firefox/releases/102.0/linux-x86_64/en-US/firefox-102.0.tar.bz2",
sha256 = "2673d387d22ae6e21c20f091dc4811197aaa516110d44133e4d14c91d5568f87",
build_file_content = "exports_files([\"firefox\"])",
)

dmg_archive(
name = "mac_firefox",
url = "https://ftp.mozilla.org/pub/firefox/releases/99.0/mac/en-US/Firefox%2099.0.dmg",
sha256 = "c54367d73f3d47b7f41eb5751014168a27584674b8fb2e541c05f835baccf623",
url = "https://ftp.mozilla.org/pub/firefox/releases/102.0/mac/en-US/Firefox%20102.0.dmg",
sha256 = "93c6dac2e979960a4e2d33a9aabd5daebcfe44bb0ae1bcecc10fd538ab66725f",
build_file_content = "exports_files([\"Firefox.app\"])",
)

http_archive(
name = "linux_geckodriver",
url = "https://github.com/mozilla/geckodriver/releases/download/v0.30.0/geckodriver-v0.30.0-linux64.tar.gz",
sha256 = "12c37f41d11ed982b7be43d02411ff2c75fb7a484e46966d000b47d1665baa88",
url = "https://github.com/mozilla/geckodriver/releases/download/v0.31.0/geckodriver-v0.31.0-linux64.tar.gz",
sha256 = "7fdd8007d22a6f44caa6929a3d74bbd6a00984d88be50255153671bd201e5493",
build_file_content = "exports_files([\"geckodriver\"])",
)

http_archive(
name = "mac_geckodriver",
url = "https://github.com/mozilla/geckodriver/releases/download/v0.30.0/geckodriver-v0.30.0-macos.tar.gz",
sha256 = "560ba192666c1fe8796404153cfdf2d12551515601c4b3937aabcba6ee300f8c",
url = "https://github.com/mozilla/geckodriver/releases/download/v0.31.0/geckodriver-v0.31.0-macos.tar.gz",
sha256 = "4da5c6effe987e0c9049c69c7018e70a9d79f3c6119657def2cc0c3419f885e6",
build_file_content = "exports_files([\"geckodriver\"])",
)

pkg_archive(
name = "mac_edge",
url = "https://officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/MicrosoftEdge-100.0.1185.29.pkg?platform=Mac&Consent=0&channel=Stable",
sha256 = "c80ab77355c04887a7a3bb829c72915f41d0379f342e73a1b33f2e6604cdf11e",
url = "https://officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/MicrosoftEdge-103.0.1264.44.pkg?platform=Mac&Consent=0&channel=Stable",
sha256 = "49ae051c3f4207ceb8b7a53068d8912b3939f544e9f97464abe3a26d67f8447c",
move = {
"MicrosoftEdge-100.0.1185.29.pkg/Payload/Microsoft Edge.app": "Edge.app",
"MicrosoftEdge-103.0.1264.44.pkg/Payload/Microsoft Edge.app": "Edge.app",
},
build_file_content = "exports_files([\"Edge.app\"])",
)

http_archive(
name = "linux_edgedriver",
url = "https://msedgedriver.azureedge.net/100.0.1185.29/edgedriver_linux64.zip",
sha256 = "07ab098a5e2bfb4c0895e6f9c778bc7495a3782a00b3eff4e758912d182d39e8",
url = "https://msedgedriver.azureedge.net/103.0.1264.44/edgedriver_linux64.zip",
sha256 = "ed154c7c58d565093f1d5d42fcd82e27354ff0cfed960e9e83e0435df8dd630a",
build_file_content = "exports_files([\"msedgedriver\"])",
)

http_archive(
name = "mac_edgedriver",
url = "https://msedgedriver.azureedge.net/100.0.1185.29/edgedriver_mac64.zip",
sha256 = "4b7a624a2d9fda85b5ce34ef4857b8f4dcb93a976060069956dd4eed29101870",
url = "https://msedgedriver.azureedge.net/103.0.1264.44/edgedriver_mac64.zip",
sha256 = "31d6d88562ce8474190b6ca314cd224b490098a48b48b7ba197c14f29070569e",
build_file_content = "exports_files([\"msedgedriver\"])",
)

http_archive(
name = "linux_chrome",
url = "https://storage.googleapis.com/chromium-browser-snapshots/Linux_x64/972739/chrome-linux.zip",
sha256 = "228f8a7b4ab7bd3c43d555ba5857a8240f21fc5df96a91cc827d0ae509b01097",
url = "https://storage.googleapis.com/chromium-browser-snapshots/Linux_x64/1002780/chrome-linux.zip",
sha256 = "f0c5cf79ff25162720b80052e0225b0041317b6633a28132df943639b722854a",
build_file_content = "exports_files([\"chrome-linux\"])",
)

http_archive(
name = "mac_chrome",
url = "https://storage.googleapis.com/chromium-browser-snapshots/Mac/972739/chrome-mac.zip",
sha256 = "a9c59baa2c6c455172c1780ee3411f4b3aa0561a8ed2882d7247d6716d6ccd66",
url = "https://storage.googleapis.com/chromium-browser-snapshots/Mac/1002780/chrome-mac.zip",
sha256 = "39386bd9603867fd225622cdce9c26b0b7b4173fa017cecb28045a2f1ebc5921",
strip_prefix = "chrome-mac",
build_file_content = "exports_files([\"Chromium.app\"])",
)

http_archive(
name = "linux_chromedriver",
url = "https://chromedriver.storage.googleapis.com/100.0.4896.60/chromedriver_linux64.zip",
sha256 = "617cd4bad5f476a8c2a764d595d808a9d6ada4a35d4f89e2af1234c6206f2d61",
url = "https://chromedriver.storage.googleapis.com/103.0.5060.53/chromedriver_linux64.zip",
sha256 = "adec44a6d392d71aa456993d5fdcc7aade5b20e0360770cc61a272e17076fdbe",
build_file_content = "exports_files([\"chromedriver\"])",
)

http_archive(
name = "mac_chromedriver",
url = "https://chromedriver.storage.googleapis.com/100.0.4896.60/chromedriver_mac64.zip",
sha256 = "492bce3b556419b3fea9adbc2699b363445cdd5a74ba902cc579cd5b1c9c1160",
url = "https://chromedriver.storage.googleapis.com/103.0.5060.53/chromedriver_mac64.zip",
sha256 = "17b8dabdefd001e8b5a87041b5394fec58f9fcb9cdd85a0598b58ebc3c882b0e",
build_file_content = "exports_files([\"chromedriver\"])",
)
28 changes: 28 additions & 0 deletions common/src/web/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Index of Available Pages</title>
</head>
<body>
<script>
(async () => {
const response = await fetch('https://api.github.com/repos/SeleniumHQ/selenium/git/trees/gh-pages?recursive=true');
const data = await response.json();
const list = data.tree
let htmlString = '<ul>';

for (let item of list) {
const name = item.path;
if (name.substring(0, 1) !== 'w') { continue; }
if (name.substring(name.length-4, name.length) !== 'html') { continue; }
const val = name.substring(4, name.length);
htmlString += `<li><a href="${val}">${val}</a></li>`;
}

htmlString += '</ul>';
document.getElementsByTagName('body')[0].innerHTML = htmlString;
})()
</script>
</body>
</html>
13 changes: 0 additions & 13 deletions dotnet/src/webdriver/Alert.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,5 @@ public void SendKeys(string keysToSend)

this.driver.InternalExecute(DriverCommand.SetAlertValue, parameters);
}

/// <summary>
/// Sets the user name and password in an alert prompting for credentials.
/// </summary>
/// <param name="userName">The user name to set.</param>
/// <param name="password">The password to set.</param>
public void SetAuthenticationCredentials(string userName, string password)
{
Dictionary<string, object> parameters = new Dictionary<string, object>();
parameters.Add("username", userName);
parameters.Add("password", password);
this.driver.InternalExecute(DriverCommand.SetAlertCredentials, parameters);
}
}
}

0 comments on commit f385053

Please sign in to comment.