Difference between @findByMethod and @findelement?

Answer Posted / raam

@findby is a testng class,normally we use it in pageclass,
using this we can directly call the webelement

ex
:
----------------------
@findby(driver.findElement(By.xpath(!@#$%%))

WebElement name;
--------------------------
using name we can easily call the webelement

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the different kinds of frameworks in automation?

478


What are the types of waits available in selenium webdriver?

465


What is the alternative to driver.get() method to open an url using selenium webdriver?

751


What is the difference between verify and assert commands?

493


What is the selenium ide and what is it used for?

544






What methods of robot class do you know?

482


How to read a javascript variable in selenium webdriver?

513


Explain what is the main difference between web-driver and rc?

452


How to verify tooltip text using selenium?

555


What programming languages can you use in selenium rc?

499


How to connect a database in selenium?

476


What is selenium-rc (remote control) ?

537


What is the super interface of webdriver?

598


Tell me in which format does source view show the script in selenium ide?

443


What are the advantages of selenium as a test tool?

450