Skip to content

Commit

Permalink
Add SB "driver" methods to the method summary
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmintz committed Oct 19, 2023
1 parent 9005c4f commit 88fcf7e
Showing 1 changed file with 90 additions and 0 deletions.
90 changes: 90 additions & 0 deletions help_docs/method_summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,96 @@ self.fail(msg=None) # Inherited from "unittest"
self._check_browser() # Fails test cleanly if the active window is closed

self._print(TEXT) # Calls Python's print() / Allows for translations

############

# "driver"-specific methods added by SeleniumBase

driver.default_get(url) # Because driver.get(url) works differently in UC Mode

driver.open(url) # Like driver.get(), but allows partial URLs without protocol

driver.click(selector)

driver.click_link(link_text)

driver.click_if_visible(selector)

driver.click_active_element()

driver.send_keys(selector, text)

driver.press_keys(selector, text)

driver.type(selector, text)

driver.submit(selector)

driver.assert_element(selector)

driver.assert_element_present(selector)

driver.assert_element_not_visible(selector)

driver.assert_text(text, selector)

driver.assert_exact_text(text, selector)

driver.wait_for_element(selector)

driver.wait_for_text(text, selector)

driver.wait_for_exact_text(text, selector)

driver.wait_for_and_accept_alert()

driver.wait_for_and_dismiss_alert()

driver.is_element_present(selector)

driver.is_element_visible(selector)

driver.is_text_visible(text, selector)

driver.is_exact_text_visible(text, selector)

driver.is_attribute_present(selector, attribute)

driver.get_text(selector)

driver.js_click(selector)

driver.get_active_element_css()

driver.get_locale_code()

driver.get_origin()

driver.get_user_agent()

driver.highlight(selector)

driver.highlight_click(selector)

driver.sleep(seconds)

driver.get_page_source()

driver.get_title()

############

# "driver"-specific methods added by SeleniumBase for UC Mode: "--uc" / uc=True

driver.uc_open(url)

driver.uc_open_with_tab(url)

driver.uc_open_with_reconnect(url, reconnect_time=None)

driver.uc_click(selector)

############
```

--------
Expand Down

0 comments on commit 88fcf7e

Please sign in to comment.