Hi winrunner gurus ,
can anyone tell me how to solve the problem of having multiple object with same name on a same window.At the time of recording winrunner record it with _1 extension but when i tried to run the script the other object is clicked instead of intended one.
I am having web application that contains multiple image button link with name "New Row".I am using context sensitive mode for recording the test script.
I am attaching web page screen with this message.
Also the tag material and tool displayed on the screen when clicked displayed button "New Row".
Capture all available attributes of these buttons by using the GUI Spy. Compare it and find out which attributes contain differencent values.
You will have to use one of these attributes (in addition to class and label) to distinguish your buttons.
Try to take this attribute that is the least likely to change (the most stable attribute). Sometimes regular expressions can help you to make the identification more stable.
Check out some of the optional properties apart from mandatroy one using GUI SPY. They differentiate when this kind of situation arises. select from those properties which you think can differentiat between these common objects.
Hi , Thanks to all of you for giving your valuable replies.Now i solved the problem using GUI checklist like following statement
obj_check_gui("New Row", "list15.ckl", "gui15", 1);
its working well in the main application but when i cut the part of the code , put it as some sub application and use it through call statement it does not work it shows error like can not open gui15 file.Now how to solve this problem.