Skip to content

Moushover menu issue #5

@likithasiteurl

Description

@likithasiteurl

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions