c# webdriver - how can I verify 'disabled' attribute exists for a button -
i'm trying verify button loacted within test page has 'disabled' attribute applied it. here code:
<button type="button" class="btn-1" data-type="plus" data-field="quantity" disabled="disabled">
how go getting handle on 'disabled' attribute?
many help
i not using c# think can use getattribute() method webdriver api.
so should that:
iwebelement button = locator button; button.getattribute("disabled");
and can assert value etc.
Comments
Post a Comment