Note
Choose True or False.
While running tests with RemoteWebDriver or Selenium-Grid. you can take screenshots.
True
False
In Order to mouse hover on a web element using WebDriver? Is the below written code uses the correct syntax and code
// lnstantiating Action Interface
Actions actions=new Actions(driver);
ll howering on the dropdown
actionsmoveToElement(driver.findElement(By.id("id of the dropdown"))).perform();
// Clicking on one of the items in the list options
WebElernent subLinkOption=driver.findElement(By.id("id of the sub |ink"));
subLinkOption.click();
TRUE
Select the correct the WebDriver methods to manage web-based alerts?
1.dismiss()
2.accept0
3.ignore()
4.sendKeys(String stringToSend)
5.getText()
1,2 & 5
3.5 &1
All of the Above
1,2,4 & s
Which of the following is the correct path for accessing all the servlets added to the node running on port 5555?
Consider abc as the machine name or ip on which the node is running.
http://abc:5555/extra/
http://abc:5555/admin/extra/
http://abc:5555/admin/
http://555528bc/admin/
Which of the following is/are the correct reason(s) for using Selenium-Grid?
i) For running tests against multiple browsers.
ii) For running tests against browsers running on different operating systems.
iii) For reducing the time taken by the test suite to complete a test pass.
iv) For running the test using Internet Explorer Driver on Mac OS or Unix.
v) For running tests with slow speed.
Only option iii)
Only options i), ii) and iii)
Only options i), iii) and iv)
Only options iii), iv) and v)
Which Of the following commands are automatically available when you add a getTextLengthO method?
0 storeTextLength
ii) assertNotTextLength
iii) assertValueRepeated
iv) verifyTextLength
Only options i) and ii)
Only options i). ii) and iv)
Only options i). ii) and iii)
Carefully analyze the following element given in a WebDriver and answer the question that follows it.
Which of the following is the correct Java command that can be used for locating the above—given element by class name?
vehicle = driver.findElements(By.class_name("vehicle"));
List vehicle = driver.findElements(By.className("vehicle"));
from selenium.webdriver.common.by import By vehicle = driver.find_elements(By.CLASS_NAME,("vehicle")
webElement vehicle = driverflnd_elements("vehicle")
Select the Correct navigation methods of WebDriver?
1. goto()
2. moveto()
3. forward()
4. back()
5. refresh()
1,2 & 3
2,3 & 5
3,4 & 5
Which of the following is a valid difference between and commands?
1.command checks whether an element is on the page or not and stops the test on failure whereas command carries on executing the tests.
2. command checks the visibility of element whereas command tests the condition for true or false.
1
2
Both the defination hold correct
None of the Above
Select the Correct Navigation Commands ?
1) navigate0.back0
Sample code:
driver.navigate0.back();
2) navigate0.fon~ard0
driver.navigate0.fon~ard();
3) navigate0.refresh()
drivennavigate0.refresh0;
4) navigateOtoO
driver.navigateO.to("https://goog|e.com");
1.2&4
2&3
Selenium Automation Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it