Actions in a new Browserwindow - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Actions in a new Browserwindow (/Thread-Actions-in-a-new-Browserwindow) Pages:
1
2
|
RE: Actions in a new Browserwindow - FredMan - 07-28-2008 What is the line of code like if you record the action? RE: Actions in a new Browserwindow - QADBA - 07-28-2008 If i record the action it looks like: Code: Browser("Google").Page("Google").Image("Google").Click RE: Actions in a new Browserwindow - FredMan - 07-28-2008 Sorry. Try this. This should work Code: Browser("CreationTime:=0").Page("micClass:=Page").Image("name:=Google").Click RE: Actions in a new Browserwindow - QADBA - 07-28-2008 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. RE: Actions in a new Browserwindow - FredMan - 07-28-2008 Add any property that will allow QTP to recognize the object. RE: Actions in a new Browserwindow - QADBA - 07-29-2008 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? RE: Actions in a new Browserwindow - FredMan - 07-29-2008 Yes it is. RE: Actions in a new Browserwindow - QADBA - 07-29-2008 Hm, that can possibly cause new problems. Thanks so far. RE: Actions in a new Browserwindow - FredMan - 07-29-2008 My pleasure. |