11-14-2014, 05:35 PM
I am unable to execute below script with different useer logins, working fine for one user. How to handle dynamic objects - please help me with below script.
''Part of my script as below''''''''''
''''' Here the link in top right corner of gmail will change as per user login hence I do not want to recognise that object with name - tries x and y co-ordinates this is also faling, please help me on this.
''Part of my script as below''''''''''
Code:
Browser("name:=Gmail").Page("title:=Gmail").WebEdit("html tag:=INPUT","name:=Email").Set x
Browser("name:=Gmail").Page("title:=Gmail").WebEdit("html tag:=INPUT","name:=Passwd").Set y
Browser("name:=Gmail").Page("title:=Gmail").WebButton("name:=Sign in").Click
wait(10)
Code:
Browser("name:=Inbox.*").Page("title:=Inbox.*").Link("x:=1171", "y:=47").Click
Browser("name:=Inbox.*").Page("title:=Inbox.*").Link("name:=Sign out").Click