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

Using web driver how you can store a value which is text box?

941


How to switch to a new window (new tab) which opens up after you click on a link?

974


How can you find if an element displayed on the screen?

876


What is selenium 1.0?

881


Explain why to choose python over java in selenium?

905


What’s selenese?

821


Give an example of the languages supported by webdriver?

892


How to launch a browser using selenium webdriver?

993


What is an implicit wait in selenium?

1062


How you can insert a break point in selenium ide?

879


What You Know About Selenium Grid?

933


What is selenium? What are the different selenium components?

901


What is the alternate way to click on the login button?

971


How to delete cookies in selenium?

939


How to send alt/shift/control key in selenium webdriver?

1469