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

Tell me in which format does source view show the script in selenium ide?

922


Explain the difference between implicit wait and explicit wait.?

997


How to handle the AJAX popup window?

1140


How are web-based pop-ups handled in selenium?

1027


What is difference between qtp and selenium?

1124


What is page object model or pom?

1033


What is desired capability? How is it useful in terms of selenium?

894


What are the different methods to refresh a web page in webdriver?

942


How selenium grid works?

1010


What does a concentrator do in the selenium network?

1028


How to insert a breakpoint in selenium ide?

1078


How to check the checkbox or radio button is selected?

911


Which is the super interface of webdriver?

1026


Why testers should opt for selenium and not qtp?

938


How to enforce the title of the website?

1092