MuraliKola / robotframework-seleniumlibrary

Automatically exported from code.google.com/p/robotframework-seleniumlibrary
Apache License 2.0
1 stars 0 forks source link

Keywords for getting selected labels/values from list #195

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
There is no keyword allowing to retrieve the selected label in a combo box, the 
Get Value keyword gives the selected value instead.

Original issue reported on code.google.com by mathieu....@gmail.com on 17 May 2011 at 5:27

GoogleCodeExporter commented 8 years ago
Sounds reasonable. Haven't looked at the Selenium API is this functionally 
available there directly, though.

Original comment by pekka.klarck on 19 May 2011 at 8:43

GoogleCodeExporter commented 8 years ago
There are actually four distinct methods in the Selenium API

get_selected_label(s) and get_selected_value(s)

These probably need to be all separate keywords, since otherwise it would be 
cumbersome to use the plural version with combo boxes, which can only contain a 
single selection.

My proposal is to add keywords:

Get Selected Value (works on combo boxes)
Get Selected List Values (works on lists)
Get Selected Label
Get Selected List Labels

Any comments?

Original comment by janne.t....@gmail.com on 8 Aug 2011 at 8:32

GoogleCodeExporter commented 8 years ago
After discussing with Pekka, we agreed to create four new keywords:

Get Selected List Value
Get Selected List Values
Get Selected List Label
Get Selected List Labels

The plural version always return a list, the singular return a single value and 
will fail if there is no selection or more than one selection.

Original comment by janne.t....@gmail.com on 8 Aug 2011 at 11:47

GoogleCodeExporter commented 8 years ago

Original comment by janne.t....@gmail.com on 8 Aug 2011 at 11:52

GoogleCodeExporter commented 8 years ago
This issue was updated by revision b9ede77e1853.

Original comment by janne.t....@gmail.com on 8 Aug 2011 at 12:10

GoogleCodeExporter commented 8 years ago
Hi,
Get Selected List Label or Get Selected List Value is not working when the 
window is freezed. 
Can you please let me know what is the alternate approache for this

Original comment by kv.shru...@gmail.com on 27 Jan 2015 at 6:19