Hello,
I'm just starting out with Selenium.
I've worked with it about 20 minutes.
Here is a copy of a simple script I am working on:
open /
type q selenium ide
click btnG
So the above script works fine.
I'd like to add my own JavaScript at the end of the script.
For example I'd like to add this syntax:
alert("Hello World");
Well I tried running this script:
open /
type q selenium ide
click btnG
alert("Hello World");
And I get an error:
[error] Unknown command: 'alert("hello world")'
Also I tried this:
open /
type q selenium ide
click btnG
runScriptAndWait alert("hello world")
The above script issues no errors.
But, it does not display the alert I want to see.
My question:
How do I add my own arbitrary JavaScript to a set of Selenium calls?
BTW,
I tried this search phrase:
"how to add my own javascript?"
I got one hit which seemed like a miss:
http://clearspace.openqa.org/click.jspa?searchID=442542&objectType=2&objectID=64580
I vote for moving this forum to google groups.
They have a decent search engine.
Also I already have an account with google.
I just drifted off topic.
My question:
How do I add my own arbitrary JavaScript to a set of Selenium calls?
-Audrey