browser.combo#
Functions#
search(term, settings, timeout=None)
#
Standardised combination of methods to perform search.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
term | str | Terms to search for. | required |
settings | SearchSettings | Add settings class. | required |
timeout | float | None | In seconds. Timeout to wait for element(s). If | None |
Example
Configuration Classes#
SearchSettings#
Settings class for the search combo.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
url | str | None | URL for the search page. Sometimes not needed if, for example, the search input field is available on all pages. | None |
input_xpath | str | XPath for the search input field. | required |
button_xpath | str | XPath for the search button. | required |
await_search_results_url_contains | str | None | Optionally wait for the search results page URL to change. | None |
await_search_results_xpath | str | None | Optionally wait for a search result element to be ready. | None |