By Default time of WAITFOR command is :
1.15 sec
2.20 sec
3.25 sec
4.30 sec
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
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.
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_')]
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
In Selenium variables are stored in _________ .
1.storedVars
2.storedVariables
3. VariablesStore
4.All of the above
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
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
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()
Out of the following which is NOT a wait command.
1.waitForTitle
2.waitForTextPresent
3. waitForActive
4.waitForAlert
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
Select the command which is NOT used in verifying page elements .
1.verifyElementPresent
2. verifyElementRight
3. verifyElementNotPresent
4. verifyElementPositionLeft
Select the command which is used to compare the actual page title with an expected value.
1. verifyTitle
2.verifiedTitle
3. verifyTitles
4. verifiedTitles
Select the command which is used to compare the contents of a table with expected values.
1.verifyTables
2. verifyTableData
3.verifyTable
4. verifyTableCell
Select the command which is used to pause execution until the page is loaded completely.
1. waitForPageToLoad
2.waitForElementPresent
3.waitForPage
4. waitForLoad
Select the command which is used to pause execution until the specified element becomes present.
1.waitForElementPresent
2. waitForPagePresent
3. waitForTablePresent
4.waitForFieldPresent
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
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
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()
Select the method which clears all selected entries in Web driver Selenium.
1.dselectAll()
2. deselect_All()
3.dselect_All()
4. deselectAll()
Select the method which performs a context-click at the current mouse location.
1. click_Context()
2. context.Click()
3.contextClick()
4.context_Click()
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�)
Select the tab that shows which command Selenium IDE is currently executing.
1.Variable
2. Data
3. Information
4.info
Select the tab which gives feedback and other useful information when executing tests.
1. Information
2.Feedback
3. Reference
4.Element
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
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
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
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
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.
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.
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
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
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
What does the term CSS refer to?
1.Cascade Style Sheets
2.Cascading Style Sheets
3.Clear Style Sheets
4. Catering Style Sheets
What is Selenium IDE?
1.Windows Software
2. Firefox Plug-in
3. Java Software
4.Flash Plug-in
What is TestNG?
1. TestNextGeneration
2. TestNewGenerlization
3.TestNewGeneration
4.TestNextGenerations
Where is XPath used in?
1.XML documents
2.MS-Word documents
3.MS-Excel documents
4.MS-PowerPoint documents
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
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
Which component of Selenium can create customized test results.
1. Web driver
2.Selenium RC
3.Selenium IDE
4.Selenium Grid
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
Which is odd one out?
1. ID
2. XPath
3.CSS selector
4.Pattern matching
Which is the following is true in case of waitFor command?
1.waitForAlertPresent
2.waitForTextPresent
3. waitForFramePresent
4.waitForPageToLoad
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()
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()
Which of the following is not verify and asserts method in Selenium?
1. VerifyElementPresent
2.VerifyElementNotPresent
3. VerifyText
4.VerifyTextAttributes
Which regular expression sequence that loosely translates to anything or nothing?
1..* (dot star)
2. *. (star dot)
3. *?
4.*+
Which selenium command check whether specific text exists somewhere on the page?
1.verifyTextPresent
2.verifyTextPresent
3.CheckTextPresent
4. VerifyPresentText
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
_____ 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.&=