Selenium WebDriver - Sample Interview Question (Junior Level)

What will happen when you execute the following code?

WebDriver driver = new FirefoxDriver();
 driver.navigate().to("http://test.com/");

 WebElement body = driver.findElement(By.tagName("body"));
 body.sendKeys(Keys.CONTROL + "t");

 driver.quit();

  1. The browser will open the site test.com and close itself upon calling quit()
  2. The browser will open the site test.com and another tab containing the same address (test.com) and close itself upon calling quit()
  3. The browser will open the site test.com and another empty tab and close itself upon calling quit()
  4. None of the above
Tests in Selenium WebDriver for Juniors

Test Name Difficulty Time (minutes) No. of Questions
Selenium WebDriver Online Test for Juniors Selenium WebDriver Junior 20 10