I have a button containing a span whose the attribute class contains the word “edit”:
<button class="ux-button ux-button--primary ux-button--with-label" type="button" tabindex="0" aria-disabled="false" data-e2e="ux-button"> <span class="eui-icon eui-icon-edit ux-button__icon ng-star-inserted"></span> <span class="ux-button__content">Edit</span> </button>
I would like to check the background color of this span element.
I do that:
But I don’t know if there is a better solution to identify the element based on the property class.
Thus I don’t know which command to use for checking the property backgroundColor on the element whose the attribute class contains the word “edit” (in order to identify this button).
Could you help me to do that ?