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

jpa - Passing entitymanager from reflection method -

frame rate - JAVA simple fps animation(how can i work with?) -