-
Notifications
You must be signed in to change notification settings - Fork 441
Open
Description
Hi,
I have written some code for mousehover and get the link. But i am unable to solve this can u help me.
public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.chrome.driver","./driver/chromedriver81.exe");
WebDriver driver = new ChromeDriver();
driver.manage().window().maximize();
driver.manage().deleteAllCookies();
driver.manage().timeouts().pageLoadTimeout(60, TimeUnit.SECONDS);
driver.get("https://www.spicejet.com/");
// create object for mouse hover
Actions action = new Actions(driver);
action.moveToElement(driver.findElement(By.xpath("//*[@id=\"highlight-addons\"]"))).build().perform();
Thread.sleep(3000);
driver.findElement(By.linkText("SpiceMax")).click();
//driver.quit();
}
Metadata
Metadata
Assignees
Labels
No labels