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.

c# getattribute

so should that:

iwebelement button = locator button; button.getattribute("disabled"); 

and can assert value etc.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -