2

UFT launches Chrome but it detects it as winobject. If I open it manually it sees chrome as browser. How can I fix this?

  • Flagged as uft14? Don't try to use anything lower than 14.53+patches. And Chrome and Edge support, however, requires UFT15+. Don´t try to use current browsers with UFT 14.x, it will seem to work, but it doesn't. – TheBlastOne Nov 10 '22 at 07:48

1 Answers1

0

Validate the chrome extension is enabled.

Go to: chrome://extensions/

Validate it's enabled:

UFTChromeExtension

Sometimes the extension is installed but is not enabled by default.

If that doesn't work can you confirm how you're launching chrome with UFT?

A solid way is: systemutil.run "chrome", url'

RichEdwards
  • 3,423
  • 2
  • 6
  • 22
  • UFT extension is enabled, UFT launches chrome from the record and run settings screen, not from a line of code. – Jaime Garay Jun 13 '22 at 15:58
  • 1
    @JaimeGaray Then i suggest you try that line of code :-) - Chrome can exist in multiple installation locations on a single machine and have different profiles. You might be launching the "wrong" chrome on your box. Look at how you launch chrome manually, you might be running a file path or execution arguments you're not aware of - corporate policies may be in affect without you realising.... If you migrate this coded approach of test/environment data management you're in much greater control of the execution. – RichEdwards Jun 14 '22 at 08:57
  • I did that. The browser opens now, however now the browser is identified as browser instead as a web broswer. Do you know why this could be happening? – Jaime Garay Aug 16 '22 at 16:36
  • Hi Jamie, probably best to edit your question and add some more detail. Probably show a picture of your issue and what the object spy identifies when you point it at an element. – RichEdwards Aug 17 '22 at 17:35
  • Maybe old, but: UFT detecting a Browser testobject as opposed to a WebBrowser testobject is correct because the testobject indeed is named "Browser", not "WebBrowser". There is no "WebBrowser" testobject in UFT. – TheBlastOne Jan 18 '23 at 13:06