12-04-2011, 10:57 PM
(12-04-2011, 08:40 PM)ravi.gajul Wrote: Get the childobjects of type button and click accordingly based on the index
for ex
If you want to click one button then get the i value and click accordingly.Code:set allButtons=browser().Page().childobjects(<button type>)
for i=0 to allButtons.length-1
allButtons(i).click
next
Hope this helps
Hi Ravi,
I agree with your point, this logic will click the button in a sequence how the i value increases..In my above scenario I wanna click book button for the Airline I wish which might in the second postiion...when the next time I run the script my desire airline postion can change...In this case how I will i cllick