Selenium/Selenium Mcq Question Set 2 Sample Test,Sample questions

Question:
By Default time of WAITFOR command is :

1.15 sec

2.20 sec

3.25 sec

4.30 sec

Posted Date:-2022-01-31 12:10:32


Question:
echo(): is used

1. to display the value of a variable in the log file, which can be very valuable for debugging.

2.Display the value of a variable named answer in the log file, what would the first argument to the previous command look like.

3. Both of these

4.None of these

Posted Date:-2022-01-31 12:25:33


Question:
How to execute specific command?

1. Highlight a command. Press Ctrl + F9.

2.Highlight a command. Press Alt + F9.

3.Highlight a command. Press Ctrl + X.

4.Highlight a command. Press X.

Posted Date:-2022-01-31 12:13:50


Question:
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:

1.//div[contains(@id,'time_')]

2.//div[contains(@id_time())]

3.//div[parameter(@id_time())]

4.//div[parameter(@id,'time_')]

Posted Date:-2022-01-31 12:22:13


Question:
In regular Expression * quantifier refers to:

1. 0 or more of the preceding character.

2. 1 or more of the preceding character

3.0 or 1 of the preceding character

4.All of these

Posted Date:-2022-01-31 12:20:10


Question:
In Selenium variables are stored in _________ .

1.storedVars

2.storedVariables

3. VariablesStore

4.All of the above

Posted Date:-2022-01-31 12:11:56


Question:
In Selenium, Following Axis is related to:

1.Selects all the siblings after the current element

2. Selects all elements that follow the closing tab of the current elements.

3. Selects all of the siblings before the current element

4.Selects all elements that are before the current element

Posted Date:-2022-01-31 12:19:05


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

1.True

2. False

3.all of the above

4.None of the mentioned

Posted Date:-2022-01-31 12:24:08


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

1.selectVisibleText()

2. selectByVisibleText()

3.select_VisibleText()

4.select_ByVisibleText()

Posted Date:-2022-01-31 12:06:43


Question:
Out of the following which is NOT a wait command.

1.waitForTitle

2.waitForTextPresent

3. waitForActive

4.waitForAlert

Posted Date:-2022-01-31 12:07:06


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

1.clickAndWait

2. selectAndType

3.typeAndWait

4. selectAndWait

Posted Date:-2022-01-31 11:57:52


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

1.verifyElementPresent

2. verifyElementRight

3. verifyElementNotPresent

4. verifyElementPositionLeft

Posted Date:-2022-01-31 11:59:36


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

1. verifyTitle

2.verifiedTitle

3. verifyTitles

4. verifiedTitles

Posted Date:-2022-01-31 11:59:08


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

1.verifyTables

2. verifyTableData

3.verifyTable

4. verifyTableCell

Posted Date:-2022-01-31 11:56:48


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

1. waitForPageToLoad

2.waitForElementPresent

3.waitForPage

4. waitForLoad

Posted Date:-2022-01-31 11:58:16


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

1.waitForElementPresent

2. waitForPagePresent

3. waitForTablePresent

4.waitForFieldPresent

Posted Date:-2022-01-31 11:57:12


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

1.The 'display' command

2. The 'echo' command

3. The 'print' command

4. The 'printr' command

Posted Date:-2022-01-31 11:55:56


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

1. storeAlert

2.storedAlert

3. store_Alert

4.storesAlert

Posted Date:-2022-01-31 12:07:28


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

1.getinnerText()

2. get_in_Text()

3.get_inner_Text()

4. getText()

Posted Date:-2022-01-31 12:03:58


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

1.dselectAll()

2. deselect_All()

3.dselect_All()

4. deselectAll()

Posted Date:-2022-01-31 12:06:17


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

1. click_Context()

2. context.Click()

3.contextClick()

4.context_Click()

Posted Date:-2022-01-31 12:09:56


Question:
Select the syntax to locate an element using inner text.

1.css=tag:contains(inner text�)

2. css=tag:value(inner text�)

3. css=tag:attributes(inner text�)

4.css=tag:class(inner text�)

Posted Date:-2022-01-31 11:58:44


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

1.Variable

2. Data

3. Information

4.info

Posted Date:-2022-01-31 12:02:44


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

1. Information

2.Feedback

3. Reference

4.Element

Posted Date:-2022-01-31 12:00:00


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

1.By.cssSelected

2. By.cssSelection

3.By.cssSelector

4.By.Selectcs

Posted Date:-2022-01-31 12:00:53


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

1.By.name

2. By.nametag

3.By.tagname

4.By.nametags

Posted Date:-2022-01-31 12:01:21


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

1.By.id

2.By.idno

3. By.id_no

4.None of the mentioned

Posted Date:-2022-01-31 12:03:37


Question:
Select the View which shows your script in HTML format.

1. The Table View

2. The Source View

3. The Editor View

4. The Field View

Posted Date:-2022-01-31 12:05:56


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

1.Ancestor

2.Preceding

3.Parent

4.All of these.

Posted Date:-2022-01-31 12:24:47


Question:
Selenium is compatible with

1.CSS1.0 and CSS 2.0,

2.CSS1.0, CSS 2.0, and CSS 3.0 selectors.

3.CSS 2.0, and CSS 3.0 selectors.

4.CSS1.0, CSS 2.0, CSS 3.0 and CSS 4.0 selectors.

Posted Date:-2022-01-31 12:11:08


Question:
The // tells the query that

1. It needs to stop at the first element that it finds.

2. This is comment

3.The path of the file or folder

4.All of these

Posted Date:-2022-01-31 12:19:33


Question:
The term AJAX expands to ________.

1.Asynchronous Java and XML

2.Asynchronous JavaScript and XML

3.Accumulated Java and XML

4.none of the above

Posted Date:-2022-01-31 12:27:40


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

1.The first parameter is the name of the cookie, and the second parameter is where it was created.

2.The first parameter is where it was created, and the second parameter is the name of cookie.

3.None of these

4. All of the above

Posted Date:-2022-01-31 12:22:47


Question:
What does the term CSS refer to?

1.Cascade Style Sheets

2.Cascading Style Sheets

3.Clear Style Sheets

4. Catering Style Sheets

Posted Date:-2022-01-31 12:28:55


Question:
What is Selenium IDE?

1.Windows Software

2. Firefox Plug-in

3. Java Software

4.Flash Plug-in

Posted Date:-2022-01-31 12:29:22


Question:
What is TestNG?

1. TestNextGeneration

2. TestNewGenerlization

3.TestNewGeneration

4.TestNextGenerations

Posted Date:-2022-01-31 12:00:25


Question:
Where is XPath used in?

1.XML documents

2.MS-Word documents

3.MS-Excel documents

4.MS-PowerPoint documents

Posted Date:-2022-01-31 12:29:53


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

1.waitForElementPresent

2. pause

3.assertElementPresent

4.None of these

Posted Date:-2022-01-31 12:12:32


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

1.Selenium Grid

2.Selenium IDE

3. Selenium RC

4.Selenium Webdriver

Posted Date:-2022-01-31 12:05:31


Question:
Which component of Selenium can create customized test results.

1. Web driver

2.Selenium RC

3.Selenium IDE

4.Selenium Grid

Posted Date:-2022-01-31 11:56:22


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

1.Selenium RC

2.Selenium Web driver

3.all of the above

4.None of the mentioned

Posted Date:-2022-01-31 12:03:04


Question:
Which is odd one out?

1. ID

2. XPath

3.CSS selector

4.Pattern matching

Posted Date:-2022-01-31 12:17:59


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

1.waitForAlertPresent

2.waitForTextPresent

3. waitForFramePresent

4.waitForPageToLoad

Posted Date:-2022-01-31 12:13:13


Question:
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

1. is_Selected()

2. isSelect()

3. isSelected()

4.is_Select()

Posted Date:-2022-01-31 12:05:04


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

1. navigate.forward()

2.navigate().forward()

3.navigate()_forward()

4.navigate_forword()

Posted Date:-2022-01-31 12:04:27


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

1. VerifyElementPresent

2.VerifyElementNotPresent

3. VerifyText

4.VerifyTextAttributes

Posted Date:-2022-01-31 12:21:45


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

1..* (dot star)

2. *. (star dot)

3. *?

4.*+

Posted Date:-2022-01-31 12:20:35


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

1.verifyTextPresent

2.verifyTextPresent

3.CheckTextPresent

4. VerifyPresentText

Posted Date:-2022-01-31 12:28:30


Question:
Which two commands you use to validate a button?

1. VerifyTextPresent and assertTextPresent

2. VerifyElementPresent and assertElementPresent

3. VerifyAlertPresent and assertAlertPresent

4.VerifyAlert and assertAlert

Posted Date:-2022-01-31 12:23:43


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

1.^=

2.$=

3. *=

4.&=

Posted Date:-2022-01-31 12:18:37


More MCQS

  1. Selenium Mcq Question Set 1
  2. Selenium Mcq Question Set 2
  3. Selenium Mcq Question Set 3
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!