Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moushover menu issue #5

Open
likithasiteurl opened this issue May 20, 2020 · 1 comment
Open

Moushover menu issue #5

likithasiteurl opened this issue May 20, 2020 · 1 comment

Comments

@likithasiteurl
Copy link

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();
	
	
}
@vinaykumar9
Copy link

vinaykumar9 commented May 20, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants