Posts: 4
Threads: 2
Joined: Mar 2011
Reputation:
0
03-21-2011, 12:43 PM
Hi All..
i am facing a problem.when i recording a script and click on 1 web button it will open another web page.when i run this test an error occured stating that unable to identify the object bcoz multiple instances of web browser is exists.
plz help me out.
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
03-21-2011, 01:02 PM
Before you start executing, bring the state of the browser back to the state when you begun recording. Or close the browser and execute the script ( make sure you have in the recorded script to open the app you need).
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Posts: 4
Threads: 2
Joined: Mar 2011
Reputation:
0
03-21-2011, 03:23 PM
i tried all dat..but the thing is when i click the button it will open a new page in the new window.
and qtp is not able to recognize the object on this newely opened page..
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
03-21-2011, 03:32 PM
So, here is a good example. This fact was never quoted by you in the first instance.Well, now that you have rolled the skeletons out of the box, here is what you may need to do,
For the second browser which opens up, you will have to tweak the code to include ,
Browser("CreationTime:=1")....
This way, you can differentiate the browsers, and then hopefully the child objects after that.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.