- extends: UiElement
WebElement class inherits from UiElement, representing the web UI element with web specific operations.
Properties #
parent
: parent element, return WebElement.children
: child elements, return list of WebElement.next_sibling
: next sibling element, return WebElement.previous_sibling
: previous sibling element, return WebElement.
Methods #
- child:get child element by given index.
- set_property: set the property value of the web element.
- execute_js: execute Javascript code for the target element.
- execute_js_file: execute Javascript file for the target element.
- find_element:find element by the given locator.
- find_element_by_xpath:find element by the given XPath.
- find_element_by_css_selector:find element by the given CSS selector.
- find_elements:find elements by the given locator.
- find_elements_by_xpath:find elements by the given XPath.
- find_elements_by_css_selector:find elements by the given CSS selector.