> 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/deselect.md).

# deselect

## Syntax

```python
Element.deselect(value)
```

## Usage

{% code title="correct usage" %}

```python
py.get('select').deselect('option-2')

---or--- # chain a Pylenium command

py.get('select').deselect('locked').get('#start-edit').click()
```

{% endcode %}

{% code title="incorrect usage" %}

```python
# Errors, can only perform 'deselect' on <select> elements
py.get('ul > li').deselect('option-2')
```

{% endcode %}

## Arguments

* `value (str)` - The text or value of the option to deselect.

## Yields

* **(Pylenium)** The current instance of Pylenium so you can chain commands.
