hi
I have a button
<input type="submit" name="btnAddnew" value="add new" id="btnAddnew" tabindex="3" class="add" style="height:21px;width:180px;">
Because the tool for developing the application will give different name and id so I try to locate it by class:
d.findElement(By.className("add"))
and
@FindBy(className="add") private WebElement addNew;
Both way I still cannot identify the button as Webelment.
Please kindly help.
Thanks