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

Define selenium 2.x?

1070


Can you explain the framework which you have used in your selenium project?

889


How can we move to nth child element using css selector?

975


How can we submit a form in selenium?

937


What are the operating systems supported by selenium webdriver?

863


What is heightened privileges browsers?

1053


How many types of waits in selenium?

998


How does testng allow you to state dependencies? Explain it with an example.

3480


Why should selenium be selected as a test tool?

1132


Which are the browsers supported by selenium rc?

1018


Explain me how to check a checkbox in selenium?

891


How do you simulate scroll down action?

988


What are core extension?

913


How to check which option in the dropdown is selected?

1009


What will be the different kinds of locators in selenium?

864