Comments (4)
You can find a similar interface by using https://testing-library.com/docs/webdriverio-testing-library/intro/.
from webdriverio.
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.
@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.
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)
- [🐛 Bug]: "goog:chromeOptions" args and prefs are being ignored? HOT 3
- [🐛 Bug]: <Tough all the test cases of my spec files are passed it shows 1 spec failure in the console log> HOT 4
- [💡 Feature]: Allow skipping anywhere in test execution HOT 5
- @wdio/runner: Error: Cannot find module HOT 1
- ERROR @wdio/runner: Error: Cannot find typescript module imported from spec.ts HOT 1
- [📖 Docs]: v8.36.0 tag and GitHub release points to wrong commit, v8.36.1 release notes are wrong HOT 1
- [🐛 Bug]: isElementDisplayed returns incorrect result for elements with overflow-x/y: hidden and zero width/height HOT 3
- [📖 Docs]: Mocha third party UIs HOT 6
- [🐛 Bug]: `window.frameElement` always evaluating to `null` HOT 17
- [🐛 Bug]: Specifying browser version does not work when running in a Docker container HOT 1
- [🐛 Bug]: Incorrect Type Definition in suites Configuration Causes Compilation Error in VS Code HOT 3
- [🐛 Bug]: Issue with recording in Safari HOT 1
- [🐛 Bug]: Scrolling in Mobile Devices using WDIO is not working properly HOT 6
- [🐛 Bug]: WebdriverIO toMatchSnapshot does not fail tests on mocha test retries HOT 7
- [🐛 Bug]: `aria/` selector fails when selecting an input related to a label when there are multiple inputs in the document
- [💡 Feature]: Add certificate to Browserstack service config HOT 1
- [💡 Feature]: Modification of outbound network request props HOT 1
- [🐛 Bug]: Cannot add custom `scroll` element command HOT 3
- [🐛 Bug]: Internal TypeError when chaining from an index of a ChainableElementArray HOT 5
- [🐛 Bug]: await browser.acceptAlert() is not working HOT 2
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 webdriverio.