So the only automation I have ever done is what I kind of self learned at my current job using cucumber with ruby. I have had issues with my tests since upgrading selenium and gekko driver for Firefox 48+. My CSS looks like the following:
<select id="scheduled-task-type" name="maintenance_task[task_type]">
<option value="16">Engine Runtime</option>
<option value="10">GPS Odometer</option>
<option value="13">Idle Time</option>
My previously working command was
@browser.select(id: "scheduled-task-type").select "GPS Odometer"
This no longer seems to function. It doesn't throw an error but it does not change the drop down either. It actually seems to think it correctly performed the action.
@browser.select(id: "scheduled-task-type").select "GPS Odometer"
=> "GPS Odometer"
I have tried to get it to click the drop down to open it (this works) but when I try to get it to make a selection after that using .click such as
@browser.select(id: "scheduled-task-type").click
@browser.select(id: "scheduled-task-type").option(text: "GPS Odometer").click
It still doesn't work and also doesn't throw an error.