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

Do you know how to mouse hover an element in selenium?

966


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

947


How to conduct database testing with selenium webdriver?

1176


What is the use of @listener annotation in testng?

1005


What are the different exceptions you have faced in selenium webdriver?

955


How to handle browser (chrome) notifications in selenium?

1075


What is exception test in selenium?

1144


What happen if you mix both thread.sleep and webdriver waits in a selenium script?

970


How can we find the value of different attributes like name, class, value of an element?

988


How to write selenium code for purchasing product from amazon

1670


How you can switch back from a frame?

957


Does the selenium ide have any drawbacks?

1232


What is the difference between "assert" and "verify" commands?

1108


How do you send enter/tab keys in webdriver?

987


What are the open-source frameworks supported by selenium webdriver?

1094