SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
345 stars 195 forks source link

Command Timed Out Issue #282

Closed lukeis closed 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 282

Environment:
GWT/GXT application deployed to MacOS running under jetty
Driving the application using RemoteWebDriver, driving IE on a remote
machine using the DriverServlet deployed into jetty on WindowsXP

Scenario:
Successfully driving our application in IE using this approach. 

However at a certain point in the script it stops driving and the
DriverServlet logs the following:

"The driver reported that the command timed out. There may be several
reasons for this. Check that the destinationsite is in IE's 'Trusted Sites'
(accessed from Tools->Internet Options in the 'Security' tab) If it is a
trusted site, then the request may have taken more thana minute to finish."

The RemoteWebDriver throws the following exception:
org.openqa.selenium.ie.TimedOutException

The line in the script invoke when this failure happens is a
driver.element(By.xpath)... statement.

We have also tried running this script using a local FireFoxDriver and the
script runs to completion without any problems.

Questions:
We are unable to get any further diagnostic information. What can we do to
debug/diagnose this problem further?

What sort of things other than the 'trusted-site' issues logged above could
cause commands to the browser to time-out?

Reported by team.sonique.sns on 2009-12-15 17:01:45

lukeis commented 8 years ago
We are testing a GWT application too with Selenium2.0a2 and the
InternetExplorerDriver (using Internet Explorer 7). 

I also get the time out exception when we click on a link. After clicking, the
application shows some hidden stuff (or makes generates new HTML).

It seems that the click does happen, because the expected stuff is shown... but
somehow we still get the time out exception from selenium....

Could it be that selenium is waiting for some elements to be loaded or page is loaded
after the click?

Reported by eskapenl on 2010-02-17 11:07:16

lukeis commented 8 years ago
The IE driver times out after 60 seconds (there's an open issue requesting this would

be configurable). Can you both verify that the error happens after 60 seconds?
To the original creator of the issue: Are you able to connect to the remote machine

and see if there is any pop-up or IE warning stopping the browser from continuing to

load? 

Reported by eran.mes on 2010-02-25 15:57:16

lukeis commented 8 years ago
We are facing this issue and is becoming a major blocker.
Please let us know the expected time when this issue is expected to be fixed.

Reported by mustafalodhi on 2010-03-10 11:06:29

lukeis commented 8 years ago
I am getting this issue running locally on windows xp IE7. Nothing else seems to be

loading and the status bar of the browser says done. It always happens on the same

spot. I went all the way back to version 7376 and see the same issue there. I am 
able to catch the exception but every action on that page when finding elements 
takes 60 seconds and after navigating from the page everything is fine

Reported by john.majcher on 2010-03-24 19:05:24

lukeis commented 8 years ago
One other thing I noticed is that it shows up as unknown mixed zone

Reported by john.majcher on 2010-03-24 20:01:58

lukeis commented 8 years ago
This is definitely happening whenever the security zone changes to unknown zone 
(mixed) i have been able to reproduce it another application and it freezes as soon

as the zone changes

Reported by john.majcher on 2010-03-25 04:16:42

lukeis commented 8 years ago
This also happens during "get" command. For example create InternetExplorerDriver and
call get("http://www.expedia.com") . You will get timeout error, even when site fully
loads and status bar shows "Done". 

Reported by khachatryan.lusine on 2010-03-29 08:16:02

lukeis commented 8 years ago
While performing an evaluation of Webdriver to see if it might be a feasible
replacement for unreliable Selenium interaction with IE7, I immediately found this
problem to be a blocking issue.  

It occurs for some pages (whether the domain is in the trusted zone or not) on both
#click and #get commands, where the page appears to load and render completely, and
the driver continues to block until finally timing out.  The same commands work as
expected against Firefox.  

I'm running the 1.0.3 uber jar, executing via Remote driver against IE7 running on
Windows XP SP2.  Please let me know if there is any additional information I can
provide to help track down and fix this devastating brokenness.

Reported by onlywade on 2010-03-30 20:34:19

lukeis commented 8 years ago
I have the same issue.  Simple www.google.com site works fine but I am trying to 
automate a website which is on internet zone still I get this timeout error.  The page

loaded completely but selenium can't figure out it's loaded.  I am running this on

Windows XP SP3 and IE8.

Reported by kesavkolla on 2010-04-06 19:53:30

lukeis commented 8 years ago
My suspicion is that a page loads content from other domains, making IE think it's not

in the trusted zone anymore. It would help if someone could attach a test case *and*

details of the IE settings they use (*all* trusted sites and other related security

settings).

Reported by eran.mes on 2010-04-07 15:44:13

lukeis commented 8 years ago
Issue 421 has been merged into this issue.

Reported by eran.mes on 2010-04-07 16:10:42

lukeis commented 8 years ago
I believe that might be the issue. I have some content from some other domains that

gets loaded.

I hope to have the site live in the next day or two and hopefully I can send the 
scenario unless someone beats me to it.

Reported by john.majcher on 2010-04-07 16:40:18

lukeis commented 8 years ago
Yes in my scenario too I have documents loading from another domain.  The main site

uses iframe to load documents from another domains.  I have added all the domains in
my 
Trusted sites list still the driver failed with timeout exception.

So I have the website https://www.4medica.com/averity-staging/ which loads content
from 
https://averity-stage.4medica.net.

I have added both these URLs in my trusted sites list.

Reported by kesavkolla on 2010-04-07 20:07:42


lukeis commented 8 years ago
I have added a script that has this issue happen 
I am using IE7
Site is listed in my trusted sites
I have all warnings turned off for any security issues

Reported by john.majcher on 2010-04-11 01:49:04


lukeis commented 8 years ago
i think i'm stucked with this same issue.

by reading what's been said here, i think i don't need to add more details. i will
just leave what i've wrote on groups about the problem that i'm having:
http://groups.google.com/group/selenium-developers/browse_thread/thread/e3ca3cbff06039ae/d361fc65d4c9f2eb#d361fc65d4c9f2eb

this is becoming a major blocking.

Reported by hugoandregomes on 2010-04-27 14:41:45

lukeis commented 8 years ago
I too have issue with the IE driver. any Updates on the is issue?

Reported by Densildesilva on 2010-05-10 12:52:22

lukeis commented 8 years ago
Yes. Issue still present in the IE web driver. Timeout exception when navigete or 
click. Is anybody know solution? What is estimate for fix this issue?

Reported by felenko on 2010-06-03 10:32:06

lukeis commented 8 years ago
Issue 490 has been merged into this issue.

Reported by jari.bakken on 2010-06-17 00:17:27

lukeis commented 8 years ago
I just ran into this issue myself.  It appears to be related to http redirects somehow.
 When I use "justin.tv" for my base URL, opening "/favicon.ico" incorrectly causes
selenium to report a timeout.  In this case, the server is returning a redirect to
"http://www.justin.tv/favicon.ico".  Both sites are in my trusted sites list.

If I use "www.justin.tv" for my base URL, however, opening "/favicon.ico" works correctly.

I am using Selenium RC 2.0a4 on Windows 7; Everything here works in "*firefox", and
"*iexploreproxy" causes these errors.

Reported by kd5bjo on 2010-06-23 22:45:05

lukeis commented 8 years ago
Is there any update for this issue?

I was stuck here too. 

Can we make org.openqa.selenium.ie.ErrorHandler.verifyErrorCode(ErrorHandler.java:73)
to give more error message? like which domain is needed in the Trust List?

I tried driver.get("http://www.fandango.com"), driver.get("http://www.cnn.com"), all
failed. But driver.get("http://www.yahoo.com") worked fine.

Reported by libaojian50 on 2010-07-12 18:09:14

lukeis commented 8 years ago
I've found that issue happens if page contains iframe element.
Sample HTML code below will hang InternetExplorerDriver that causes TimeOutException.

<html>
<title>iframe test</title>
<body>
<h1>Sample</h1>
<iframe src="http://www.google.com/" />
</body>
</html>

* kesavkolla #14 already pointed to iframe relation

Reported by h.damian.h on 2010-08-03 09:45:26

lukeis commented 8 years ago
Hi Guys,

Is there an update on this? I am evaluating WebDriver for a company and would really
like this tool to be the one of choice but this issue is a complete show stopper for
me.

Can you please let us know if and when it's going to be fixed?

Best Regards,
Stanislaw Wozniak

Reported by stan.wozniak on 2010-08-05 11:12:48

lukeis commented 8 years ago
I am too facing the same problem. I have added both the main url & the redirected url
in the trusted sites. This still causes the TimeOutException. After I catch the exception,
I am able to execute with other objects, but not WebDriver. WebDriver object throws
exception for any other method invocation.

Please let me know on the availability of a fix for this.

Reported by kamala.sridharan87 on 2010-08-05 12:08:01

lukeis commented 8 years ago
I am trying out the API to prototype automated web testing in my company and facing
the same issue. My company's Index.html page launches a new window to get the Login
credentials from the user. Though I see the login window IE driver returns with the
TimedOutException. This is show stopper issue for me.

Reported by spragati on 2010-08-24 20:40:58

lukeis commented 8 years ago
I'm experiencing the same issue and am heavily roadblocked becuase of it. Any feedback
on a workaround would be greatly appreciated.

Thanks!

Reported by Verona0202 on 2010-09-03 22:14:57

lukeis commented 8 years ago
Hi, I have found a workaround that might work for you guys. I have basically disabled
blocking API for frames meaning that the driver will wait for the main page to load,
but it will not wait for any frames on the page.

I understand that this is not a solution for everyone, but it works for me so I have
decided to share it. 

Attached is a patch if you want to build things yourself and also a custom built copy
of selenium server that was tested with x86 and x64 java 1.6.

I had to split the archive in two due to attachment weight limit.

Reported by stan.wozniak on 2010-10-12 07:56:28


lukeis commented 8 years ago
And second part of the selenium server

Reported by stan.wozniak on 2010-10-12 07:57:00


lukeis commented 8 years ago
Stan, thank you for the patch! It's working well for me.

Reported by levity on 2010-10-14 19:55:18

lukeis commented 8 years ago
Hi  stan.wozniak, 

how can i apply this patch ? 
I am using Selenium drivers dll (WebDriver.IE.dll) and selenium-server.jar running
in my C# Nunit test cases. 
Please help me out 

Reported by akhare.sandeep on 2010-12-15 17:54:39

lukeis commented 8 years ago
I too am having this problem.

I've been getting by with the FireFox driver, but it would certainly help gain buy-in
from my company if IE were supported. I'm also using C#, so the fix for me will likely
be one rev behind the java implementation, which is still non-existent? 

Reported by shawn.sansom on 2010-12-17 19:41:17

lukeis commented 8 years ago
@stan.wozniak,

Thanks for the patch. It fixes the issue for me too. Do you know when will this fix
be available as part of the official download?

Sasi

Reported by sasikutti on 2010-12-22 01:09:53

lukeis commented 8 years ago
Hi,

The current solution is not suitable for everyone, it would not work for applications
that use frames. I am no C developer and cannot fix this issue properly and I doubt
that the fix I have applied will ever get pushed to production code.

Having said that, we should highlight the impact it has and maybe this issue will get
prioritised.

Thanks,
Stan

Reported by stan.wozniak on 2010-12-22 15:32:57

lukeis commented 8 years ago
Can someone please try this with the latest version of the IE driver (2.0 beta 1)? The
IE driver has been completely rewritten. Please note that you will need to set your
Protected Mode settings to the same value for all zones (either on or off, it doesn't
matter as long as all zones are the same). 

Reported by james.h.evans.jr on 2010-12-22 23:52:27

lukeis commented 8 years ago
Woot! Latest IE driver works without my workaround, at least for my application.

Reported by stan.wozniak on 2010-12-23 08:29:47

lukeis commented 8 years ago
No luck for me , after submitting the page I  am getting below error 

SetUp : OpenQA.Selenium.WebDriverException : No response from server for url http://localhost:3806/session/c8ea3669-7963-47f3-a7e2-22b9df1590be/element/a1365212-9268-45c9-b3b0-9ef0dcf073d1/submit.

I am using below jars 
selenium-server-standalone-2.0b1.jar
selenium-dotnet-2.0b1.zip for C# code 

Reported by akhare.sandeep on 2010-12-29 20:47:49

lukeis commented 8 years ago
Consider this an official call for examples (including HTML and automated test source)
that are still broken in 2.0b1. Simply saying "it doesn't work for me" without providing
a reproducable instance of the issue gives us no helpful information on how to solve
the remaining problems.

Reported by james.h.evans.jr on 2010-12-30 11:55:14

lukeis commented 8 years ago

Reported by jari.bakken on 2011-01-27 01:35:45

lukeis commented 8 years ago
It's been nearly 4 weeks without a response on the call for reproducable cases. I am
closing this issue. If it appears unfixed for anyone, please do not just reopen the
issue without attaching a complete repro case that includes a test HTML page.

Reported by james.h.evans.jr on 2011-01-27 13:34:06

lukeis commented 8 years ago
Hello All,
I am using IEDriver with version 2.28.0. But still I am facing this issue. I see this
issue when I run my test script in C#. But not facing this issue with I debug the test
case. Can anyone suggest me what could be the issue?

Reported by ba.raghu on 2013-02-19 06:47:04

lukeis commented 8 years ago
So what are you testing? Am I supposed to mind read?

Read comment 40. Produce something we can run locally.

Reported by arran.huxtable on 2013-02-19 09:44:28

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 17:47:54