Script and Radio Button
I have a webpage where I have to run a report by selecting from few options via either by date or name or item number radio buttons.
Trying to write a script where if Date radio button is selected it should pick a date from the data table, or if the name radio button is selected it should pick a name from the data table and so on.
What is a best way to do this.
If statement is not working for me because when I say (WebCheckBox is acting as radio button instead of as a check box)
If Browser("Browser").Page("").WebCheckBox("").Set "OFF" Then
'Then' is giving run error because it should go right after the 3rd set of ()
Any and all help is appriciated.
Re: Script and Radio Button
You need to use GetROPRoperty function:
res = Browser("Browser").Page("").WebCheckBox("").GetROp roperty("checked")
If res = 1 Then
.... Do Checked Process
.... Do Unchecked Process