RE: How to solve this error??

WebDriver driver = new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
driver.manage().window().maximize();
String URL=”http://store.demoqa.com/”;
driver.get(URL);
WebElement prodCat=driver.findElement(By.linkText(“Product Category”));
Actions action = new Actions(driver);
action.moveToElement(prodCat).build().perform();
WebElement el1=driver.findElement(By.linkText(“iPads”));
el1.click();

 

I am gettingĀ  the below error for the above code:

Exception in thread “main” org.openqa.selenium.UnsupportedCommandException: POST /session/d860a109-dae7-49e6-a167-20e9989ff7af/moveto did not match a known command
Build info: version: ‘unknown’, revision: ‘1969d75’, time: ‘2016-10-18 09:43:45 -0700’

Gurpree_Test1 Default Asked on February 27, 2017 in Selenium WebDriver.
Add Comment
1 Answers

try same code for chrome and Let me know

Train Answered on March 28, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.