I don't get why people still use XPaths, CSS selectors or HTML IDs to identify elements, even when they are "recorded". Please please please just use my https://github.com/mherrmann/selenium-python-helium instead. It makes so much more sense.
Why wouldn't you use CSS selectors? They are unambiguous, concise and most importantly, a standard. They should be the conventional way to refer to elements.
Show HN: Autotab – An AI-powered Chrome extension to create Selenium scripts
21–30 of 131 posts
Re: Show HN: Autotab – An AI-powered Chrome extension to create Selenium scripts
#22I don't get why people still use XPaths, CSS selectors or HTML IDs to identify elements, even when they are "recorded". Please please please just use my https://github.com/mherrmann/selenium-python-helium instead. It makes so much more sense.
Playwright is another, really good alternative
Re: Show HN: Autotab – An AI-powered Chrome extension to create Selenium scripts
#23Related: https://playwright.dev/ has a built-in code generator. In *my opinion*, it's also more pleasant to work with than Selenium.
Re: Show HN: Autotab – An AI-powered Chrome extension to create Selenium scripts
#24Earlier quoted context omitted.
Why wouldn't you use CSS selectors? They are unambiguous, concise and most importantly, a standard. They should be the conventional way to refer to elements.
> and most importantly, a standard. A standard for what, exactly? Selecting HTML elements? You could say the same about XPath. Both are implementation details tightly coupled to the code instead of being driven by the “human” elements of the UI, such as the visible text, labels, etc.
Re: Show HN: Autotab – An AI-powered Chrome extension to create Selenium scripts
#25Selenium project creator here... Very cool! I totally expect testing to be one of the killer apps for AI. And this is an easy way to get there. How do you ensure the AI isn't hallucinating any details in the generated code?
Right now we have the basic sanity check that the Selenium xpath selects exactly one element in the DOM. Going forward I think the best way to do this is to have a live preview where you can see the mirrored browser copy your last action and debug if it errors or isn't what you wanted.
Re: Show HN: Autotab – An AI-powered Chrome extension to create Selenium scripts
#26Curious which part of this uses AI. Doesnt it just track mouse / keyboard events across the session?
AI looks to be involved in creating element selectors.
Re: Show HN: Autotab – An AI-powered Chrome extension to create Selenium scripts
#27What distinguishes this from UI.Vision's ( https://ui.vision/ ) session recorder?
Re: Show HN: Autotab – An AI-powered Chrome extension to create Selenium scripts
#28I don't get why people still use XPaths, CSS selectors or HTML IDs to identify elements, even when they are "recorded". Please please please just use my https://github.com/mherrmann/selenium-python-helium instead. It makes so much more sense.
Re: Show HN: Autotab – An AI-powered Chrome extension to create Selenium scripts
#29Earlier quoted context omitted.
AI looks to be involved in creating element selectors.
Selectors have been our primary focus so far – they're notoriously finicky! Our roadmap includes more extensive use of AI, both as embedded intelligence, and in the code generation process. For example, one thing we've heard from heavy users of browser automation is that maintenance becomes the largest cost. Self-healing automations will be able to either fix themselves, our give you an alert with a suggested fix to…
Re: Show HN: Autotab – An AI-powered Chrome extension to create Selenium scripts
#30I don't get why people still use XPaths, CSS selectors or HTML IDs to identify elements, even when they are "recorded". Please please please just use my https://github.com/mherrmann/selenium-python-helium instead. It makes so much more sense.