Languages

Geb doesn't see element handle change in my tests in Groovy

4 points
Asked by:
Violet-Hoffman
652

I have some problem with my e2e tests. I use Groovy with Geb as Selenium wrapper.

When I call cancelButton() twice as second result I get same element - even state changed.

I have 2 files.
ProductsPage.groovy file:

ProductsTest.groovy file:

Is it possible that Geb caches handles in content block?

1 answer
2 points
Answered by:
Root-ssh
178180

Yes, according to your question: Geb caches references to elements in content block.

Try to use cache: false

0 commentsAdd comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join