Reputation: 171
Im trying to get Css selector for this class(below HTML Code) like
1)input[class='js-AddNuts'][type='button'] Selector: CSS
2)input[class='btn js-AddNuts'][type='button']
3)input[class='btn js-AddNuts']
It fails to locate this element
Html Code
<button class="btn js-AddNuts" data-nuts-single-id="1" data-nuts-target-id="SectionIa_AddressContractingBody_Nuts_NutsString" type="button">Add</button>
Upvotes: 1
Views: 1480
Reputation: 474161
You have a button
element, not input
. Use the dot notation to check a class value:
button.btn.js-AddNuts
button.js-AddNuts
button[class*=AddNuts]
Upvotes: 2