Home
Current Affairs January 2024

What is the correct answer?

4

Select the method which selects the option at the given index.

A. selectByIndex()

B. selectIndex()

C. selectedByIndex()

D. selectByIndexes()

Correct Answer :

A. selectByIndex()


Related Questions

What is the correct answer?

4

How to execute specific command?

A. Highlight a command. Press Ctrl + F9.

B. Highlight a command. Press Alt + F9.

C. Highlight a command. Press Ctrl + X.

D. Highlight a command. Press X.

What is the correct answer?

4

echo(): is used

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

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

C. Both of these

D. None of these

What is the correct answer?

4

Variable can be saved in which format?

A. ${variableName}

B. storedVars['variableName'].

C. Both of these

D. None of these

What is the correct answer?

4

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

A. The 'display' command

B. The 'echo' command

C. The 'print' command

D. The 'printr' command

What is the correct answer?

4

Which two commands you use to validate a button?

A. VerifyTextPresent and assertTextPresent

B. VerifyElementPresent and assertElementPresent

C. VerifyAlertPresent and assertAlertPresent

D. VerifyAlert and assertAlert

What is the correct answer?

4

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

A. Information

B. Feedback

C. Reference

D. Element

What is the correct answer?

4

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

A. is_Selected()

B. isSelect()

C. isSelected()

D. is_Select()

What is the correct answer?

4

The Actions commands

A. are commands that directly interact with page elements.

B. are commands that allow you to store values to a variable.

C. are commands that verify if a certain condition is met.

What is the correct answer?

4

What does the term DOM refers to ?

A. Dynamic Object Model

B. Document Object Model

C. Data Object Model

D. Document Flow Object Model

What is the correct answer?

4

Out of the following which can only test web applications

A. QTP

B. Selenium

What is the correct answer?

4

The Selenium can

A. access controls within the desktop

B. both web and desktop applications

C. only test web applications

What is the correct answer?

4

Selenium variables are stored in _____________.

A. storedVars

B. storedVariables

C. VariablesStore

D. None of the above

What is the correct answer?

4

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

A. By.name

B. By.nametag

C. By.tagname

D. By.nametags

What is the correct answer?

4

Which is odd one out?

A. ID

B. XPath

C. CSS selector

D. Pattern matching

What is the correct answer?

4

Select the command in Selenium IDE used to open a page using the URL.

A. OpenRecord

B. Open

C. OpenText

D. OpenTable

What is the correct answer?

4

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

A. selectVisibleText()

B. selectByVisibleText()

C. select_VisibleText()

D. select_ByVisibleText()

What is the correct answer?

4

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

A. Selenium Grid

B. Selenium IDE

C. Selenium RC

D. Selenium Webdriver

What is the correct answer?

4

Which Selenium component supports All Operating System?

A. Selenium Generator

B. Selenium IDE

C. Selenium WebDriver

What is the correct answer?

4

What is the most common way to find an element on a page?

A. ID

B. XPath

C. CSS selector

D. Name

What is the correct answer?

4

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

A. Variable

B. Data

C. Information

D. Info

What is the correct answer?

4

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

A. storeAlert

B. storedAlert

C. store_Alert

D. storesAlert

What is the correct answer?

4

Select the syntax to locate an element using inner text.

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

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

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

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

What is the correct answer?

4

What is the default port number used by hub in selenium?

A. 4444

B. 2222

C. 1111

D. 3333

What is the correct answer?

4

Select the language which is supported by The Selenium Web Driver

A. Perl

B. Sql

C. ASP

D. Cobol

What is the correct answer?

4

By Default time of WAITFOR command is :

A. 15 sec

B. 20 sec

C. 25 sec

D. 30 sec

What is the correct answer?

4

What is called that scale for large test suites or test suites that must be run in multiple environments?

A. Selenium-Grid

B. Selenium RC

C. Selenium Web driver

D. Selenium NG

What is the correct answer?

4

In regular Expression * quantifier refers to:

A. 0 or more of the preceding character.

B. 1 or more of the preceding character

C. 0 or 1 of the preceding character

D. All of these

What is the correct answer?

4

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

A. .* (dot star)

B. *. (star dot)

C. *?

D. *+

What is the correct answer?

4

What does the assertTitle checks ?

A. Element title

B. Page title

C. Block title

D. Title of element under focus

What is the correct answer?

4

Which is not true in case of Globs, in Selenium?

A. Globs are used as default pattern matching technique.

B. It is similar to regular expressions.

C. The syntax of Globs is much wider than Regular expression

D. B and C