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

How will you find an element using selenium?

996


List the advantages of webdriver over selenium server?

978


What is same origin policy and how it can be handled?

955


What is desired capability? How is it useful in terms of selenium?

845


Which webdriver implementation claims to be the fastest?

1065


In which format does source view shows your script in selenium ide?

1433


List out different types of locators?

881


What is selenium 2.0?

1175


What does a concentrator do in the selenium network?

986


How to clear the text in the text box using selenium webdriver?

989


How do u get the attribute of the web element?

959


How you can insert a break point in selenium ide?

910


How can we get a text of a web element?

906


How to find whether an element is displayed on the web page?

895


What evaluation can selenium do?

980