-1

Need perform hover on Electronics highlighted on below image

    cd.get("http://flipkart.com/");
    cd.manage().window().maximize();
    Actions mobile = new Actions(cd);
    WebElement electronics= cd.findElement(
    By.xpath(".//*[@id='container']/div/header/div[2]/div/ul/li[1]/a/span"));
    //electronics.click();
    mobile.moveToElement(electronics);
    mobile.build().perform();
Sobha
  • 1

1 Answers1

0

This post contains the same question as yours, please consider viewing the first answer, it was accepted.
PS : please let me know if it worked, else we can search another solutions! Good luck.

Community
  • 1
  • 1
Incepter
  • 2,711
  • 15
  • 33