browser.get.html#
Functions#
element_inner(xpath, timeout=None)
#
Get inner HTML of an element by XPath.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
xpath | str | XPath of the element. | required |
timeout | float | None | In seconds. Timeout to wait for element. If | None |
Returns:
Type | Description |
---|---|
str | Inner HTML of an element. |
element_outer(xpath, timeout=None)
#
Get outer HTML of an element by XPath.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
xpath | str | XPath of the element. | required |
timeout | float | None | In seconds. Timeout to wait for element. If | None |
Returns:
Type | Description |
---|---|
str | Outer HTML of an element. |