Git Product home page Git Product logo

Comments (6)

jtnord avatar jtnord commented on July 24, 2024

code

failure

rg.openqa.selenium.StaleElementReferenceException: 
The element reference of <input class="submit-button primary " type="submit"> is stale; either the element is no longer attached to the DOM, it is not in the current frame context, or the document has been refreshed
For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/stale_element_reference.html
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'ff21e543bebd', ip: '172.17.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '5.11.0-1027-aws', java.version: '11.0.14'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 91.5.0, javascriptEnabled: true, moz:accessibilityChecks: false, moz:buildID: 20220114150130, moz:geckodriverVersion: 0.26.0, moz:headless: false, moz:processID: 22039, moz:profile: /tmp/rust_mozprofileVsYrsg, moz:shutdownTimeout: 60000, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, platformVersion: 5.11.0-1027-aws, proxy: Proxy(manual, http=0.0.0.0:..., setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}
Session ID: b0f9d484-f880-4f73-be54-16d6c7bc3dd7
	at jdk.internal.reflect.GeneratedConstructorAccessor40.newInstance(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
	at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
	at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:285)
	at org.openqa.selenium.remote.RemoteWebElement.getTagName(RemoteWebElement.java:128)
	at jdk.internal.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.lambda$new$0(EventFiringWebDriver.java:404)
	at com.sun.proxy.$Proxy48.getTagName(Unknown Source)
	at org.jenkinsci.test.acceptance.selenium.Scroller.scrollIntoView(Scroller.java:106)
	at org.jenkinsci.test.acceptance.selenium.Scroller.beforeClickOn(Scroller.java:88)
	at jdk.internal.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.openqa.selenium.support.events.EventFiringWebDriver.lambda$new$0(EventFiringWebDriver.java:84)
	at com.sun.proxy.$Proxy41.beforeClickOn(Unknown Source)
	at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.click(EventFiringWebDriver.java:416)
	at org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl.clickButton(CapybaraPortingLayerImpl.java:99)
	at core.PluginManagerTest.uninstall_plugin(PluginManagerTest.java:55)

from acceptance-test-harness.

jtnord avatar jtnord commented on July 24, 2024

offending element

https://www.javadoc.io/doc/org.seleniumhq.selenium/selenium-api/2.50.1/org/openqa/selenium/WebElement.html#submit--

according to the javadoc form.submit() (previous line) should block - did the recent plugin manager update or change unistallation at all?

from acceptance-test-harness.

jtnord avatar jtnord commented on July 24, 2024

the HAR in the failing build on ci.jenkins.io is useless :(

from acceptance-test-harness.

timja avatar timja commented on July 24, 2024

Didn't touch that page as far as I remember.

yeah I watched the .mov (required VLC, quicktime player couldn't use it) file and couldn't see anything weird

from acceptance-test-harness.

jtnord avatar jtnord commented on July 24, 2024

https://github.com/jenkinsci/jenkins/pull/5916/files#diff-6c62cb488f832c1b63b4254b882e1d9319db662a61993e4dda76635f9fed7220R219-R223

the form changed from being a simple form with an input, to a form with a "jenkins" button (which may involve some asynchronous behaviour?

Anyway, a simple fix workaround would seem to be adding a waitFor(form).until(CapybaraPortingLayerImpl::isStale) after the form submit and before the clickButton()

from acceptance-test-harness.

jtnord avatar jtnord commented on July 24, 2024

also SeleniumHQ/selenium#4570 possibly the javadoc behaviour is not always "correct". generally elsewhere we do not use submit as this is not the same as what would happen when the user clicks the button (and for submission happens) so maybe just change to click on the uninstall button and wait for that to be stale using the above approach

from acceptance-test-harness.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.