ember-page-object icon indicating copy to clipboard operation
ember-page-object copied to clipboard

Is it possible to access a buttons' attributes?

Open aaronlelevier opened this issue 8 years ago • 0 comments

I wanted to know if it is possible to access a buttons attributes to know if a button is disabled or not?

I have this code:

assert.ok(find('.t-dt-start').attr('disabled'));
<button {{action "start" ticket}} disabled={{isNotValid}} class="t-dt-start">
  {{t dt.start}}
</button>

That I'd like to use an ember-page-object in the first snippet test if possible. Is this possible?

Thank you in advance.

aaronlelevier avatar Apr 21 '16 17:04 aaronlelevier