Home
Current Affairs January 2024

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

Correct Answer :

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


Related Questions

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

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

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

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

Select the operating system which is NOT supported by Selenium IDE.

A. Unix

B. Linux

C. Windows

D. Solaris

What is the correct answer?

4

What is TestNG?

A. TestNextGeneration

B. TestNewGenerlization

C. TestNewGeneration

D. TestNextGenerations

What is the correct answer?

4

Which label is used as prefix pattern to specify a globbing pattern parameter for a Selenese command ?

A. pattern

B. glob

C. regex

D. None

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

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

What does the term CSS refers to ?

A. Cascade Style Sheets

B. Cascading Style Sheets

C. Clear Style Sheets

D. Catering Style Sheets

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 of the following is not verify and asserts method in Selenium?

A. VerifyElementPresent

B. VerifyElementNotPresent

C. VerifyText

D. VerifyTextAttributes

What is the correct answer?

4

We use the dot (.) operator followed by either a * or a +. The + tells the regular expression that there will be instances between 0 and n, while the * tells the regular expression that there will be instances between 1 and n.

A. True

B. False

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

Select the View which shows your script in HTML format.

A. The Table View

B. The Source View

C. The Editor View

D. The Field View

What is the correct answer?

4

Which is a procedure?

A. Wait

B. Exit

C. WaitForProperty

D. None of these.

What is the correct answer?

4

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

A. waitForElementPresent

B. pause

C. assertElementPresent

D. None of these

What is the correct answer?

4

Select the Browser which is supported by Selenium IDE

A. Google chrome

B. Opera mini

C. Mozilla Firefox

D. Internet Explorer

What is the correct answer?

4

The // tells the query that

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

B. This is comment

C. The path of the file or folder

D. All of these

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

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

What does the term regex expands to ?

A. Registered Expression

B. Regular Expression

C. Regression Expression

D. Regional Expression

What is the correct answer?

4

Can Google chrome be supported by Selenium IDE?

A. Yes

B. No

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

Which command can be used to enter values onto text boxes?

A. sendsKeys()

B. sendKey()

C. sendKeys

D. sendKeys()

What is the correct answer?

4

Is Web Driver a component of the Selenium?

A. No

B. Yes

What is the correct answer?

4

The term JSON refers to ______________.

A. JavaScript Object Notation

B. Java Object Notation

C. Java Object Naming

D. None of the above

What is the correct answer?

4

Selenium tests _____________.

A. DOS applications

B. Browser-based applications

C. GUI applications

D. None of the above

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