From 8dca9806bd4a560906956b77b25596618d1d721a Mon Sep 17 00:00:00 2001 From: Michael Mintz Date: Tue, 14 Nov 2023 21:13:17 -0500 Subject: [PATCH] Update the documentation --- README.md | 1 + help_docs/customizing_test_runs.md | 1 + help_docs/method_summary.md | 14 +++++++++++++- mkdocs.yml | 1 + mkdocs_build/requirements.txt | 2 +- 5 files changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6099d391..470cc141 100755 --- a/README.md +++ b/README.md @@ -679,6 +679,7 @@ pytest test_coffee_cart.py --trace --message-duration=SECONDS # (The time length for Messenger alerts.) --check-js # (Check for JavaScript errors after page loads.) --ad-block # (Block some types of display ads from loading.) +--host-resolver-rules=RULES # (Set host-resolver-rules, comma-separated.) --block-images # (Block images from loading during tests.) --do-not-track # (Indicate to websites that you don't want to be tracked.) --verify-delay=SECONDS # (The delay before MasterQA verification checks.) diff --git a/help_docs/customizing_test_runs.md b/help_docs/customizing_test_runs.md index ae375223..2a8ed614 100644 --- a/help_docs/customizing_test_runs.md +++ b/help_docs/customizing_test_runs.md @@ -159,6 +159,7 @@ pytest my_first_test.py --settings-file=custom_settings.py --message-duration=SECONDS # (The time length for Messenger alerts.) --check-js # (Check for JavaScript errors after page loads.) --ad-block # (Block some types of display ads from loading.) +--host-resolver-rules=RULES # (Set host-resolver-rules, comma-separated.) --block-images # (Block images from loading during tests.) --do-not-track # (Indicate to websites that you don't want to be tracked.) --verify-delay=SECONDS # (The delay before MasterQA verification checks.) diff --git a/help_docs/method_summary.md b/help_docs/method_summary.md index 7dca4ce5..7c1965da 100644 --- a/help_docs/method_summary.md +++ b/help_docs/method_summary.md @@ -993,10 +993,16 @@ driver.highlight_click(selector) driver.sleep(seconds) +driver.locator(selector) + +driver.get_attribute(selector, attribute) + driver.get_page_source() driver.get_title() +driver.switch_to_frame(frame) + ############ # "driver"-specific methods added by SeleniumBase for UC Mode: "--uc" / uc=True @@ -1007,7 +1013,13 @@ driver.uc_open_with_tab(url) driver.uc_open_with_reconnect(url, reconnect_time=None) -driver.uc_click(selector) +driver.reconnect(timeout) + +driver.uc_click( + selector, by="css selector", + timeout=settings.SMALL_TIMEOUT, reconnect_time=None) + +driver.uc_switch_to_frame(frame) ``` -------- diff --git a/mkdocs.yml b/mkdocs.yml index 580dc7c7..76f615cd 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -157,6 +157,7 @@ nav: - 🔑 CF Turnstile on Form: https://seleniumbase.io/apps/form_turnstile - 🔐 reCAPTCHA v2 Test: https://seleniumbase.io/apps/recaptcha - 🔐 reCAPTCHA v2 on Form: https://seleniumbase.io/apps/form_recaptcha + - 🔐 reCAPTCHA, invisible: https://seleniumbase.io/apps/invisible_recaptcha - Additional Help Docs: - 📑 Table of Contents: help_docs/ReadMe.md - 🖼️ How to handle iframes: help_docs/handling_iframes.md diff --git a/mkdocs_build/requirements.txt b/mkdocs_build/requirements.txt index e23a4f5e..8fb01cf8 100644 --- a/mkdocs_build/requirements.txt +++ b/mkdocs_build/requirements.txt @@ -3,7 +3,7 @@ regex>=2023.10.3 PyYAML>=6.0.1 -pymdown-extensions>=10.3.1 +pymdown-extensions>=10.4 pipdeptree>=2.13.1 python-dateutil>=2.8.2 Markdown==3.5.1