Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Actions in a new Browserwindow
#11
Solved: 10 Years, 9 Months ago
What is the line of code like if you record the action?
Reply
#12
Solved: 10 Years, 9 Months ago
If i record the action it looks like:

Code:
Browser("Google").Page("Google").Image("Google").Click
Reply
#13
Solved: 10 Years, 9 Months ago
Sorry. Try this.

This should work

Code:
Browser("CreationTime:=0").Page("micClass:=Page").Image("name:=Google").Click
Reply
#14
Solved: 10 Years, 9 Months ago
Hm, if i use
Code:
Browser("CreationTime:=0").Page("micClass:=Page").Image("name:=Google").Click
i get following error:
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
and it seems to work? At least I got no error message...
I will try to test a little further.
Reply
#15
Solved: 10 Years, 9 Months ago
Add any property that will allow QTP to recognize the object.
Reply
#16
Solved: 10 Years, 9 Months ago
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?
Reply
#17
Solved: 10 Years, 9 Months ago
Yes it is.
Reply
#18
Solved: 10 Years, 9 Months ago
Hm, that can possibly cause new problems.
Thanks so far. Smile
Reply
#19
Solved: 10 Years, 9 Months ago
My pleasure.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to call Actions from other Actions Naresh 1 7,693 09-25-2014, 10:26 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)