Code Monkey home page Code Monkey logo

Comments (4)

stevegibson avatar stevegibson commented on May 23, 2024

You can find a similar interface by using https://testing-library.com/docs/webdriverio-testing-library/intro/.

from webdriverio.

christian-bromann avatar christian-bromann commented on May 23, 2024

Do these query functions require a differentiation between: fetch 1 single element and fetch multiple elements?

How should user access these interfaces? You example currently has no indication for this. Do people import it from webdriverio, e.g. import { getByRole } from 'webdriverio'. I would personally not prefer this approach and rather connect it somehow to our already existing primitives, e.g. $ and $$. Something I could imagine would be attaching these functions to the function object, e.g. $.byRole('button') and $$.byRole('button'). Wdyt?

from webdriverio.

erwinheitzman avatar erwinheitzman commented on May 23, 2024

@stevegibson This was already mentioned in the description regarding familiarity (PW = Playwright and TL = Testing Library)

@christian-bromann adding it to the browser or $ (and $$) primitives seems fine to me 👍

from webdriverio.

christian-bromann avatar christian-bromann commented on May 23, 2024

Do these query functions require a differentiation between: fetch 1 single element and fetch multiple elements?

@erwinheitzman thoughts?

adding it to the browser or $ (and $$) primitives seems fine to me 👍

Not to browser, just to $ and $$ (latter depends on your answer for question above). I think we could do this for all selectors we have.

from webdriverio.

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.