Skip to content

【开源自荐】AutoMouser - 自动将鼠标操作转换为 Selenium 代码 #5809

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

Open
guoriyue opened this issue Dec 28, 2024 · 5 comments
Labels

Comments

@guoriyue
Copy link

guoriyue commented Dec 28, 2024

最近我在玩 Selenium 的时候,发现了一个问题:获取 XPath 和编写 Selenium 操作步骤需要重复做很多琐碎的工作。
为了简化这个过程,我开发了 AutoMouser——一个简单、开源的 Chrome 插件。
它可以记录点击、输入、滚动和窗口调整等操作,然后自动生成对应的 Python Selenium 脚本来完成同样的操作。
使用起来非常简单,只需要点击按钮开始录制,像平时一样正常操作,完成后再点击一次停止就可以得到操作的tracking和生成的 Selenium 代码了!

GitHub: [我的仓库链接]

期待大家的反馈和建议!

@guoriyue guoriyue changed the title 【开源自荐】自动将浏览器操作转换为 Selenium 测试代码 【开源自荐】AutoMouser - 自动将鼠标操作转换为 Selenium 代码 Dec 28, 2024
@ruanyf ruanyf added the weekly label Dec 30, 2024
@zhudaoruyi
Copy link

非常棒的想法,如果能把插件升级成可配置市面上大多数大模型 那就更好了

@Easonfei-han
Copy link

非常棒的插件,感谢制作者的分享。我在使用中发现发现只能生成tracking_log.json文件,而不能生成selenium_test.py文件。在停止录制时提示“No successCondition for last browserAction. Click OK to abort, CANCEL to continue”。希望制作者可以解答下

@guoriyue
Copy link
Author

guoriyue commented Jan 9, 2025

@Easonfei-han 您好非常感谢您的反馈!这个提示消息是可能最后的某个操作没有被记录上,已经已经更新了这则提示消息。No successCondition for last browserAction. Click OK to stop recording and generate Selenium code, CANCEL to continue recording

这个message只是说会少记录最后的操作,并不会影响代码生成,没有selenium_test.py可能是OPENAI KEY配置有问题。目前正在更新更多的模型和OPEN KEY出问题之后的warning

@Easonfei-han
Copy link

期待你的下次更新

@Mr-Li-alone
Copy link

Generating Code
Please wait while LLM processes your actions.. 看到這個提示之後沒有後續操作了,也無下載代碼文件的提示。 請問是自動下載在某個目錄了嗎,還是我的操作有失誤

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

No branches or pull requests

5 participants