Comments (6)
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.
offending element
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.
the HAR in the failing build on ci.jenkins.io is useless :(
from acceptance-test-harness.
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.
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.
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)
- MockUpdateCenter regularly has corrupted plugin downloads HOT 1
- `plugins.JobDslPluginTest#should_create_job` failed on 2.415
- `plugins.AntPluginTest` fails on 2.417 HOT 1
- `plugins.JobDslPluginTest` fails on 2.417 HOT 1
- Test on Java 21 HOT 2
- ath-container is broken on arm64
- `plugins.OwnershipPluginTest.explicitly_set_ownership` is failing HOT 2
- Too much logging from the MockUpdateCenter
- remove selenium:lift or fix renovate config HOT 1
- All tests that touch script security approval are flakey HOT 2
- plugins.GitLabPluginTest.testGitLabMultibranchPipeline is flaky HOT 1
- Add option to skip the `MockUpdateCenter`
- multiple tests regressed (due to trilead removal from ssh-credentials?) HOT 7
- SSH agent tests failing on default branch HOT 6
- `SshSlavesPluginTest` failing with `NoSuchElementException` on default branch HOT 1
- `ConfigFileProviderTest` failing with `NoSuchElementException` on default branch HOT 1
- `FreestyleJobTest#should_visit_build_with_permalink` fails on 2.453+ HOT 1
- `CreateItemTest#duplicate_item_name_displays_error` fails on 2.453+ HOT 1
- Remove workaround in `FreestyleJobTest#should_visit_build_with_permalink`
- Remove workaround in `CreateItemTest#duplicate_item_name_displays_error`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acceptance-test-harness.