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

Can we use selenium grid for performance testing?

863


Tell us how many exceptions do you know in selenium webdriver?

862


What are the advantages of page object model framework?

903


Can you explain the framework which you have used in your selenium project?

884


What is the difference between “type” and “type and wait for” command?

889


How will you verify the specific position of an web element

933


Can selenium handle windows based pop up?

983


Explain what is assertion in selenium and what are the types of assertion?

941


What are the different types of waits available in webdriver?

943


Can we edit recorded selenium ide test cases?

937


What selenese command and argument can be used to transfer the value of a javascript variable into a side variable?

5010


What will be the limits of selenium?

1008


Why should Selenium be selected as a testing tool?

1006


What do you mean by xpath?

925


Tell me how colors could be handled in selenium webdriver?

839