07-28-2008, 09:04 PM
What is the line of code like if you record the action?
Actions in a new Browserwindow
|
07-28-2008, 09:04 PM
What is the line of code like if you record the action?
07-28-2008, 09:28 PM
If i record the action it looks like:
Code: Browser("Google").Page("Google").Image("Google").Click
Sorry. Try this.
This should work Code: Browser("CreationTime:=0").Page("micClass:=Page").Image("name:=Google").Click
07-28-2008, 09:57 PM
Hm, if i use
Code: Browser("CreationTime:=0").Page("micClass:=Page").Image("name:=Google").Click Cannot identify the object "[ Image ]" (of class Image). Verify that this object's properties match an object currently displayed in your application. Line (8): Code: "Browser("CreationTime:=0").Page("micClass:=Page").Image("name:=Google").Click". But if i use another property instead of name: Code: Browser("CreationTime:=0").Page("micClass:=Page").Image("alt:=Google").Click I will try to test a little further.
07-28-2008, 10:03 PM
Add any property that will allow QTP to recognize the object.
07-29-2008, 12:30 AM
Ok, i'm understanding.
That's easy and logical. But what if the browser with creationtime=2 is closed and an new one is opened? Is it right that the next browser window also has creationtime=2?
07-29-2008, 12:33 AM
Yes it is.
07-29-2008, 01:03 AM
Hm, that can possibly cause new problems.
Thanks so far.
07-29-2008, 01:06 AM
My pleasure.
|
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
How to call Actions from other Actions | Naresh | 1 | 7,966 |
09-25-2014, 10:26 AM Last Post: vinod123 |