skip to Main Content

Problem with executing javascript code to do hover event over xpath element in selenium webdriver

I try to trigger hover event over an element declared by xpath statement in selenium webdriver: ((JavascriptExecutor) driver).executeScript("$('(//span[@class='attribute-square-container'])[2]').hover();"); but I'm receiving: org.openqa.selenium.JavascriptException: SyntaxError: missing ) after argument list What is incorrect in above line? I changed code a litle bit:…

VIEW QUESTION
Back To Top
Search