deselect

The command to deselect an <option> within a multi <select> element.

Syntax

Element.deselect(value)

Usage

correct usage
py.get('select').deselect('option-2')

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

py.get('select').deselect('locked').get('#start-edit').click()
incorrect usage
# Errors, can only perform 'deselect' on <select> elements
py.get('ul > li').deselect('option-2')

Arguments

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

Yields

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

Last updated