In my Selenium automation framework, I use JavaScriptLibrary
for clicking some elements.
import com.thoughtworks.selenium.webdriven.JavascriptLibrary;
public class Utils{
public static void click(WebDriver driver, WebElement element){
JavascriptLibrary jsLib=new JavascriptLibrary();
jsLib.callEmbeddedSelenium(driver, "triggerMouseEventAt", element, "click","0,0");
}
}
The code was working fine when I was using Selenium v2.53
. I recently upgraded Selenium client to v3.0
. Since then eclipse showing the error,
The import com.thoughtworks cannot be resolved
and
JavascriptLibrary cannot be resolved to a type
Is javascript library not supported by v3.0?. Has it moved to another package ? or am missing some jar files?. Any workaround for this issue?