hi, 

does anyone have an idea why I get this error 

org.openqa.selenium.StaleElementReferenceException: stale element reference: 
element is not attached to the page document

although the button was clicked already and navigation was done to the next 
page successfully?

30-Oct-2019 07:24:35     
org.openqa.selenium.StaleElementReferenceException: stale element 
reference: element is not attached to the page document
30-Oct-2019 07:24:35       (Session info: chrome=78.0.3904.70)
30-Oct-2019 07:24:35     For documentation on this error, please visit: 
https://www.seleniumhq.org/exceptions/stale_element_reference.html
30-Oct-2019 07:24:35     Build info: version: '3.141.59', revision: 
'e82be7d358', time: '2018-11-14T08:17:03'
30-Oct-2019 07:24:35     System info: host: 'abc', ip: 'a.b.c.d', os.name: 
'Linux', os.arch: 'amd64', os.version: '3.10.0-957.21.3.el7.x86_64', 
java.version: '1.8.0_72'
30-Oct-2019 07:24:35     Driver info: 
org.openqa.selenium.remote.RemoteWebDriver
30-Oct-2019 07:24:35     Capabilities {acceptInsecureCerts: false, 
browserName: chrome, browserVersion: 78.0.3904.70, chrome: 
{chromedriverVersion: 78.0.3904.70 (edb9c9f3de024..., userDataDir: 
/tmp/.com.google.Chrome.2U3GYq}, goog:chromeOptions: {debuggerAddress: 
localhost:40401}, javascriptEnabled: true, networkConnectionEnabled: false, 
pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, proxy: 
Proxy(manual, http=proxy-dc..., setWindowRect: true, 
strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, 
script: 30000}, unhandledPromptBehavior: dismiss and notify, 
webdriver.remote.sessionid: 1de336d3f21f190d74dac6c6b85...}

It does not happen all the time, it is only occasional.

I simply click the product details button to get to the details page, 
seeing the screenshots it navigates to the detail page and gives me an 
StaleElementReferenceException, 
but the click was done.

def "Test: Go to productDetail '518326' "() {
 when:

   waitFor { productDetailsButton.displayed }

   productDetailsButton << Keys.ENTER

 then:

   waitFor {at ProductDetailPage}

   report "Product '518326' at Productdetailpage screenshot"
}

I am using these versions:


groovyVersion = '2.5.8' 
gebVersion = '3.2' 
seleniumVersion = '3.141.59' 
chromeDriverVersion = '78.0.3904.70' 


Thank you!


-- 
You received this message because you are subscribed to the Google Groups "Geb 
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/06a521d5-aad6-47cc-ab5a-aae2751ba321%40googlegroups.com.

Reply via email to