UrbanPro

Learn Selenium from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

How do I open multiple windows with the same url in Selenium using Java?

Asked by Last Modified  

Follow 4
Answer

Please enter your answer

WebDriver navigate().to() and get() do exactly the same thing. There is no API to open a new window, but you can use ctrl+n hotkey: WebDriver driver = new FirefoxDriver(); WebElement body = driver.findElement(By.tagName("body")); body.sendKeys(Keys.chord(Keys.CONTROL, "n")); System.out.println(driver.getWindowHandles().size()); ...
read more
WebDriver navigate().to() and get() do exactly the same thing. There is no API to open a new window, but you can use ctrl+n hotkey: WebDriver driver = new FirefoxDriver(); WebElement body = driver.findElement(By.tagName("body")); body.sendKeys(Keys.chord(Keys.CONTROL, "n")); System.out.println(driver.getWindowHandles().size()); driver.quit(); Or you can use few instances of WebDriver (see Selenium Java open new window, close it, and control main window again) read less
Comments

Spoken English Teacher

declare multiple driver objects and then navigate to same URL.
Comments

Expert In QTP/Selenium

can u share the scenario where u want to use this.... then it will easy to understand the query.
Comments

Tutor

We can achieve this by XML concepts
Comments

View 2 more Answers

Related Questions

Can I learn selenium without manual testing knowledge?

The mentor will guide you the basics of Manual Testing ...You can able to learn.
Krishna
How long will you take to complete selenium course as a weekend batch ? And what is the time duration for each class ?
Selenium and Java basics will take require around 8 hours of coaching. 2 hours every week. Rest, the student needs to practice at home on a daily basis
Ramachandran
Hi, We provide online instructor-led training. I am looking for Java Teacher/Instructor who can teach java via online. If anyone interested then contact me. I have to start the class from tomorrow onwards.
Hi, If you haven't finalised yet, I am interested in being an instructor. I will be teaching the newest version of Java, Java 10. Experience - 3 yrs as Software Engineer, BTech CSE, teaching Java to school and college students since 3 yrs.
Ujjwal Rana
What is the cost of ISTQB Test? What is the procedure to apply for it? I am a graduate in B.Sc. Can this ISTQB test help me in finding a IT job?
Hi Jagadeesh, Getting a job in Testing needs good conceptual knowledge in Software Engineering, Testing, Test Methodologies and types, Test Reporting and Metrics. ISTQB will have questions more related...
Jagadeesh

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

How to toggle b/w frames in webdriver
driver.switchTo().frame() method takes one of the three possible arguments: A number - Select a frame by its (zero-based) index. A name or ID - Select a frame by its name or ID. A previously found...

High level Steps to target for cracking Interview for Selenium with java
1. Prepare well to explain the framework and its high level flow using different tools/component used in the framework development. 2. Prepare well with the selenium commands. 3.Prepare well with Basic/Oops...

Wait Handler implementation in WebDriver
public void waitForElementPresence(By by) { Wait<WebDriver> wait = new WebDriverWait(driver, GLOBAL_TIME_OUT); wait.until(ExpectedConditions.presenceOfElementLocated(by)); } ...

Selenium WebDriver Cheat Sheet
This cheat sheet for selenium webdriver provides all the important and commonly used methods, operations and commands for your easy daily access.

Introduction of Selenium
Selenium is one of the most popular open-source automated testing Tools available today. Selenium automates web applications for testing purposes, but is certainly not limited to just that.Introducing...
N

Recommended Articles

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Hadoop is a framework which has been developed for organizing and analysing big chunks of data for a business. Suppose you have a file larger than your system’s storage capacity and you can’t store it. Hadoop helps in storing bigger files than what could be stored on one particular server. You can therefore store very,...

Read full article >

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

Read full article >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

Looking for Selenium Training?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Selenium Classes?

The best tutors for Selenium Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Selenium with the Best Tutors

The best Tutors for Selenium Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more