Which two commands you use to validate a button?

Options
- VerifyTextPresent and assertTextPresent
- VerifyElementPresent and assertElementPresent
- VerifyAlertPresent and assertAlertPresent
- VerifyAlert and assertAlert


CORRECT ANSWER : VerifyElementPresent and assertElementPresent

Discussion Board
Selenium

Answer: VerifyElementPresent and assertElementPresent

Solution: VerifytestPresent and assertTextPresent are use to search the extract Text in the page.
VerifyElementPresent and AssertElemnetPresent are use to validate a button in the page.
VerifyAlertPresent and AssertAlertPresent are use to identify when alert is occurred.
VerifyAlert and AssertAlert are use to verify the alert text message in the alert popup window.

Therefore, option B is correct.


Rohit Srivastava 07-28-2014 05:04 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement