Hi All,I am stuck on a problem and will be grateful if anyone can suggest possible solutions:I am recording a script which is essentially a process that involves the following:- Logging on to a website- Searching for an entry within a long list of entries by typing its name and clicking search-When the entry is found it is displayed on the screen-This entry is representing one of many buildings a company holds. The basic properties of the entry are in a row. One of these entries is the 'Status' of the building.i.e. Property Name | Status | .... X (this is a link which takes you to the datasheet of the property) | Occupied|......-clicking on the link (X) which takes you to the datasheet of the property and changing the status of the building by choosing a different value from the drop-down menu ( e.g from Occupied to Reserved).The test aims to check that when this change is saved, it is reflected in the table.The problem is that When I try to rerun my recorded scripts, the test fails towards the end of the script because as we save the new selection from the drop down menu, it immediately changes that selection to 'blank'. So when inserting a checkpoint to check for the text, the checkpoint fails because it cannot find the object with the text value 'Pending'.So basically it does change the status, but doesn't change it to what has been recorded...Any suggestions?Thanks.

Questions by nusezak

Showing Answers 1 - 1 of 1 Answers

HiI suggest you to mark an index value for the drop down menu and increment it using a for loop, so that when u run the script it need not explicitly search for the value, it will sequentially select the options form the drop down menu.EX: Window("Flight Reservation").WinComboBox("Fly From:").Select (1) : this line will select the flight from option from the drop down box.'Window("Flight Reservation").WinComboBox("Fly From:").Select "Denver": This is the recorded line.Hope this will help you.Thanks and RegardsBindu Dey.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.