// Store you current window handle in a String variable.
String parentWindow = driver.getWindowHandle();
// Click on the the page element which causes a new window to be opened,suppose a link.
driver.findElement(BY.linkText("myLink")).click();
// Get the window handle of the new browser window opened.
String childWindow = (String) driver.getWindowHandles().toArray()[1];
// Switch to newly opened window.
driver.switchTo().window(childWindow);
// Switch back to main window.
driver.switchTo().window(parentWindow);
© automatethebox. All Rights Reserved
27 comments:
Informative Post! Thanks admin.
Selenium Training
Useful post.
Selenium Training in Chennai
keep blogging on Selenium Topics
Selenium Training Chennai
I read your blog from the beginning.it s very informative.Thank you so much for sharing... Selenium Training in Chennai
Dot Net Training in Chennai
Android Training in Chennai
The blog gave me idea to switch between browser windows my sincere thanks for sharing this post please continue to share this post
Selenium Training in Bangalore
really nice blog has been shared by you. before i read this blog i didn't have any knowledge about this but now i got some knowledge about this so keep on sharing such kind of an interesting blogs.
Selenium Training in Bangalore
Selenium play an important role in today’s era of technology. And You have post an very informative post. Your blog gave me a lots of new ideas. Keep posting such kind of useful information. Thanks.. Selenium Training in Chennai | Software Testing Training in Chennai
Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing your valuable information and time. Please keep updating.
ME/M.Tech Project Center in Chennai | ME/M.Tech Project Center in Velachery
Thanks for one marvelous posting! I enjoyed reading it;Great post.The information was very useful.Keep the good work goin on!!
Hadoop training in chennai | Mainframe training in chennai | SAP SD training in chennai
Very useful content
Sap MM Training In Chennai | Mainframe Training In Chennai | Hadoop Training In Chennai
Excellent Article ...thank u for sharing, such a valuable content Learners to get good knowledge after read this article.. Selenium Training in Chennai | Selenium Training institutes in Chennai
Informative blogs.. Keep posting more useful blogs about selenium
Selenium training in Velachery
Selenium training institute in chennai
Selenium training in chennai
Your good knowledge and kindness in playing with all the pieces were
very useful. I don’t know what I would have done if I had not
encountered such a step like this.
hadoop training in chennai
I am really happy with your blog because your article is very unique and powerful for new reader.
Selenium Training in Chennai
Great website and content of your website is really awesome.
Selenium Training in Chennai
software testing selenium training
iOS Course in Chennai
iOS Training Chennai
Java training institute in chennai
Best JAVA Training institute in Chennai
I am happy to find this post Very useful for me, as it contains lot of information
Article submission sites
Guest posting sites
Thanks first of all for the useful info.
the idea in this article is quite different and innovative please update more.
angularjs training center in bangalore
AngularJS courses in Anna Nagar
AngularJS Certification Training in T nagar
Awesome Post. I was searching for such a information for a while. Thanks for Posting. Pls keep on writing.
Informatica Training in Chennai
Informatica Training center Chennai
Informatica Training Institute in Chennai
Best Informatica Training in Chennai
Informatica Course in Chennai
Informatica Training center in Chennai
Informatica Training chennai
Thanks for taking time to share this concepts admin.
DevOps Training
DevOps course in Chennai
DevOps course
Best DevOps Training in Chennai
Data Analytics Courses in Chennai
Blue Prism Training Institutes in Chennai
RPA courses in Chennai
Thanks for your efforts in sharing this information in detail. Kindly keep continuing the great work.
Best Oracle Training Institute in Chennai
Best Oracle Training in Chennai
Oracle Training Center in Chennai
VMware Training
Vmware Training center in Chennai
VMware Training institute in Chennai
Awesome Post. It was a pleasure reading your article. Thanks for sharing.
Pega training in chennai
Pega course in chennai
Pega training institutes in chennai
Pega course
Pega training
Pega certification training
Pega developer training
Nice post
selenium training centers in Marathahalli
best software testing training institutes in Marathahalli with placements
automation testing courses in Marathahalli
selenium testing course in Marathahalli
software testing institutes in Marathahalli
selenium training in Marathahalli
best selenium training in Marathahalli
selenium course in Marathahalli
Awesome Writing. Wonderful Post. Thanks for sharing.
Blockchain certification
Blockchain course
Blockchain courses in Chennai
Blockchain Training Chennai
Blockchain Training in Anna Nagar
Blockchain Training in T Nagar
Blockchain Training in OMR
Thank you a lot for providing individuals with a very spectacular possibility to read critical reviews from this site. Mobile App Development Company
Python Training in ChennaiLearn Python Training in Chennai from industry experts and become a python certified professional.BITA is the Best Python Training Institute in Chennai which is located in ramapuram. Call for more details.
Infycle Technologies, the No.1 software training institute in Chennai offers the No.1 Selenium course in Chennai for tech professionals, freshers, and students at the best offers. In addition to the Selenium, other in-demand courses such as Python, Big Data, Oracle, Java, Python, Power BI, Digital Marketing, Cyber Security also will be trained with hands-on practical classes. After the completion of training, the trainees will be sent for placement interviews in the top companies. Call 7504633633 to get more info and a free demo.
A Revolution in Business Marketing Businesses may send customized messages that stand out in the packed inbox using RAT SMS's WhatsApp Promotional Offers. Businesses may send their audience exclusive deals, flash sales, or seasonal promotions by using the WhatsApp Business API. Customers have a more interesting and customized experience as a result of this direct relationship.
Post a Comment