Skip to content

Commit 8ecee57

Browse files
committed
Update the documentation
1 parent 2efd21c commit 8ecee57

File tree

6 files changed

+15
-1
lines changed

6 files changed

+15
-1
lines changed

examples/translations/ReadMe.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ class 我的测试类(硒测试用例):
1515
self.开启("https://zh.wikipedia.org/wiki/")
1616
self.断言标题("维基百科,自由的百科全书")
1717
self.断言元素('a[title="Wikipedia:关于"]')
18+
self.断言元素('span:contains("创建账号")')
19+
self.断言元素('span:contains("登录")')
1820
self.断言文本("新闻动态", "span#新闻动态")
1921
self.输入文本('input[name="search"]', "舞龍")
2022
self.单击('button:contains("搜索")')

help_docs/method_summary.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,7 @@ driver.uc_click(selector)
10261026
* [test_login.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_login.py)
10271027
* [test_markers.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_markers.py)
10281028
* [test_swag_labs.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_swag_labs.py)
1029+
* [test_simple_login.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_simple_login.py)
10291030
* [test_suite.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_suite.py)
10301031
* [test_tinymce.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_tinymce.py)
10311032
* And many more...

help_docs/syntax_formats.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,8 @@ class 我的测试类(硒测试用例):
450450
self.开启("https://zh.wikipedia.org/wiki/")
451451
self.断言标题("维基百科,自由的百科全书")
452452
self.断言元素('a[title="Wikipedia:关于"]')
453+
self.断言元素('span:contains("创建账号")')
454+
self.断言元素('span:contains("登录")')
453455
self.断言文本("新闻动态", "span#新闻动态")
454456
self.输入文本('input[name="search"]', "舞龍")
455457
self.单击('button:contains("搜索")')
@@ -973,6 +975,8 @@ finally:
973975

974976
The ``Driver()`` manager format can be used as a drop-in replacement for virtually every Python/selenium framework, as it uses the raw ``driver`` instance for handling commands. The ``Driver()`` method simplifies the work of managing drivers with optimal settings, and it can be configured with multiple args. The ``Driver()`` also accepts command-line options (such as ``python --headless``) so that you don't need to modify your tests directly to use different settings. These command-line options only take effect if the associated method args remain unset (or set to ``None``) for the specified options.
975977

978+
When using the ``Driver()`` format, you may need to activate a Virtual Display on your own if you want to run headed tests in a headless Linux environment. (See https://github.com/mdmintz/sbVirtualDisplay for details.) One such example of this is using an authenticated proxy, which is configured via a Chrome extension that is generated at runtime. (Note that regular headless mode in Chrome doesn't support extensions.)
979+
976980
--------
977981

978982
<h3 align="left"><a href="https://github.com/seleniumbase/SeleniumBase/"><img src="https://seleniumbase.github.io/img/sb_logo_10.png" title="SeleniumBase" width="280" /></a></h3>

help_docs/translations.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ class 我的测试类(硒测试用例):
1717
self.开启("https://zh.wikipedia.org/wiki/")
1818
self.断言标题("维基百科,自由的百科全书")
1919
self.断言元素('a[title="Wikipedia:关于"]')
20+
self.断言元素('span:contains("创建账号")')
21+
self.断言元素('span:contains("登录")')
2022
self.断言文本("新闻动态", "span#新闻动态")
2123
self.输入文本('input[name="search"]', "舞龍")
2224
self.单击('button:contains("搜索")')

mkdocs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,11 @@ nav:
152152
- ↔️ W3Schools drag & drop: https://seleniumbase.io/w3schools/drag_drop
153153
- ☑️ W3Schools checkboxes: https://seleniumbase.io/w3schools/checkboxes
154154
- 🔘 W3Schools radio buttons: https://seleniumbase.io/w3schools/radio_buttons
155+
- Pages with CAPTCHAs:
156+
- 🔑 CF Turnstile Test: https://seleniumbase.io/apps/turnstile
157+
- 🔑 CF Turnstile on Form: https://seleniumbase.io/apps/form_turnstile
158+
- 🔐 reCAPTCHA v2 Test: https://seleniumbase.io/apps/recaptcha
159+
- 🔐 reCAPTCHA v2 on Form: https://seleniumbase.io/apps/form_recaptcha
155160
- Additional Help Docs:
156161
- 📑 Table of Contents: help_docs/ReadMe.md
157162
- 🖼️ How to handle iframes: help_docs/handling_iframes.md

mkdocs_build/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ paginate==0.5.6
2020
pyquery==2.0.0
2121
readtime==3.0.0
2222
mkdocs==1.5.3
23-
mkdocs-material==9.4.7
23+
mkdocs-material==9.4.8
2424
mkdocs-exclude-search==0.6.5
2525
mkdocs-simple-hooks==0.1.5
2626
mkdocs-material-extensions==1.3

0 commit comments

Comments
 (0)