For the complete documentation index, see llms.txt. This page is also available as Markdown.

webelement

The property that is the current instance of Selenium's WebElement that Element is wrapping.

Syntax

Element.webelement

Usage

correct usage
py.get('a').webelement
incorrect usage
# Errors, 'webelement' is not a function
py.get('a').webelement()

Arguments

  • None

Yields

  • (WebElement) The current instance of Selenium's WebElement that is wrapped by Element

Examples

Most scenarios won't need this, but it's provided just in case. The biggest reasons to use .webelement

  • access functionality that may not exist in Pylenium

  • functionality that requires you pass in a WebElement

Last updated