<div class="row" >
< type="submit" class="cl- cl---no cl-column">No</>
<div class="row" >
< type="submit" class="cl- cl-column">Yes</>

I am trying to a button by fetching . As they have same class I find no other option. Any ideas?
I have tried:

$('div:contains("No")').click()
$(':No').click()
$(':contains("No")').click()
$('button:contains("No")')

but nothing worked for me.



Source link https://sqa.stackexchange.com/questions/32785/-how-can-i-click-a-button-by--text-inside-a-button-with-no--or

LEAVE A REPLY

Please enter your comment!
Please enter your name here