Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is selenium 3.0?

848


Mention what are the advantages of using git hub for selenium?

867


How can we inspect the web element attributes in order to use them in different locators?

868


What are the advantages of pom (page object model)?

3385


How to insert a comment in selenium ide?

1059


List out the names of programming languages, browsers and operating systems that are supported by selenium.

792


Tell me what are the advantages of using git hub for selenium?

822


What is framework and what are the frameworks available in rc?

901


How to handle hidden elements in selenium webdriver?

908


How does one execute java scripts function in selenium?

952


How to type in a textbox using selenium?

961


What are the testing kinds that can be supported by selenium?

898


How do you click on a menu item in a drop down menu?

861


How to check whether a text is underlined or not?

893


What is an absolute xpath?

1007