Skip to content

Commit 52d33a6

Browse files
authored
Merge branch 'trunk' into final-python-pagesize-support
2 parents 2846c1f + a62ef3d commit 52d33a6

File tree

6 files changed

+568
-52
lines changed

6 files changed

+568
-52
lines changed

.github/workflows/update-documentation.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,6 @@ jobs:
140140
run: |
141141
git config --local user.email "[email protected]"
142142
git config --local user.name "Selenium CI Bot"
143-
- name: Install specific version of DocFX tool
144-
# Pinning to 2.75.3 to avoid breaking changes in newer versions
145-
# See https://github.com/dotnet/docfx/issues/9855
146-
run: dotnet tool install --global --version 2.75.3 docfx
147143
- name: Update Documentation
148144
if: needs.determine-language.outputs.language == 'all' || needs.determine-language.outputs.language == 'dotnet'
149145
run: ./go dotnet:docs

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ register_toolchains("@dotnet_toolchains//:all")
9393
oci = use_extension("@rules_oci//oci:extensions.bzl", "oci")
9494
oci.pull(
9595
name = "java_image_base",
96-
digest = "sha256:161a1d97d592b3f1919801578c3a47c8e932071168a96267698f4b669c24c76d",
96+
digest = "sha256:1df9f3e6a2de0544dd04f1840aa811d334045c9126f9e93d8da45448061ad51e",
9797
image = "gcr.io/distroless/java17",
9898
)
9999
oci.pull(

Rakefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -777,10 +777,9 @@ namespace :dotnet do
777777
task :docs, [:skip_update] do |_task, arguments|
778778
FileUtils.rm_rf('build/docs/api/dotnet/')
779779
begin
780-
# Pinning to 2.75.3 to avoid breaking changes in newer versions
781-
# See https://github.com/dotnet/docfx/issues/9855
780+
# Pinning to 2.78.2 to avoid breaking changes in newer versions
782781
sh 'dotnet tool uninstall --global docfx || true'
783-
sh 'dotnet tool install --global --version 2.75.3 docfx'
782+
sh 'dotnet tool install --global --version 2.78.2 docfx'
784783
# sh 'dotnet tool update -g docfx'
785784
rescue StandardError
786785
puts 'Please ensure that .NET SDK is installed.'

dotnet/docs/docfx.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"dest": "webdriver",
1313
"namespaceLayout": "nested",
14-
"outputFormat": "apiPage"
14+
//"outputFormat": "apiPage" // "apiPage" generation with errors
1515
},
1616
{
1717
"src": [
@@ -24,9 +24,8 @@
2424
],
2525
"dest": "support",
2626
"namespaceLayout": "nested",
27-
"outputFormat": "apiPage"
27+
//"outputFormat": "apiPage" // "apiPage" generation with errors
2828
}
29-
3029
],
3130
"build": {
3231
"content": [

py/selenium/webdriver/common/by.py

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,58 @@
2222

2323

2424
class By:
25-
"""Set of supported locator strategies."""
25+
"""Set of supported locator strategies.
26+
27+
ID:
28+
--
29+
Select the element by its ID.
30+
31+
>>> element = driver.find_element(By.ID, 'myElement')
32+
33+
XPATH:
34+
------
35+
Select the element via XPATH.
36+
- absolute path
37+
- relative path
38+
39+
>>> element = driver.find_element(By.XPATH, '//html/body/div')
40+
41+
LINK_TEXT:
42+
----------
43+
Select the link element having the exact text.
44+
45+
>>> element = driver.find_element(By.LINK_TEXT, 'myLink')
46+
47+
PARTIAL_LINK_TEXT:
48+
------------------
49+
Select the link element having the partial text.
50+
51+
>>> element = driver.find_element(By.PARTIAL_LINK_TEXT, 'my')
52+
53+
NAME:
54+
----
55+
Select the element by its name attribute.
56+
57+
>>> element = driver.find_element(By.NAME, 'myElement')
58+
59+
TAG_NAME:
60+
--------
61+
Select the element by its tag name.
62+
63+
>>> element = driver.find_element(By.TAG_NAME, 'div')
64+
65+
CLASS_NAME:
66+
----------
67+
Select the element by its class name.
68+
69+
>>> element = driver.find_element(By.CLASS_NAME, 'myElement')
70+
71+
CSS_SELECTOR:
72+
-------------
73+
Select the element by its CSS selector.
74+
75+
>>> element = driver.find_element(By.CSS_SELECTOR, 'div.myElement')
76+
"""
2677

2778
ID = "id"
2879
XPATH = "xpath"

0 commit comments

Comments
 (0)