The property that is the current instance of Selenium's WebElement that Element is wrapping.
Element.webelement
py.get('a').webelement
# Errors, 'webelement' is not a function py.get('a').webelement()
None
(WebElement) The current instance of Selenium's WebElement that is wrapped by Element
Most scenarios won't need this, but it's provided just in case. The biggest reasons to use .webelement
.webelement
access functionality that may not exist in Pylenium
functionality that requires you pass in a WebElement
Last updated 6 years ago
# Using the expected_conditions as EC element = py.get('.loading-spinner') py.wait.until(EC.staleness_of(element.webelement))