Test Automation Assessment
Q1. By Default, time for WAITFOR command is _____.
Answer: 30sec
Q2. In case of selenium IDE, source view shows your script in
Answer: XML format
Q3. If you wanted to access the element that has the text "This element has an ID that changes every time the page is loaded" in it, then which of the following is used
Answer: //div[contains(@id,'time_')]
Q4. Assert command will check whether the element is on the page, if it is not then the test will carry on executing
Answer: TRUE
Q5. The method used to find a web element is ______.
Answer: findElement()
Q6. In webdriver which of the following is/are a valid select statement that selects a value from a drop down element?
Answer:
selectByVisibleText()
selectByindex()
selectByValue()
Q7. What can be used to configure the number of browsers that can be used parallel in the remote system
Answer: max Session
Q8. What is the default port number used by hub in selenium?
Answer: 4444
Q9. Test types supported by selenium are
Answer:
functional testing
regression testing
Q10. Which of the following is not a driver available in selenium webdriver ?
Answer: MicrosoftDriver
Q11. The method used to enter text in a textbox in Selenium WebDriver is
Answer: sendkeys()
Q12. Selenium variables are stored in ___________.
Answer: storedVars
Q13. Which two commands you use to validate a button?
Answer:
VerifyElementPresent
assertElementPresent
Q14. What does below code snippet represent dnver findElement(By.xpath("//input[@id='search']")).click();
Answer: finds the web element based on relative xpath and click on the same
Q15. What does the below code snippet implies?boolean sample = driver findElement(By Xpath("radio button Xpath)
Answer: check the state of a radio button
Q16. submit() method can be used to
Answer: Submit the button
Q17. In webdiver, what is the method that counts the number of elements?
Answer: driver findElement(By id("search")).size()
Q18. Selenium Grid allows us to run multiple instances of WebDriver or Selenium Remote Control in parallel
Answer: True
Q19. Which command can be used to retrieve the innerText value contained within an element in webdriver
Answer: getText()
Q20. In webdriver, selectAllOptions() is an invalid command
Answer: False
Answer: 30sec
Q2. In case of selenium IDE, source view shows your script in
Answer: XML format
Q3. If you wanted to access the element that has the text "This element has an ID that changes every time the page is loaded" in it, then which of the following is used
Answer: //div[contains(@id,'time_')]
Q4. Assert command will check whether the element is on the page, if it is not then the test will carry on executing
Answer: TRUE
Q5. The method used to find a web element is ______.
Answer: findElement()
Q6. In webdriver which of the following is/are a valid select statement that selects a value from a drop down element?
Answer:
selectByindex()
selectByValue()
Q7. What can be used to configure the number of browsers that can be used parallel in the remote system
Answer: max Session
Q8. What is the default port number used by hub in selenium?
Answer: 4444
Q9. Test types supported by selenium are
Answer:
regression testing
Q10. Which of the following is not a driver available in selenium webdriver ?
Answer: MicrosoftDriver
Q11. The method used to enter text in a textbox in Selenium WebDriver is
Answer: sendkeys()
Q12. Selenium variables are stored in ___________.
Answer: storedVars
Q13. Which two commands you use to validate a button?
Answer:
assertElementPresent
Q14. What does below code snippet represent dnver findElement(By.xpath("//input[@id='search']")).click();
Answer: finds the web element based on relative xpath and click on the same
Q15. What does the below code snippet implies?boolean sample = driver findElement(By Xpath("radio button Xpath)
Answer: check the state of a radio button
Q16. submit() method can be used to
Answer: Submit the button
Q17. In webdiver, what is the method that counts the number of elements?
Answer: driver findElement(By id("search")).size()
Q18. Selenium Grid allows us to run multiple instances of WebDriver or Selenium Remote Control in parallel
Answer: True
Q19. Which command can be used to retrieve the innerText value contained within an element in webdriver
Answer: getText()
Q20. In webdriver, selectAllOptions() is an invalid command
Answer: False
No comments:
Post a Comment