Share
Go down
jochen
Posts : 7
Join date : 2009-08-31

Problem with timout - doesn´t work

on Mon Aug 31, 2009 6:15 pm
Hallo,
the hole timout functionallity will not work. I test an application, that takes time to load pages. Sometimes 1 minute or longer.
So i tried to change the global timeout from 30000 to 60000.
I get [error] Timed out after 30000ms
Then i tried to add command 'setTimeout' and set it to 90000.
I get [error] Timed out after 30000ms again.
So, what can i do?
Thank you for help! Very Happy
avatar
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
http://seleniumforum.forumotion.net

Re: Problem with timout - doesn´t work

on Mon Aug 31, 2009 7:35 pm
hi

If you know that some click will load new page and take lot of time use this command instead of click:

clickAndWait(locator)
Generated from click(locator)
Arguments:

* locator - an element locator

Clicks on a link, button, checkbox or radio button. If the click action causes a new page to load (like a link usually does), call waitForPageToLoad.

Hope this will help you. Best of luck.

Bye
jochen
Posts : 7
Join date : 2009-08-31

Re: Problem with timout - doesn´t work

on Mon Aug 31, 2009 9:14 pm
I tried in couple ways, but nothing worked. Mad
I had already clickAndWait. After that command i inserted the waitForPageToLoad, but Selenium runs further and want to change elements, there are still not there.
I tried pause command, but there is no pause.Then i tried the waitForTextPresent, but Selenium run´s further.
Very strange! No command for check and wait seems like work correct. Perhaps the error is somewhere else? Rolling Eyes
jochen
Posts : 7
Join date : 2009-08-31

Re: Problem with timout - doesn´t work

on Wed Sep 02, 2009 7:17 pm
Sad

Hello? No answer?

Are the commands

- setTimout
- waitForPageToLoad
- waitForTextPresent

working by you???

When yes, what´s you environment? OS, FF Version? Perhaps it depend on this.
nellorekrishnakumar
Active particpant
Active particpant
Posts : 19
Join date : 2009-08-14
Age : 32
Location : HYDERABAD

Re: Problem with timout - doesn´t work

on Sun Sep 06, 2009 8:37 pm
Hi Jochen,

In those case you can try waitForElementPresent("provide any element name or text that will be displayed on ewpage");

Thanks,
Nellore Krishna Kumar
mugenhere
Posts : 9
Join date : 2009-09-08

Re: Problem with timout - doesn´t work

on Tue Sep 08, 2009 5:21 pm
Have you tried Selenium RC? It gives much more flexibility.
jochen
Posts : 7
Join date : 2009-08-31

Re: Problem with timout - doesn´t work

on Thu Sep 10, 2009 12:52 pm
It seems like SE don´t work.
Now i tried waitForElementPresent. In value is standing the text. Now SE wait till wrong timeout, shows the error and go further.
SE is not practible. I will try the hint for using RC.
jochen
Posts : 7
Join date : 2009-08-31

Re: Problem with timout - doesn´t work

on Thu Sep 10, 2009 8:41 pm
RC is very time-consuming.
So, IDE will be the easier an fast effective way to test simple forward sites.
But no wait commands are working. I thought it depends on ff version. So i deinstalled ff 3 completely and install version 2. The same effect. Timout and wait commands do nothing. What a pitty. Selenium is not the right tool, because it´s really not working.
mugenhere
Posts : 9
Join date : 2009-09-08

Re: Problem with timout - doesn´t work

on Fri Sep 11, 2009 8:52 am
Why do you say RC is very time-consuming? Do you mean it is taking a lot of time to set-up?
I'm using Selenium and it works fine for me. Occasionally the waitforpage does not seem to work (as in the page loads but we still need to wait for some AJAX calls to get completed by using waitfortext or waitForElement).

The problem you are facing seems to be about the timeout value not working. I'm not sure but it does sound like a bug to me. You could log it in http://jira.openqa.org.

But aside from this problem you had selenium works great (on firefox). Its easy to write/read the code for this and it works fast.
nellorekrishnakumar
Active particpant
Active particpant
Posts : 19
Join date : 2009-08-14
Age : 32
Location : HYDERABAD

Re: Problem with timout - doesn´t work

on Fri Sep 11, 2009 10:58 am
Hi Jochen,

Could you tell me steps exactly where u r failing.
If after clicking button new page is opening . try to provide element locator id in waitForElementPresent();
Specify some text appearig in that page.


Thanks,
Nellore Krishna Kumar
kgrv1780
Posts : 1
Join date : 2009-09-14
Location : Bangalore,India

Re: Problem with timout - doesn´t work

on Mon Sep 14, 2009 11:13 am
Hi

You can use 'pause' command which will work fine. I used puase command with various timings
Sponsored content

Re: Problem with timout - doesn´t work

Back to top
Permissions in this forum:
You cannot reply to topics in this forum