# Intermittent selenium failures

**URL:** <https://discuss.circleci.com/t/intermittent-selenium-failures/194>\
**Category:** Build Environment\
**Tags:** selenium\
**Created:** [October 27, 2015, 2:27pm UTC](https://discuss.circleci.com/t/intermittent-selenium-failures/194 "2015-10-27T14:27:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbonami](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/sbonami/32/126_2.png) [@sbonami](https://discuss.circleci.com/u/sbonami)\
**Post date:** [October 27, 2015, 2:27pm UTC](https://discuss.circleci.com/t/intermittent-selenium-failures/194/1 "2015-10-27T14:27:53Z")

</div>

Hey all. I’m having intermittent build issues that consistently succeed locally. We had our master build (#2516) succeeds but rebuild (#2524) fails (without cache clear or any changes). The failures are only on our js-driven feature specs, the others succeed consistently for both Circle and dev.

Error: “Net::ReadTimeout”

Partial Stack:

- Rails 4.1.4
- RSpec 3.0
- Capybara (2.4.1, 2.5, and master)
- selenium-webdriver 2.45.0

Fix attempts:

- I’ve tried updating capybara and/or selenium
- Revert the first merge we noticed the errors on
- Clearing cache with rebuild
- Updating our dev group and/or test group gems

As stated, master succeeds locally.  
This started happening Monday 10/19.

Any help is hugely appreciated!

---

<div class="post-metadata">

**Author:** ![sbonami](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/sbonami/32/126_2.png) [@sbonami](https://discuss.circleci.com/u/sbonami)\
**Post date:** [November 11, 2015, 2:42am UTC](https://discuss.circleci.com/t/intermittent-selenium-failures/194/2 "2015-11-11T02:42:28Z")

</div>

Ended up solving this one. It’s partially due to an error on our part and partially due to a selenium bug.

Steps to reproduce:

1. visit /path/to/page
2. alert(“whatever”)  
{don’t close it}
3. call visit /path/to/page again

Any subsequent pages selenium loads will still have the alert box open, thus most matchers will break.

---

<div class="post-metadata">

**Author:** ![alexey](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/alexey/32/42_2.png) [@alexey](https://discuss.circleci.com/u/alexey)\
**Post date:** [November 12, 2015, 11:51am UTC](https://discuss.circleci.com/t/intermittent-selenium-failures/194/3 "2015-11-12T11:51:53Z")

</div>

Thanks for posting the solution here, we really appreciate that. And sorry for not being that helpful in this case.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:37am UTC](https://discuss.circleci.com/t/intermittent-selenium-failures/194/4 "2018-06-18T11:37:31Z")

</div>

Closed on June 18, 2018, 11:37am UTC


