I am trying to run a recorded test case in Selenium IDE. The problem is that when I try to execute the whole test case, Selenium stops it not finding an element on page. The problem is that I can execute single steps of the test case. I thought that Selenium tries to find an element before loading a new page, so I used clickAndWait, pause and waitForElementPresent commands - nothing works, Selenium stops the test case.
debug log
• [info] Executing: |`clickAndWait` | css=i.fa.fa-arrow-left | |
• [debug] Command found, going to execute clickAndWait
• [debug] modifyWindow seleniumMarker1429084950752:selenium1429084951105
• [debug] _getFrameElement: frameElement=null
• [debug] modifySeparateTestWindowToDetectPageLoads: already polling this window: selenium1429084951105
• [debug] getCurrentWindow newPageLoaded = false
• [error] Element css=i.fa.fa-arrow-left not found
• [debug] commandError
• [debug] testComplete: failed=true
• [info] Test case failed
I will be very grateful for any help and suggestions.
There are certain cases where 'ClickAndWait' is not reliable and won't wait for the command to finish before moving to the next command. In such cases, an alternative is to use 'Click' instead and follow it up with a 'waitForPageToLoad'.
Example...
ORIGINAL
<tr>
<td>clickAndWait</td>
<td>//input[@type='submit']</td>
<td></td>
</tr>
NEW
<tr>
<td>click</td>
<td>//input[@type='submit']</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>10000</td>
<td></td>
</tr>
If this doesn't help, please post your source code and I'll see if there's something else I can suggest.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With