Reputation: 3
I using Selenium Webdriver for testing mobile version site.When i use GoToUrl function, it open the main page of site, and then automaticaly redirect to new window by javascript with request to launch external application(iTunes). Link is not visible in address bar. How i can switch to new window and get redirect link by webdriver in c#? Please help.
Upvotes: 0
Views: 1026
Reputation: 711
Get the full URL then compare...
string url = driver.Url; // should return active url
Upvotes: 0