This is my button link:
<a class="button" href="#" onclick="ajaxtoelement('include/system.php?mode=begin&location='+getSelectedValue('location')+'&terminallane='+getSelectedValue('terminallane')+'','keyboard')</a>"
And I have tried doing
driver.findElement(By.xpath("//a[@class='ajaxtoelement('include/system.php?mode=begin&location='+getSelectedValue('location')+'&terminallane='+getSelectedValue('terminallane')]"));
Why can't selenium still find the button I'm specifying?
ajaxtoelement('include/system....is not the class of the element