How to use runScript() in Selenium RC?

Advisor at 13h41
How to use runScript() in Selenium RC?


For executing the javascript snippet in selenium rc is simple by the use of single command:

storeEval ( script, variableName )

Gets the result of evaluating the specified JavaScript snippet. The snippet may have multiple lines, but only the result of the last line will be returned.

Note that, by default, the snippet will run in the context of the "selenium" object itself, so this will refer to the Selenium object, and window [......]
This topic belongs to the forum
  • Numbers of topics : 2368
  • Numbers of messages : 6118
  • Numbers of users : 5112
  • Numbers of points : 33
Similar topics
Hi, in our system we have sub menus. We also have the functionality that you cannot be linked into the same application twice. As soon as I run my tests, this new functionality breaks the tests. How do I select the sub menu, without it being broken?
Does Selenium work with IE9? I noticed somewhere (maybe in interview questions) that it works with IE7 & IE8, so I was wondering about IE9.
Hi, Can somebody throw some light on: 1) How TestSuites with set of several testcases written with WebDriver? 2) How to get the result of tests with webdriver? Thanks.
Hi, Can we run the selenium(web driver) test cases in Mac OS...? If not may I know the reason Is selenium supports for mobile devices...? Regards, Devaraj A T
Hi, I am currently doing a web-testing using Selenium core, right now I am focuing on the automation testing in IE but I have troubles that I need help with. When I am trying to tell Selenium to "waitforpopup" the following error message
Forums from same category
  • Buy & Sell

  • The Best CardSharing Community

  • Free forum : This is a forum about Hannibal Heyes. A character from the series Alias Smith and Jones. A notorious outlaw cowboy going straight to get amnesty. A character played by Pete Duel.

  • Chat rooms for the discerning viewer: )

  • Forum for Buffalo & District Soccer League. Buffalo & District Soccer League Forum

  • A broad forum for the Igbos, the Nigerians and the World. It covers topics on Igbo cultures & traditions, romance, technology, business and entertainment with a lot of jokes, laughs and banters.