|
INTERVIEW QUESTIONS
AUTOMATED TESTING TOOLS
SELENIUM
DETAILS
Question: What is the difference between verifyElementPresent, verifyElementPresent and verifyText commands?
Answer: verifyTextPresent is used to verify specific text exists somewhere on the page.
Command Target Value verifyTextPresent Business This command will search and verify that the string, "Business" is present on the page currently being tested.
============================================== verifyElementPresent tests for the presence of a specific UI element, rather than its content.
Command Target Value verifyElementPresent //div/p/img
This command verifies that an image, specified by the existence of an <img> HTML tag, is present on the page, and that it follows a <div> tag and a <p> tag.
================================================== verifyText is used to verify both the text and its UI element. If you choose an XPath or DOM locator, you can verify that specific text appears at a specific location on the page relative to other UI components on the page.
|
|
|
Category |
Selenium Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 8722 users |
Added on |
5/9/2016 |
Views |
66523 |
Rate it! |
|
|
Question:
What is the difference between verifyElementPresent, verifyElementPresent and verifyText commands?
Answer:
verifyTextPresent is used to verify specific text exists somewhere on the page.
Command Target Value verifyTextPresent Business This command will search and verify that the string, "Business" is present on the page currently being tested.
============================================== verifyElementPresent tests for the presence of a specific UI element, rather than its content.
Command Target Value verifyElementPresent //div/p/img
This command verifies that an image, specified by the existence of an <img> HTML tag, is present on the page, and that it follows a <div> tag and a <p> tag.
================================================== verifyText is used to verify both the text and its UI element. If you choose an XPath or DOM locator, you can verify that specific text appears at a specific location on the page relative to other UI components on the page. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
What are the steps to build test case in Selenium IDE?
|
View Answer
|
|
Can I test mobile application using selenium? or Can I use Selenium for automating Mobile Apps?
|
View Answer
|
|
What is the difference between Borland Silk and Selenium?
|
View Answer
|
|
What are the benefits of Selenium over QTP?
|
View Answer
|
|
What are the type of patterns used by Selenium Commands?
|
View Answer
|
|
What is an Xpath?
|
View Answer
|
|
What is the difference between Absolute XPath and Relative Xpath?
|
View Answer
|
|
What is the syntax of Selenium command?
|
View Answer
|
|
Explain the types of Selenium commands.
|
View Answer
|
|
Explain what is Datadriven framework and Keyword driven?
|
View Answer
|
|
What is Selenese?
|
View Answer
|
|
What is the difference between verify and assert commands?
|
View Answer
|
|
What is Selenium WebDriver?
|
View Answer
|
|
What is Selenium Grid?
|
View Answer
|
|
What is Selenium Remote Control (RC) tool?
|
View Answer
|
|
What are the different types of locators in Selenium?
|
View Answer
|
|
What are the features of Selenium IDE?
|
View Answer
|
|
What is Selenium IDE?
|
View Answer
|
|
What are the limitations of Selenium?
|
View Answer
|
|
Where to download Selenium?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All Selenium Interview Questions & Answers - Exam Mode /
Learning Mode
|