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

If the test case frame contains several test cases, how can one execute just the selected one of those test cases?

909


Tell us can captcha and bar code reader be automated by using selenium?

917


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

984


What programming languages does Selenium use?

1011


What is testng?

955


How you are integrating cucumber feature files with step files?

873


How do I start the browser using WebDriver?

1110


What’s new in selenium 3.0?

1023


What is testng assert and list out some common assertions supported by testng?

911


How to test ajax application with selenium?

1065


Mention why to choose python over java in selenium?

888


For database testing in selenium webdriver what api is required?

847


What are some advantages of selenium grid?

1011


How to handle frame in webdriver?

909


What is parameterized testing in testng?

1002