Re: Tests running too fast which is leading to failure

894 views
Skip to first unread message

rory

unread,
Nov 26, 2007, 3:42:59 AM11/26/07
to selenium-users...@googlegroups.com
Hi

Sorry I have never used the setSpeed instuction and it appears that this is only available in selenium -rc.

Due to this I highly recommend using the WaitForElementPresent() command, as this will make your test run most efficiently as it will only wait until the next item which is needed is ready and loaded. This should be all you need to do.

For example, if you are testing google, you would enter your search and click "Google Search". You would then have a WaitForElementPresent(first search result link) which will ensure that the page is loaded before you try to execute any further commands.

Hope this clarifies matters

Rory

shekar

unread,
Dec 3, 2007, 8:35:09 AM12/3/07
to selenium-users...@googlegroups.com
The command setSpeed(5000) doesnt work in Selenium RC, it throws out an error saying the command is not recognized, i sense that it is not handled in RC even though it is supposed to be!!
Any comments from anybody why it doesnt work!!!

Thomas

unread,
Dec 3, 2007, 11:21:50 AM12/3/07
to selenium-users...@googlegroups.com
> The command setSpeed(5000) doesnt work in Selenium RC, it throws out an error saying the command is not recognized, i sense that it is not handled in RC even though it is supposed to be!!
>

setSpeed() works fine in Selenium RC, I use it all the time. Of course it is a method on your Selenium object, check the doc of the client driver you are using for API details.

Once you called setSpeed, this setting will take effect for all subsequent Selenium commands *of that session*, until the session terminates or you set a new value.

=T.

shekar

unread,
Dec 4, 2007, 6:17:22 AM12/4/07
to selenium-users...@googlegroups.com
Can you let me which file i should modify for setSpeed command to be working!!!!
I am using Selenium RC 0.9.2, let me know where can i go and modify so that setspeed starts working!!!!!
i get this error right now! (setSpeed 5000 this operation is only implemented in selenium-rc, and should never result in a request making it across the wire )

Cheers

ykravchenko

unread,
Dec 4, 2007, 7:05:50 AM12/4/07
to selenium-users...@googlegroups.com
Right now I'm getting same error.

[error] this operation is only implemented in selenium-rc, and should never result in a request making it across the wire

I using Selecnium IDE integrated in FireFox to run tests.

Can anyone help with this issue?

Thomas

unread,
Dec 4, 2007, 10:58:56 AM12/4/07
to selenium-users...@googlegroups.com
It seems many people are struggling with the basic architecture of Selenium RC. As an alternative to the Selenium RC tutorial, I've created and uploaded a (slightly more accessible I hope) architecture diagram for Selenium RC, see the attachment tab of the Selenium RC FAQ (http://wiki.openqa.org/display/SRC/Selenium+RC+FAQ).

> Can you let me which file i should modify for setSpeed command to be working!!!!
> I am using Selenium RC 0.9.2, let me know where can i go and modify so that setspeed starts working!!!!!
>

The file you have to modify is your test program, the one that uses any of the Selenium RC client drivers.

> i get this error right now! (setSpeed 5000 this operation is only implemented in selenium-rc, and should never result in a request making it across the wire )
>

I've never seen this error message, so I cannot comment on it.

=T.

ykravchenko

unread,
Dec 4, 2007, 3:36:44 PM12/4/07
to selenium-users...@googlegroups.com
Thanks everyone for responses

Is it possible to use setSpeed in Selenium IDE somehow? (I mean not using Selenium RC)

Regards, Yevgen

Reply all
Reply to author
Forward
0 new messages