I am using this code to click on on a button
driver.findElement(By.linkText("Sign up")).click();
I tried using:
new WebDriverWait(driver,30).until(ExpectedConditions.elementToBeClickable(By.linkText("Sign up")))
but it did not work.
I am using this code to click on on a button
driver.findElement(By.linkText("Sign up")).click();
I tried using:
new WebDriverWait(driver,30).until(ExpectedConditions.elementToBeClickable(By.linkText("Sign up")))
but it did not work.
Try this sample as you does not mention URL:
WebDriver driver =new FirefoxDriver();
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.get("http://only-testing-blog.blogspot.in/2014/09/selectable.html");
WebElement ele = driver.findElement(By.xpath("//button[contains(.,'Double-Click Me To See Alert')]"));
//To generate double click action on "Double-Click Me To See Alert" button.
Actions action = new Actions(driver);
action.doubleClick(ele);
action.perform();
Go through this URL to learn more: