UFT doesn’t recognize objects with two browsers opened.
Question ID: 105911
1
0

I’m opening browser using UFT:

strBrowser = "iexplore.exe"
strUrl = "www.myurl.com"

SystemUtil.Run strBrowser, strUrl

After that I try to login into my website and depending on if I have just IE open or if I also have Chrome open:
– When only IE is running everything is ok
– When IE is running, and in the background there is chrome browser open, UFT can’t identify objects. When I try to locate it on site from the Object Repository window, this error happens:

"The selected object cannot be found in the application. Check that the application is open to the correct page or window and that the object and its parents do not have parameterized values."

This only happens when IE and chrome are opened.

Marked as spam
Posted by (Questions: 387, Answers: 66)
Asked on January 30, 2015 10:18 pm
396 views
Answers (1)
1
Private answer

Most of the time I've found that if you go to the Record>Record and Run Settings menu, then on the Web tab choose the top radio button that says ''Record and run test on any open browser'' and on the web tab, ''Record and run test on any open Windows-based application'', it should fix the problem for you. I recommend choosing the top radio button for any tab available in these settings.

![Record and run settings][1]

Also, if you are going to SystemUtil.Run to launch IE, I recommend using the full path to the 32 bit version of IE which is usually C:Program Files (x86)Internet Explorer on 64 bit machines and C:Program FilesInternet Explorer on 32 bit machines. You don't have to worry about it really on 32 bit machines, but 64 bit machines should have the full path.

[1]: /storage/temp/243-2browsers.png

Marked as spam
Posted by (Questions: 17, Answers: 807)
Answered on January 30, 2015 10:19 pm
0
that resolved it.
( at January 30, 2015 10:20 pm)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top