How to verify a target="_blank" link using selenium? -


Using target = "_ blank" some links to our page open in a new window. How can I see Selenium on the right window so that I can verify that the page is linking to the right page?

I am trying this:

  open / page / click link = find us on Facebook! Pause 2000, select the window title = Confirm the title of the window, submit some text  

< P> You will not need to have a parameter Window Browser to automatically assign your new window focus, you only have to tell Selenium that it has changed. Also make sure you have enough time to actually load your new window before checking anything:

  open / click the page link = find us on Facebook! Stop 1000 Select Verify Videos Some Text  

Comments