Which of following correct?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Which of following correct?

Hello Selenium webdriver users, 

which one of the following line code is correct

1. driver.moveToElement(Webelement).build().perform().click(); 

2. driver.moveToElement(webElement).perform.click(). 

why we need build () or perform  why we can't directly click on the element?? 

Java Lover 

You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/644f909e-7ded-4544-90a2-a8f7ba871128%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.