import org.openqa.selenium.By;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.interactions.Actions;
public class Test1
{
public static void main(String[] args) throws InterruptedException
{
FirefoxDriver driver = new FirefoxDriver();
driver.get("http://flex.apache.org/");
Actions action = new Actions(driver);
action.moveToElement(driver.findElement(By.xpath(".//*[@id='nav']/li[2]/a"))).build().perform();
Thread.sleep(1000);
action.click(driver.findElement(By.xpath(".//*[@id='nav']/li[2]/ul/li[2]/a"))).perform();
}
}
Software Testing, Test Automation, Test Consulting, and Trainings...... Learn from experience
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment