Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xpath - how to select this submit button?

How can I select this submit button?

<li id="district_schedule_set_submit_action" class="action input_action ">
  <input class="sexybutton sexysimple sexyorange" type="submit" value="Generate Schedules" name="commit"></input>
</li>

What didn't work...

//input[value()='Generate Schedules'
//form[input()='Generate Schedules']
//input(text(),'Generate Schedules'))
//input[text(),'Generate Schedules')]
like image 977
Michael Durrant Avatar asked Dec 02 '22 23:12

Michael Durrant


1 Answers

I believe

//input[@value="Generate Schedules"]

will work

like image 106
Justin Bicknell Avatar answered Jan 01 '23 11:01

Justin Bicknell