Difference between @findByMethod and @findelement?
Answer Posted / elakkiya
Both methods are used to find the webelements.
findelement:
-------------------
This is one of the abstract method , should be used to find the single web element.
Return type is single web element.
@Findby:
--------------
This is one Annotation in Page factory model and used to locate one or more WebElements using a single criterion.
it has two kind of methods as follows.
• The @FindBys annotation is used in case elements need to match all of the given criteria
• The @FindAll annotation is used in case elements need to match at least one of the given criteria
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is selenium 3.0?
Mention what are the advantages of using git hub for selenium?
How can we inspect the web element attributes in order to use them in different locators?
What are the advantages of pom (page object model)?
How to insert a comment in selenium ide?
List out the names of programming languages, browsers and operating systems that are supported by selenium.
Tell me what are the advantages of using git hub for selenium?
What is framework and what are the frameworks available in rc?
How to handle hidden elements in selenium webdriver?
How does one execute java scripts function in selenium?
How to type in a textbox using selenium?
What are the testing kinds that can be supported by selenium?
How do you click on a menu item in a drop down menu?
How to check whether a text is underlined or not?
What is an absolute xpath?