Unable to Click a link using Selenium - Webdriver: Chrome:Win7
Following is the code when i inspect the button:
a id="continue_button" disabled="false" class="button button-large ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" href="#" role="button" aria-disabled="false">
span class="ui-button-text"> span class="button-content">Continue
I have tried the following ways and nothing works:
driver.findElement(By.xpath("//*[@id='continue_button']")).click();
driver.findElement(By.xpath("//a[contains(..,'Continue')]")).click();
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript("document.querySelector(\"a[id$='continue_button']\").click()");