selenium ide commands
functions in selenium ide
selenium ide jquery
selenium ide math operations
selenium ide assert
However, I'm having a hard time finding any sort of documentation on how to do this. I know I can do
Is it even possible for Selenium IDE to do this sort of thing?
If it comes down to it, I can just make a separate View to handle the clean-up, but I'd really like to avoid that if possible.
storeEval for instance, it says:
Note that, by default, the snippet will run in the context of the "selenium" object itself, so this will refer to the Selenium object. Use window to refer to the window of your application, e.g. window.document.getElementById('foo')
So if you have your own function e.g.
myFunc(). You need to refer to it as
This can be very handy for exercising client-side validation without actually submitting the form, e.g. if you want to test a variety of invalid and valid form field values.
If you use
runScript, that should already run in the window's context.
This works for me.
See this statement to get the jQuery entry point in your page (if it has jQuery of course ^^ )