I try to use the following script code in my Java/Selenium function:
return ((JavascriptExecutor)driver).executeScript("return $(':animated').length").toString().equals("0");
But when I execute the code the following error comes up:
unknown error: $ is not defined
How can I solve this?