I would like to verify the title of the new browser window that just popped after clicling link?
Submitted by: AdministratorI am not using any frame file with my scripts.I dynamically get all the links in a web page and click on the link I want to, by matching its caption....The problem I am facing is that, when I click a link "x" on a webpage it opens a new browser window.I would like to verify the title of the new browser window that just popped after clicling link "x".Since I am not using frame file I find it difficult to retrive the title of new browser window.....Any solution ?
Ttry with GetCaption ()....
BrowserPage.Getcaption () --> It would return the caption/title of the page...Compare it with the expected value...
Yes, here you have to make sure that the new invoked page gets the attention.....
BrowserPage.SetActive ()
BrowserPage.Getcaption ()
if
the caption is not same as the initial page, this is the new invoked page and what you desire
else
Desktop.TypeKeys ("")
if
if BrowserPage.IsActive ()
get the caption and check as earlier
else
Desktop.TypeKeys ("")
This is just a rough algol, you have to implement it with appropriate loop so that it becomes independent of the number of currently invoked windows....
Submitted by: Administrator
Ttry with GetCaption ()....
BrowserPage.Getcaption () --> It would return the caption/title of the page...Compare it with the expected value...
Yes, here you have to make sure that the new invoked page gets the attention.....
BrowserPage.SetActive ()
BrowserPage.Getcaption ()
if
the caption is not same as the initial page, this is the new invoked page and what you desire
else
Desktop.TypeKeys ("")
if
if BrowserPage.IsActive ()
get the caption and check as earlier
else
Desktop.TypeKeys ("")
This is just a rough algol, you have to implement it with appropriate loop so that it becomes independent of the number of currently invoked windows....
Submitted by: Administrator
Read Online SilkTest Job Interview Questions And Answers
Top SilkTest Questions
☺ | How to search for html link? |
☺ | How to read .xls file contents without using the ddt wizard? |
☺ | Need help regd. silk test runing thr .bat file on cmd prompt? |
☺ | How to launch 2 web application windows simultaneously thru Silktest? |
☺ | Can SilkTest run on Mac? |
Top Application Program Categories
☺ | AutoCAD Interview Questions. |
☺ | Microsoft Office Interview Questions. |
☺ | Microsoft Outlook Interview Questions. |
☺ | Microsoft Excel Interview Questions. |
☺ | WPF Interview Questions. |