Re: how to use getEval in Selenium Web driver ??

332 views
Skip to first unread message

David

unread,
May 20, 2013, 5:25:08 PM5/20/13
to webd...@googlegroups.com
Perhaps you should list what the exact Javascript code you are executing as well. And what Selenium API method you are calling

selenium.getEval() or driver.executeScript()?

On Monday, May 6, 2013 9:49:26 PM UTC-7, sree kanth wrote:
Hi Guys,
I want to get the random numbers, so I used storeEval command and target with javascript and stored in X variable. When I execute in selenium Ide I am able to use that variable in other steps also. like typing that value to text field. But when I run it in selenium RC it throws an error as "Command execution failure. Please search the user group at https://groups.google.com/forum/#!forum/selenium-users for error details from the log window.  The error message is: replacement.indexOf is not a function"

Please let me know the why it is not working.

Thanks,
Sree

Reply all
Reply to author
Forward
0 new messages