How to Switch between tabs in a single page. Refer screenshot

24 views
Skip to first unread message

Nithya Rangachari

unread,
Mar 20, 2014, 7:25:37 AM3/20/14
to webd...@googlegroups.com
Hello All,
   I am Nithya and new to this group. Recently I have started learning Selenium Webdriver on my own and been trying to automate stuffs.
I have got this scenario in the AUT has new tabs getting opened on clicking on different links in the left pane(Refer Screenshot) and I have no clue how to navigate between tabs.
Any help will be much appreciated.

Thanks in advance,
Nithya Rangachari
Switch Tabs.PNG

darrell

unread,
Mar 30, 2014, 10:00:23 AM3/30/14
to webd...@googlegroups.com
WebDriver allows you do automate tests you would normally conduct manually within the web browser. How would you conduct the test if you need to write out manual instructions? You need to be detailed. You also need to think in terms of HTML, CSS, XPath, javascript and interacting with the DOM. There is no such thing as 'tabs' in any of this. I can use HTML, CSS, XPath and javascript to simulate the concept of tabs on a web page. There are multiple ways I can make this happen. How I automate it is completely dependent on how I implement it.

Bottom line, picture of the web page is seldom helpful. How it was implemented (HTML, CSS, XPath, javascript and DOM) is what we need to look at in order to automate it.
Reply all
Reply to author
Forward
0 new messages