Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If Object name is completely changing then I am unable to recognize that object
#1
Not Solved
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''''''''''
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)
''''' 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.
Code:
Browser("name:=Inbox.*").Page("title:=Inbox.*").Link("x:=1171", "y:=47").Click
    Browser("name:=Inbox.*").Page("title:=Inbox.*").Link("name:=Sign out").Click
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Changing Data in the application newbieny 0 969 07-17-2019, 07:19 PM
Last Post: newbieny
Exclamation UFT doesn't recognize object in SAP at first, but recognize it after i click debug CedricMab 3 6,674 02-06-2017, 07:09 PM
Last Post: nguyen4685
  General Object Error(Find Object Error) akhandesh 1 3,600 02-24-2016, 01:05 PM
Last Post: sindhus
  How to Verify Static Object Text which is changing Dynamically with Expected Result johnny77 0 3,295 06-25-2015, 11:32 AM
Last Post: johnny77
  Clicking on Window object to make it a javaedit object indranilgoswamimcb 0 2,159 11-03-2013, 09:03 PM
Last Post: indranilgoswamimcb

Forum Jump:


Users browsing this thread: 3 Guest(s)