# webelement

## Syntax

```python
Element.webelement
```

## Usage

{% code title="correct usage" %}

```python
py.get('a').webelement
```

{% endcode %}

{% code title="incorrect usage" %}

```python
# Errors, 'webelement' is not a function
py.get('a').webelement()
```

{% endcode %}

## 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

```python
# Using the expected_conditions as EC
element = py.get('.loading-spinner')
py.wait.until(EC.staleness_of(element.webelement))
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pylenium.io/element-commands/webelement.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
