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


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


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.


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_')]


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


Question:
In Selenium variables are stored in _________ .

1.storedVars

2.storedVariables

3. VariablesStore

4.All of the above


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


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


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()


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

1.waitForTitle

2.waitForTextPresent

3. waitForActive

4.waitForAlert


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


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

1.verifyElementPresent

2. verifyElementRight

3. verifyElementNotPresent

4. verifyElementPositionLeft


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


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


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

1. waitForPageToLoad

2.waitForElementPresent

3.waitForPage

4. waitForLoad


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

1.waitForElementPresent

2. waitForPagePresent

3. waitForTablePresent

4.waitForFieldPresent


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


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


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()


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

1.dselectAll()

2. deselect_All()

3.dselect_All()

4. deselectAll()


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()


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�)


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

1.Variable

2. Data

3. Information

4.info


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

1. Information

2.Feedback

3. Reference

4.Element


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


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


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


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


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.


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.


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


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


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


Question:
What does the term CSS refer to?

1.Cascade Style Sheets

2.Cascading Style Sheets

3.Clear Style Sheets

4. Catering Style Sheets


Question:
What is Selenium IDE?

1.Windows Software

2. Firefox Plug-in

3. Java Software

4.Flash Plug-in


Question:
What is TestNG?

1. TestNextGeneration

2. TestNewGenerlization

3.TestNewGeneration

4.TestNextGenerations


Question:
Where is XPath used in?

1.XML documents

2.MS-Word documents

3.MS-Excel documents

4.MS-PowerPoint documents


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


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


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

1. Web driver

2.Selenium RC

3.Selenium IDE

4.Selenium Grid


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


Question:
Which is odd one out?

1. ID

2. XPath

3.CSS selector

4.Pattern matching


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

1.waitForAlertPresent

2.waitForTextPresent

3. waitForFramePresent

4.waitForPageToLoad


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()


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()


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

1. VerifyElementPresent

2.VerifyElementNotPresent

3. VerifyText

4.VerifyTextAttributes


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

1..* (dot star)

2. *. (star dot)

3. *?

4.*+


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

1.verifyTextPresent

2.verifyTextPresent

3.CheckTextPresent

4. VerifyPresentText


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


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.&=


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!