Job Opening for Tester of Web Apps at Moolya >>Could you spot this? This is intentional!
Like!

Tuesday Tip Day – Dealing With Tabs

When writing your automated tests for websites, you will some times have to deal with opening a new tab when clicking links or performing certain tasks. If you’re using Selenium, then it’s quite easy to think that because WebDriver only drives a single browser window, that it will also fail to deal with multiple tabs. But while it does mean writing some extra code, your Selenium tests can definitely look at and interact with tabs. public bool NavigateToNewTab(string tabTitle) { var tabHandles = driver.WindowHandles; var currentTab = tabHandles.First(); var newTab...

Read more...

Share |

Published By: The Testing Planet - Tuesday, 4 December