Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Chrome Extension #66

Open
alturkovic opened this issue Jun 11, 2021 · 9 comments
Open

[Feature Request]: Chrome Extension #66

alturkovic opened this issue Jun 11, 2021 · 9 comments

Comments

@alturkovic
Copy link

Any plans to make a Chrome Extension?
Something like @desmondw snowflake would be very useful.
Great job btw!

@reicolina
Copy link

I wouldn't mind volunteering to work on the extension if that's something that would benefit the community (a realistic use case) @fczbkk, any thoughts?

@fczbkk
Copy link
Owner

fczbkk commented Oct 3, 2021

What should the extension do?

@reicolina
Copy link

If it is anything like https://github.com/desmondw/snowflake then I would imagine that the CSS selector will be copied to the clipboard when the user clicks on an element while the extension is turned on.

@alturkovic, any comments?

@alturkovic
Copy link
Author

If it is anything like https://github.com/desmondw/snowflake then I would imagine that the CSS selector will be copied to the clipboard when the user clicks on an element while the extension is turned on.

@alturkovic, any comments?

Exactly what I was thinking about, thanks for clarifying 😄

@fczbkk
Copy link
Owner

fczbkk commented Oct 4, 2021

Yeah, ok. I should have been more specific. Let me explain:

  • What would be a use case?
  • Who would be a target audience?

For example, if the target audience is non-technical users, who for some reason need to generate CSS selector, then it should work exactly as Snowflake. No options, no complicated UI, just click somewhere and the selector for topmost clicked element is copied to clipboard. But this does not make sense to me, because I can't think of a reason why would non-technical user need an extension for that.

Then there are users at the opposite end of the technical spectrum. Developers who need to select specific element and have access to selector generator options. Such tool should probably integrated into the browser's developer tools. That would make the extension complicated, with lots of UI elements. Is it worth to create and upkeep such a complex project? How many people would really use such tool? Wouldn't it be easier for these highly technical people to just copy/past the library into console and then use getCssSelector($0)?

Or is it for the users somewhere in between? What would be the ideal level of complexity and UI for them and their use case?

So... what should the extension do?

@alturkovic
Copy link
Author

My target audience are people who are not very technically proficient but are still somewhat technical. They are a support team that needs to frequently configure CSS selectors for our product. They usually need to do exactly what you said, open the inspector and find the element they need to setup, but it is usually very long and very specific and error-prone.

Having a Chrome extension that they can use to click on an element and get the shortest CSS selector would make our product more resilient to change. It would also reduce the manual corrections they usually need to do because their selectors are frequently too specific.

WDYT?

@marktamis
Copy link

The main user case i would say is to rapidly find unique selectors for ui test automation, such as for selenium, puppeteer, playwright etc

@fczbkk
Copy link
Owner

fczbkk commented Nov 3, 2021

Progress update: I created a prototype. It seems to be working fine. Now I need to add some usable UI for this.

css-selector-generator-extension-preview mov

@alturkovic
Copy link
Author

Did you make any further progress on this?

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

No branches or pull requests

4 participants