Get Selected Option Text

Last modified: June 18, 2025

Description

Returns the text of the currently selected item of a WebElement, for example, select

Usage

Pass the parent WebElement of which you want to get the currently selected option's text from.

Input Parameters

NameDatatypeRequiredDescription
Select ElementWebElementyesThe parent WebElement, for example, select

Return Value

NameDatatypeDescription
Selected Option TextStringThe text of the currently selected WebElement