![]() There are many ways of opening a new tab. When managing tabs, we have to be able to create a window handler, switch to it, do some stuff, then switch back to our original window handler. Each WebDriver instance has a reference to it’s current window handler, which is points to the current tab or window that driver is interacting with. Tabs = Windowsįirst of all, Selenium really has no concept of what a tab is and how it differs from a window. There are many, many ways of managing tabs in selenium, so lets take a look at what works and what doesn’t. Some testing requires opening a new window, performing an action, then closing that window, perhaps even returning to the original window to continue the test. Equivalent methods should exist in whichever other language client driver you use. In this post I reference methods in the Selenium C# client driver.
0 Comments
Leave a Reply. |