πŸ§ͺ Selenium MCQ Quiz Hub

Selenium Mcq Question Set 2

Choose a topic to test your knowledge and improve your Selenium skills

Select the command which is used to print a string value or a variable in Selenium IDE.





βœ… Correct Answer: 2

Which component of Selenium can create customized test results.





βœ… Correct Answer: 1

Select the command which is used to compare the contents of a table with expected values.





βœ… Correct Answer: 3

Select the command which is used to pause execution until the specified element becomes present.





βœ… Correct Answer: 1

Select the command that will NOT wait for a new page to load before moving onto the next command.





βœ… Correct Answer: 2

Select the command which is used to pause execution until the page is loaded completely.





βœ… Correct Answer: 1

Select the syntax to locate an element using inner text.





βœ… Correct Answer: 1

Select the command which is used to compare the actual page title with an expected value.





βœ… Correct Answer: 1

Select the command which is NOT used in verifying page elements .





βœ… Correct Answer: 2

Select the tab which gives feedback and other useful information when executing tests.





βœ… Correct Answer: 3

What is TestNG?





βœ… Correct Answer: 1

Select the variation which finds elements based on the driver's underlying CSS selector engine in Web driver Selenium.





βœ… Correct Answer: 3

Select the variation which locates elements by the value of the name attribute in Web driver Selenium





βœ… Correct Answer: 1

Select the tab that shows which command Selenium IDE is currently executing.





βœ… Correct Answer: 4

Which is a faster component between the SeleniumWeb driver and Selenium RC?





βœ… Correct Answer: 2

Select the variation which locates elements by the value of their id attribute in Web Driver Selenium





βœ… Correct Answer: 1

Select the Get command which fetches the inner text of the element that you specify in Web driver Selenium.





βœ… Correct Answer: 4

Which Navigate command takes you forward by one page on the browser's history in Web driver Selenium.





βœ… Correct Answer: 2

Which method is used when you want to verify whether a certain check box, radio button, or option in a drop-down box is selected in Web driver Selenium





βœ… Correct Answer: 3

Which Component is used to run multiple tests simultaneously in different browsers and platforms?





βœ… Correct Answer: 1

Select the View which shows your script in HTML format.





βœ… Correct Answer: 2

Select the method which clears all selected entries in Web driver Selenium.





βœ… Correct Answer: 4

Method which selects the option which displays the text matching the parameter passed to it





βœ… Correct Answer: 2

Out of the following which is NOT a wait command.





βœ… Correct Answer: 3

Select the command which retrieves the alert message and stores it in a variable that you will specify.





βœ… Correct Answer: 1

Select the method which performs a context-click at the current mouse location.





βœ… Correct Answer: 3

By Default time of WAITFOR command is :





βœ… Correct Answer: 4

Selenium is compatible with





βœ… Correct Answer: 2

In Selenium variables are stored in _________ .





βœ… Correct Answer: 1

Which command should be used to confirm that test will pass in the future, when new element is added after page loaded?





βœ… Correct Answer: 1

Which is the following is true in case of waitFor command?





βœ… Correct Answer: 2

How to execute specific command?





βœ… Correct Answer: 4

Which is odd one out?





βœ… Correct Answer: 4

_____ finds the item ending with the value passed in. This is the equivalent to the XPath ends-with. Is concern with?





βœ… Correct Answer: 2

In Selenium, Following Axis is related to:





βœ… Correct Answer: 2

The // tells the query that





βœ… Correct Answer: 1

In regular Expression * quantifier refers to:





βœ… Correct Answer: 1

Which regular expression sequence that loosely translates to anything or nothing?





βœ… Correct Answer: 1

Which of the following is not verify and asserts method in Selenium?





βœ… Correct Answer: 4

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:





βœ… Correct Answer: 1

To delete a cookie we need to call the deleteCookie method, passing in two parameters.





βœ… Correct Answer: 1

Which two commands you use to validate a button?





βœ… Correct Answer: 2

In selenium, parent and child nodes are in same query because HTML has a tree structure.





βœ… Correct Answer: 1

Selects all the parent, grandparent, and so on of the element is related to which axis name in Selenium:





βœ… Correct Answer: 1

echo(): is used





βœ… Correct Answer: 3

The term AJAX expands to ________.





βœ… Correct Answer: 2

Which selenium command check whether specific text exists somewhere on the page?





βœ… Correct Answer: 1

What does the term CSS refer to?





βœ… Correct Answer: 2

What is Selenium IDE?





βœ… Correct Answer: 2

Where is XPath used in?





βœ… Correct Answer: 1