Skip to content

countryShouldBeAvailableForChoosingAtPageWithSeries: fix StaleElementReference #280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
php-coder opened this issue Nov 28, 2015 · 1 comment
Labels
Milestone

Comments

@php-coder
Copy link
Owner

Our integration tests fail sporadically with the following error (example: https://travis-ci.org/php-coder/mystamps/builds/87893389):

countryShouldBeAvailableForChoosingAtPageWithSeries(ru.mystamps.web.tests.cases.WhenAdminAddCountry)  Time elapsed: 0.481 sec  <<< FAILURE!
org.openqa.selenium.StaleElementReferenceException: The element seems to be disconnected from the DOM.  This means that a user cannot interact with it.
For documentation on this error, please visit: http://seleniumhq.org/exceptions/stale_element_reference.html
Build info: version: '2.47.1', revision: 'unknown', time: '2015-07-30 11:02:44'
System info: host: 'MacBook-Pro-rock.local', ip: '192.168.0.2', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.5', java.version: '1.8.0_45'
Driver info: driver.version: HtmlUnitDriver
    at org.openqa.selenium.htmlunit.HtmlUnitDriver.assertElementNotStale(HtmlUnitDriver.java:809)
    at org.openqa.selenium.htmlunit.HtmlUnitWebElement.assertElementNotStale(HtmlUnitWebElement.java:860)
    at org.openqa.selenium.htmlunit.HtmlUnitWebElement.getText(HtmlUnitWebElement.java:518)
    at ru.mystamps.web.tests.page.AddSeriesPage$$Lambda$1/625981223.apply(Unknown Source)
    at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
    at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512)
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502)
    at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
    at ru.mystamps.web.tests.page.AddSeriesPage.getCountryFieldValues(AddSeriesPage.java:126)
    at ru.mystamps.web.tests.cases.WhenAdminAddCountry.countryShouldBeAvailableForChoosingAtPageWithSeries(WhenAdminAddCountry.java:242)


Results :

Failed tests:
  WhenAdminAddCountry>AbstractTestNGSpringContextTests.run:175->countryShouldBeAvailableForChoosingAtPageWithSeries:242 » StaleElementReference

Tests run: 303, Failures: 1, Errors: 0, Skipped: 0
@php-coder php-coder added this to the 0.4 milestone Nov 28, 2015
@php-coder php-coder self-assigned this Jan 11, 2016
php-coder added a commit that referenced this issue Mar 5, 2016
@php-coder php-coder modified the milestones: 0.5, 0.4 Mar 18, 2016
@php-coder php-coder removed the ready label Mar 18, 2016
@php-coder php-coder removed their assignment Jul 29, 2016
@php-coder php-coder modified the milestones: 0.4, 0.5 Feb 27, 2017
@php-coder
Copy link
Owner Author

After porting this test to Robot Framework we have a different error and perhaps a bit different problem that will be addressed by #540

@php-coder php-coder added kind/test-flake A test is failing only in some cases and removed kind/bug labels Mar 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant