TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: PyPI package for using Testing Library queries in Selenium code

2 点作者 Smotko超过 2 年前
Hello!<p>I have built a small Python package that allows you to call Testing Library DOM queries such as `getByRole` or `findAllByText` from Selenium code.<p>My goal was to allow automation engineers to write Selenium tests that closely resemble how your web pages are used. In other words less XPath selectors and more queries that are accessible to everyone! Since this is one of the guiding principles of the Testing Library[0] it felt valuable to make it available in Python land as well.<p>Let me know what you think!<p>[0] <a href="https:&#x2F;&#x2F;testing-library.com&#x2F;docs&#x2F;guiding-principles" rel="nofollow">https:&#x2F;&#x2F;testing-library.com&#x2F;docs&#x2F;guiding-principles</a>

暂无评论

暂无评论