Skip to content
This repository has been archived by the owner on Nov 24, 2018. It is now read-only.

Feature request: api for DOM selectors using css #160

Open
FabioAntunes opened this issue Aug 3, 2017 · 0 comments
Open

Feature request: api for DOM selectors using css #160

FabioAntunes opened this issue Aug 3, 2017 · 0 comments

Comments

@FabioAntunes
Copy link
Contributor

I have been testing E2E tools this week and I was quite excited when I discovered this project.

Just my two cents, I don't know if any of you guys know about TestCafe, but they have a very cool way to create selectors for DOM nodes.

import { Selector } from 'testcafe';

// A selector is created from a CSS selector string.
const submitButton = Selector('#submit-button');

then you can just use that on your tests:

.wait(submitButton)
.click(submitButton)

But the beauty of that API is that you can create plugins around that. They also managed to create another tool around the selectors a plugin for React

const myDiv = ReactSelector('TodoApp div');

I guess this would solve a lot of requests similar to
#134

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants