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

Write the code to right click an element in selenium?

905


How to scroll down a page using javascript in selenium?

926


Explain me how many types of webdriver apis are available in selenium?

900


Mention what are the types of listeners in testng?

939


Which are the browsers supported by selenium rc?

1025


What are some limitations of selenium?

948


How to delete browser cookies with selenium web driver?

950


What is the difference between assert and verify in selenium?

1024


What are the different components of selenium?

1051


How does one calculate the number of rows using selenium 2.0?

1056


Tell us what are the two modes of views in selenium ide?

884


How can we submit a form in selenium?

943


How you can switch between frames?

957


How can I read test data from excels?

998


Why selenium rc is used?

1019