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

What programming language is best for writing selenium tests?

426


How will you handle working with multiple windows in selenium?

471


What programing language is most useful for creating selenium evaluations?

484


How do perform drag and drop using webdriver?

520


Give ide's main parts and components?

530






How can we check if an element is enabled for interaction on a web page?

432


What are the prerequisites to run selenium webdriver?

521


How to submit a form using selenium webdriver?

526


What is page factory?

534


How to check which option in the dropdown is selected?

569


What are desiredcapabilities in selenium webdriver?

477


What is the firefoxdriver, class or an interface? And which interface does it implement?

467


What are the different types of locators in Selenium?

527


What is selenium rc?

494


Tell us how can you run selenium server other than the default port 4444?

485