This blog is for Automation Test Engineers

Sunday, 27 August 2017

How to use Action class in selenium


Webdriver driver=new FirefoxDriver();
driver.get("https://www.yatra.com/");
Actions actions=new Actions(driver);
WebElement ele=driver.findElemet(By.xpath("//a[@class='dropdown-toggle eventTrackable']")
actions.moveToElement(ele).perform();
driver.findElement(By.linkText("Contact Us")).click();



0

0 comments:

Post a Comment