> For the complete documentation index, see [llms.txt](https://docs.pylenium.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pylenium.io/element-commands/actions/focus.md).

# focus

## Syntax

```python
Element.focus() -> Element
```

## Usage

{% code title="correct usage" %}

```python
py.get(".menu").focus()
```

{% endcode %}

{% code title="incorrect usage" %}

```python
# Errors, Pylenium doesn't have a focus() command
py.focus()
```

{% endcode %}

## Arguments

* None

## Yields

* <mark style="color:orange;">**Element**</mark> - The element that has been focused
