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

What are selenium tests normally named (as displayed at the top of each test when viewed from within a browser)?

839


How can we check if an element is getting displayed on a web page?

846


How will u write page object models and data driven model.

1265


Give ide's main parts and components?

881


How to scroll down to a particular element?

3558


How to check the checkbox or radio button is selected?

826


What api is required for database testing in selenium webdriver?

971


What are the types of waits available in selenium webdriver?

842


Tell me what kind of mouse actions can be performed in selenium?

876


List some advantages of test automation?

871


sorting java array

1605


How can we find all the links on a web page?

904


Can we use selenium rc for tests driving on two different browsers on one operating system without selenium grid?

879


How can you fetch an attribute from an element? How to retrieve typed text from a textbox?

1053


Which web driver implementation is the fastest?

938