Quantcast
Channel: Silk Test - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 625

Handling radio buttons in Silk Test Classic

$
0
0

Hi,

I am trying to get all the items in an array for a radio button object.

Consider a radion button has two items 'item1' and 'item2'

I am using the below code.

LIST OF WINDOW lBrowser = Desktop.FindAll("//BrowserApplication")

WINDOW wRadio = wBrowser1.Find("//input[@id='radiobutton1']")

LIST cItems = wRadio.RadioListItems

Print(cItems[1])

Print(cItems[2])

 

When I execute the code instead of the actual item it is printed as '1' and '2'. I just want to print 'item1' and 'item2'

 

Can anyone please clarify.

 

Thanks.


Viewing all articles
Browse latest Browse all 625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>