I am trying to test if a validation error shows up when the user types a number into a number field that is not a whole number. The error appears when I type it into the field manually, but when I run it in selenium, the js is never triggered so the error doesn't show on the screen and the test fails.
<tr>
<td>type</td>
<td>//*[@id='notificationTimerNum']</td>
<td></td>
</tr>
<tr>
<td>sendKeys</td>
<td>//*[@id='notificationTimerNum']</td>
<td>1.5</td>
</tr>
<tr>
<td>waitForVisible</td>
<td>//*[contains(@class, 'control-error')]//*[contains(., 'The number of minutes must be entered as a whole number')]</td>
<td></td>
I have also tried using the fireEvent command as suggested here with no luck.
In addition, I am unable to run Selenium IDE sendKeys on my local browser outside of the test environment because it errors out on sendKeys when trying to type a value into the number field.
[error] Unexpected Exception: Error: Cannot set the selection end.