I've been using Coded UI-Tests to test my company's web pages and I've run into this problem several times lately, unable to figure out a solution. What I'm trying to do is have a coded UI test click a link on one of the sites pages, which then opens up the link in a new tab. My issue is asserting that the new page is the right page, and has the right content in it.
When I run the test it will do everything else fine, it opens the link in a new tab, but the test can't seem to see whats on the new tab. I recorded the tests in the IE 9 environment, and set the assertions through the Coded UI interface. Is anyone aware of a way to redirect the tests attention to the new tab? Or what the issue I'm experiencing could be?
Any help is greatly appreciated, Thanks.