01-29-2009, 06:03 PM
Hi Manoj,
I hope its a very lengthy way.
Just try out this way :
Here if datatable value is not equal to "Economy" then it will take the value from datatable & select the radiobutton.
If datatable value is equal to "Economy" , it will not enter the " if " loop at all & continues with the next executable statements....so like this we have skipped the second step.
I hope you understood the solution...
I hope its a very lengthy way.
Just try out this way :
Code:
if (DataTable("p_Value", dtGlobalSheet)<>"Economy") then
Browser("Welcome: Mercury Tours").Page("Find a Flight: Mercury").WebRadioGroup("servClass").Select DataTable("p_Value", dtGlobalSheet)
End if
Here if datatable value is not equal to "Economy" then it will take the value from datatable & select the radiobutton.
If datatable value is equal to "Economy" , it will not enter the " if " loop at all & continues with the next executable statements....so like this we have skipped the second step.
I hope you understood the solution...