Descriptive programming and data table
I have to develop script for following scenario and will be thankful if you can provide your inputs
1. Launch the webpplication ( for eg : ebay.com)
2. Click on any link on header
3. On next page click on any links on left navigation tree .
Say for eg - the links on left hand navigation tree
I am looking for a logic so that script identifies any link depends on some unique property . The value will be supplied through data table so that if anything changes I can modify the data table than touching the main scripts . I have a script which looks like below but it's throwing 'type mismatch' on 3rd line of code .
BeautyLeftNav("html tag").value ="A"
Linkclick= Browser("SPC").Page("SPC").Link(BeautyLeftNav).Cli ck
Is it the 3rd or 4th line? You were discussing DataTable values, but the third line is setting the class property.
If line 4 then. Try using "Global" instead of dtglobalsheet. I think the capitalization of the word may matter.
There's a typo in the third line that would cause that error, i'm guessing. Lfet instead of Left.
Thanks a bunch for the reply ! .But the code is not working
The "[ Link ]" object's description matches more than one of the objects currently displayed in your application. Add additional properties to the object description in order to uniquely identify the object.
Line (13): "Linkclick= Browser("SPC").Page("SPC").Link(BeautyLeftNav).Cli ck".
You might need to add an index property to the object description:
If that doesn't click the link you need, then you'll have to find some way to tell the difference between the multiple links.
Thanks a lot for the reply ! it worked .