How to use UFT Window object methods on a Browser?
Question ID: 105872
1
0

I am trying to interact with the Window object when the object is a browser? UFT will only record it as a browser.

Marked as spam
Posted by (Questions: 45, Answers: 1)
Asked on January 26, 2015 9:38 pm
747 views
Answers (1)
1
Private answer

There are couple ways get to the windows object for a browser object.

1. Use Low-level recording which is an option while recording.
2. Restart UFT/QTP without Web addin and then record against the browser, which will be detected as Windows obect. Once the coding for the Windows object is complete Restart UFT/QTP with the Web Add in and test.
3. Get the Browser's title and use title with regular expression in a descriptive programming expression.


title = Browser(''MyBrowser'').GetROProperty(''title'')
Window(''micclass:=Window'', ''text:='' & title & ''.*'').Maximize 

Note HP has listed more options in HP Document KM1029497

Document ID: KM1029497
Title: How to use Window methods on Browser?

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on January 26, 2015 9:39 pm
EyeOnTesting

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

X
Scroll to Top