selenium-google-code-issue-archive icon indicating copy to clipboard operation
selenium-google-code-issue-archive copied to clipboard

Selenium timeout (page_load) does not work

Open lukeis opened this issue 9 years ago • 4 comments

Originally reported on Google Code with ID 7608

When providing the page_load timeout value to use, selenium webdriver does not "respect"
the timeout for all requests.  It will work for every other request.  I am providing
a proof of concept script attached to this bug report.  This happens when re-using
the same webdriver object for each request (i.e. I am not instantiating a new object
with different attributes).

For the very first request, it will timeout nearly immediately (due to the page_load
timeout value set to 1), the second request will just sit and load until the page completely
loads (ignoring the timeout).  The third request starts the process over by timing
out nearly immediately, and the next not timing out.

What steps will reproduce the problem?
1.  Run the attached proof of concept script

What is the expected output? What do you see instead?
I am expecting the timeout to be applied for all requests. 

Selenium version: Ruby version 2.42.0
OS: Kali Linux x64 (essentially debian)
Browser: Firefox
Browser version: 30 (latest version)



Please provide any additional information below. A sample reduced test
case, or a public URL that demonstrates the problem will intrigue our merry
band of Open Source developers far more than nothing at all: they'll be far
more likely to look at your problem if you make it easy for them!

Reported by CTruncer on 2014-07-15 15:05:57


- _Attachment: [drive.rb](https://storage.googleapis.com/google-code-attachments/selenium/issue-7608/comment-0/drive.rb)_

lukeis avatar Mar 04 '16 08:03 lukeis

The attached POC is in this issue, so hopefully that makes it easy for you to replicate
the issue! :)

Reported by CTruncer on 2014-07-15 15:07:01

lukeis avatar Mar 04 '16 08:03 lukeis

Reproduced

Reported by barancev on 2014-07-15 19:59:57

  • Status changed: Accepted
  • Labels added: Browser-Firefox
  • Labels removed: Status-Untriaged

lukeis avatar Mar 04 '16 08:03 lukeis

Is there any progress on this issue? Writing an application that grabs large numbers
of sites, and this timeout issue severely slows runtime.

Reported by rvazarkr on 2014-10-28 21:45:13

lukeis avatar Mar 04 '16 08:03 lukeis

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

  • Labels added: Restrict-AddIssueComment-Commit

lukeis avatar Mar 04 '16 08:03 lukeis