Select radiobutton thro' datatable input
Hi,
In flight reservation,if parameterizing done thro' datatable.
Then how to select the radiobuttons "First","Business" & "Economy" , if the input is thro' datatable.
I'm using descriptive programming, which similar to the above scenarion,Please help what method should be used with radiobutton to set the option according to the datatable input?
Thanks
MaluR
Re: Select radiobutton thro' datatable input
[QUOTE=MaluR;26146]Hi,
In flight reservation,if parameterizing done thro' datatable.
Then how to select the radiobuttons "First","Business" & "Economy" , if the input is thro' datatable.
I'm using descriptive programming, which similar to the above scenarion,Please help what method should be used with radiobutton to set the option according to the datatable input?
Thanks
MaluR[/QUOTE]
I cannot understand how you set the radiobutton "ON" by using datatable.
You can use this line to set radiobutton "ON"...
window("text:=Flight Reservation").winradiobutton("text:=First").Click
Re: Select radiobutton thro' datatable input
Browser("micClass:=Browser").Page("micClass:=Page").WebRadioGroup("name:=servClass").Select DataTable("FlightClass",dtGlobalSheet)
FlightClass is (Coach, Business, & First) in the DataTable
Re: Select radiobutton thro' datatable input
[QUOTE=MaluR;26146]Hi,
In flight reservation,if parameterizing done thro' datatable.
Then how to select the radiobuttons "First","Business" & "Economy" , if the input is thro' datatable.
I'm using descriptive programming, which similar to the above scenarion,Please help what method should be used with radiobutton to set the option according to the datatable input?
Thanks
MaluR[/QUOTE]
It's very simple, just type 1,2,3in data table in different columns and parametrize this value for radio button.
1-First
2-Business
3-Economy
Re: Select radiobutton thro' datatable input
Yes the one which Anshoo written will work out
Browser("micClass:=Browser").Page("micClass:=Page").WebRadioGroup("name:=servClass").Select DataTable("FlightClass",dtGlobalSheet)
FlightClass is (Coach, Business, & First) in the DataTable
Re: Select radiobutton thro' datatable input
Browser("micClass:=Browser").Page("micClass:=Page").WebRadioGroup("name:=servClass").Select DataTable("FlightClass",dtGlobalSheet)
is not woking the following error message pop's up
Cannot identify the specified item of the[servClass] object.......
Any suggestions
Thanks
abc33xyz
Re: Select radiobutton thro' datatable input
I think the below is missing a word "value".
Browser("micClass:=Browser").Page("micClass:=Page").WebRadioGroup("name:=servClass").Select DataTable("FlightClass",dtGlobalSheet)
Try
Browser("micClass:=Browser").Page("micClass:=Page").WebRadioGroup("name:=servClass").Select DataTable.[COLOR="Red"]value[/COLOR]("FlightClass",dtGlobalSheet)