RelationDigest

Saturday, 11 May 2024

Selenium Multiple Choice Questions – MCQ1

HOME Selenium Quiz – You can test your knowledge with this Selenium Quiz. We have created this Selenium WebDriver Quiz Online Test to help you master Selenium. 1.Which one of the following is correct for WebDriver? 2. Wh…
Read on blog or Reader
Site logo image QA Automation Expert Read on blog or Reader

Selenium Multiple Choice Questions – MCQ1

vibssingh

May 11

HOME

Selenium Quiz – You can test your knowledge with this Selenium Quiz. We have created this Selenium WebDriver Quiz Online Test to help you master Selenium.

1.Which one of the following is correct for WebDriver?

Submit a form.

2. Which of the following language is not supported by Selenium

Submit a form.

3. What would be the outcome if you try to run the below code?

 WebDriver driver=new WebDriver(); 
Submit a form.

4: Which of the following is NOT a component of selenium?

Submit a form.

5. Select the correct option on how to select an element that contains "QAAutomation"

Submit a form.

6. Which command you use to navigate to https://qaautomation.expert

Submit a form.

7. Selenium command for entering text into text boxes?

Submit a form.

8. findElements("Locator") method returns

Submit a form.

9. Select the correct statement to maximize the browser window

Submit a form.

10. Which of the following expression is used for "anything"?

Submit a form.

11. Consider the web page is still loading and the element is not yet on the screen at the time of the find operation. What would be the exception thrown by the WebDriver? 

Submit a form.

12. Which of the below method can ensure that the WebElement is enabled or not ?

Submit a form.

13. Which of the below method verify the presence of a WebElement on the screen?

Submit a form.

14. The format to write a custom xpath

Submit a form.

15.  What does the asterisk represent in the below statement ?

 //*[@class='abcd'] 
Submit a form.

16.  Select the correct statements about driver.close() and driver.quit()

Submit a form.

17. Select the correct statement for a fluent wait

Submit a form.

18. Which of the following is NOT a type of wait mechanism available in Selenium?

Submit a form.

19. Which of the following methods is used to clear the text in a text field using Selenium?

Submit a form.

20. Is Explicit wait applied only to a single element for a specified amount of time

Submit a form.

Answers

  1. a) Interface
  2. b) ASP
  3. b) Compilation error- Cannot instantiate the type WebDriver
  4. e) WebElement
  5. a) WebElement element = driver.findElement(By.xpath("//*[contains(text(), ' QAAutomation')]"));
  6. b) driver.navigate.to("https://www.qaautomation.expert");
  7. a) sendKeys()
  8. c) List of WebElements
  9. c) driver.manage().window().maximize();
  10. b) .*
  11. a) NoSuchElementException
  12. c) isEnabled()
  13. a) isDisplayed()
  14. b) //tag-name[@attribute='attribute value']
  15. b) driver.close() closes the current window and d) driver.quit() closes every associated window with this driver and quits the driver
  16. b) driver.close() closes the current window and d) driver.quit() closes every associated window with this driver and quits the driver
  17. c) Both a and b
  18. a) thread.sleep();
  19. a) element.clear();
  20. a) No
Comment
Like
You can also reply to this email to leave a comment.

QA Automation Expert © 2024. Manage your email settings or unsubscribe.

WordPress.com and Jetpack Logos

Get the Jetpack app

Subscribe, bookmark, and get real-time notifications - all from one app!

Download Jetpack on Google Play Download Jetpack from the App Store
WordPress.com Logo and Wordmark title=

Automattic, Inc. - 60 29th St. #343, San Francisco, CA 94110  

at May 11, 2024
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Welcome to Letters from the Mire

Welcome, all from Wordpress and beyond! ͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏ ...

  • [New post] Wiggle Kingdom: April Earnings on Spring Savings!
    Betsi...
  • [New post] Balancing the ‘E’ and ‘S’ in Environment, Social and Governance (ESG) crucial to sustaining liquidity and resilience in the African loan market (By Miranda Abraham)
    APO p...
  • Something plus something else
    Read on bl...

Search This Blog

  • Home

About Me

RelationDigest
View my complete profile

Report Abuse

Blog Archive

  • August 2025 (38)
  • July 2025 (59)
  • June 2025 (53)
  • May 2025 (47)
  • April 2025 (42)
  • March 2025 (30)
  • February 2025 (27)
  • January 2025 (30)
  • December 2024 (37)
  • November 2024 (31)
  • October 2024 (28)
  • September 2024 (28)
  • August 2024 (2729)
  • July 2024 (3249)
  • June 2024 (3152)
  • May 2024 (3259)
  • April 2024 (3151)
  • March 2024 (3258)
  • February 2024 (3046)
  • January 2024 (3258)
  • December 2023 (3270)
  • November 2023 (3183)
  • October 2023 (3243)
  • September 2023 (3151)
  • August 2023 (3241)
  • July 2023 (3237)
  • June 2023 (3135)
  • May 2023 (3212)
  • April 2023 (3093)
  • March 2023 (3187)
  • February 2023 (2865)
  • January 2023 (3209)
  • December 2022 (3229)
  • November 2022 (3079)
  • October 2022 (3086)
  • September 2022 (2791)
  • August 2022 (2964)
  • July 2022 (3157)
  • June 2022 (2925)
  • May 2022 (2893)
  • April 2022 (3049)
  • March 2022 (2919)
  • February 2022 (2104)
  • January 2022 (2284)
  • December 2021 (2481)
  • November 2021 (3146)
  • October 2021 (1048)
Powered by Blogger.