Home
Current Affairs January 2024

What is the 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:

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

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

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

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

Correct Answer :

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


Related Questions

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

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 is the following is true in case of waitFor command?

A. waitForAlertPresent

B. waitForTextPresent

C. waitForFramePresent

D. waitForPageToLoad

What is the correct answer?

4

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

A. dselectAll()

B. deselect_All()

C. dselect_All()

D. deselectAll()

What is the correct answer?

4

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

A. waitForPageToLoad

B. waitForElementPresent

C. waitForPage

D. waitForLoad

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

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

A. clickAndWait

B. selectAndType

C. typeAndWait

D. selectAndWait

What is the correct answer?

4

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

A. getinnerText()

B. get_in_Text()

C. get_inner_Text()

D. getText()

What is the correct answer?

4

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

A. waitForElementPresent

B. waitForPagePresent

C. waitForTablePresent

D. waitForFieldPresent

What is the correct answer?

4

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

A. True

B. False

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 check the presence of a certain element.

A. verifyTable

B. verifyTitlePresent

C. verifyTextPresent

D. verifyElementPresent

What is the correct answer?

4

In case of Selenium IDE, the Source view shows your script in

A. DHTML format

B. J2EE format

C. XML format

D. HTML format.

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

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

A. verifyTables

B. verifyTableData

C. verifyTable

D. verifyTableCell

What is the correct answer?

4

Which command is used to extend the time limit of WAITFOR command?

A. Extend waitFor (time in sec)

B. waitFor (time in sec) extend

C. setTimeout (time in sec)

D. setTimeout.

What is the correct answer?

4

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

A. verifyTitle

B. verifiedTitle

C. verifyTitles

D. verifiedTitles

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

Is Web Driver a component of the Selenium?

A. No

B. Yes

What is the correct answer?

4

What is a test suite made of ?

A. Test packs

B. Tests

C. Test blocks

D. Test pattern

What is the correct answer?

4

Which process use the JavaScript to find an element?

A. By DOM query

B. BY XPath query

C. BY CSS sector

D. All of these

What is the correct answer?

4

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

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

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

C. None of these

D. All of the above

What is the correct answer?

4

Selenium IDE stands for

A. Selenium Intialization Development Environment

B. Selenium Interrelated Development Environment

C. Selenium Integrated Development Environment

D. Selenium Information Development Environment

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

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 Selenium, Following Axis is related to:

A. Selects all the siblings after the current element

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

C. Selects all of the siblings before the current element

D. Selects all elements that are before the current element

What is the correct answer?

4

Where is XPath used in ?

A. XML documents

B. MS-Word documents

C. MS-Excel documents

D. MS-PowerPoint documents

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

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

What is TestNG?

A. TestNextGeneration

B. TestNewGenerlization

C. TestNewGeneration

D. TestNextGenerations