CP-SAT Selenium Theory Mock Questions
CP-SAT Selenium Theory Mock Questions
A) driver.findObject()
B) driver.locate()
C) driver.findElement()
D) driver.getElement()
Q3. What is the TestNG parameter used to make a test case depend on another?
A) dependsOnTest
B) dependsOn
C) dependsOnMethods
D) dependsOnGroups
C) 'quit' closes all the windows/tabs opened in that driver instance and 'close' only closes the
focused window/tab
A) htmlUnitDriver
B) ChromeDriver
C) SafariDriver
D) RCDriver
A) findElement()
B) getTitle()
C) findElements()
D) switchTo().frame()
Q8. For opening the IBM website, which is the alternative method to
driver.get("http://www.ibm.com/")?
A) driver.go().to("http://www.ibm.com/");
B) driver.navigate("http://www.ibm.com/");
C) driver.navigate().to("http://www.ibm.com/");
D) driver.to("http://www.ibm.com/");
Q9. if a class has been superseded and may cease to exist in the future, it is called as
A) superseded
B) discarded
C) deprecated
D) void
Q10. Which tag in pom.xml is used to import libraries from the maven repository?
A) build
B) dependency
C) plugins
D) import
Q.11. Which of the below is not a valid attribute of the @Test annotation in TestNG?
A) alwaysRun
B) dataProvider
C) neverRun
D) priority
A) Builds
B) Jobs
C) Dashboards
D) Packages
Q13. If you have an application to test which was developed in PHP, can you use Java programming
language Test Scripts to test it?
@Test(groups = "qtp")
@Test(groups = {"qtp","Junit"})
Consider the above three tests. Predict the output when we choose to exclude the 'qtp' group