Get Selected Option Value

Last modified: June 18, 2025

Description

Returns the value 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 value from.

Input Parameters

NameDatatypeRequiredDescription
Select ElementWebElementyesThe parent WebElement, for example, select

Return Value

NameDatatypeDescription
Selected Option ValueStringThe value of the currently selected WebElement