Code Monkey home page Code Monkey logo

Comments (3)

BeastiW avatar BeastiW commented on August 15, 2024

+1 - I am struggling with a Select Picker and getAggregation("content") which resolves in a stale element reference in the second call. I can provide an example project if you need to see this issue in real life.

Edit: @vobu @dominikfeininger Attached you can see a failing sample project (german feature file, but should not be a problem).

Edit2: of course we also got a workaround - cleanup of the internal WDI5 control cache:
Object.keys(browser._controls).forEach(sKey => { if (browser._controls[sKey]._context) { delete browser._controls[sKey]; } });

Cheers, Bas
sample_wdi5.zip

from wdi5.

vobu avatar vobu commented on August 15, 2024

Edit2: of course we also got a workaround - cleanup of the internal WDI5 control cache:
Object.keys(browser._controls).forEach(sKey => { if (browser._controls[sKey]._context) { delete browser._controls[sKey]; } });

thanks for digging into this!
now that you (and @Lea-Zim 😄 ) have identified the issue, would you come fwd and PR this?!? now that would be rad ;)

from wdi5.

BeastiW avatar BeastiW commented on August 15, 2024

@vobu I had a quick look. The solution should be quite simple, you are calling asControl twice in WDI5.js (in _retrieveElements and _retrieveElement) - there the this._forceSelect Option should be inserted as there it is lost. #96

from wdi5.

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.