QTP 11.0 – change tabs in IE 7

Tags:
Question ID: 104307
0
0

Anyone know how to change tabs on IE ?
Language allows for ‘OpenNewTab’ method, but little guideance for changing between tabs.

Any assistance is appreciated

Thanks

McDuff

Marked as spam
Posted by (Questions: 1, Answers: 0)
Asked on January 7, 2011 7:28 pm
9 views
Answers (1)
7
Private answer

I just address the new browser object. Below code opens new tab and navigates to Eye on Testing home page. Then go back to the original tab to go to this page. Notice the two browser objects.

    
Browser(''orasi software - Google'').Page(''Google'').WebEdit(''q'').Set ''eyeontesting''
Browser(''orasi software - Google'').Page(''Google'').WebEdit(''q'').Submit
Browser(''orasi software - Google'').Page(''eyeontesting - Google'').Link(''EyeOnTesting - The Software'').Click
Browser(''orasi software - Google'').Page(''EyeOnTesting - The Software'').Sync
Browser(''orasi software - Google'').OpenNewTab
Browser(''New Tab'').Page(''New Tab'').Sync
Browser(''New Tab'').Navigate ''http://eyeontesting.com/''
Browser(''orasi software - Google'').Page(''EyeOnTesting - The Software'').Sync
Browser(''orasi software - Google'').Navigate ''http://eyeontesting.com/questions/631/qtp-11-0-change-tabs-in-ie-7''
 
Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on February 21, 2011 8:14 pm