I am attempting to click a button on this page using a headless PhantomJSDriver() and a click() command, but it hangs for about half a minute and then claims it cannot find the element. How would I properly identify the button and simulate clicking it
My code snippet:
driver.findElement(By.xpath("//input[@class='btn btn-primary btn-xs' and @type='button']"))
.click();
The error message:
[ERROR - 2015-07-22T23:01:51.589Z] WebElementLocator -
_handleLocateCommand - Element(s) NOT Found: GAVE UP. Search Stop Time: 1437606111543
The inspected element:
<td ng-show="hit.HITStatus == 'Unassigned'" class="col-sm-1">
<a href="www.theurl.com">
<button type="button" class="btn btn-primary btn-xs">What the button says</button>
</a>
</td>