Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do you handle Multiple windows in your application?

Answer Posted / suresh777

Set<String> parent=driver.getWindowHandles();

Object[] child=parent.toArray();

driver.switchTo().window((String) child[1]);

Here we have handle at any number of Windows

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to write in a text box using Selenium?

1040


Why and how will you use an excel sheet in your project?

3454


How do you verify if the checkbox/radio is checked or not?

885


Does selenium support mobile internet testing?

1005


what are the testing frameworks used in selenium?

1084


What is the main difference between web-driver and rc?

975


How to do file upload in selenium?

1047


How you can use recovery scenario with selenium?

1053


Mention what are the challenges in handling ajax call in selenium webdriver?

972


What are junit annotations?

1013


How can we fetch the page source in selenium?

1010


Can we test apis or web services using selenium webdriver?

987


Is selenium capable of handling windows pop-ups?

1032


What are the different types of wait statements in selenium webdriver? Or how do you achieve synchronization in webdriver?

973


What kind of mouse actions can be performed in selenium?

911