browser-use
browser-use copied to clipboard
[Question]How to integrate with pytest
From sample, I did't find any demo about how to intergrate with pytest.
I want like following:
- setup: setup Broswer() and a agent about open a url
- testcase1: agent2 (use setup broswer), do some test, last using pytest's assert to verfication case
- testcase2: same as testcase1
- ....
- finally, can work with allure report attach playwright record video.
I am also looking for the answer.
I understand that this issue was first and was, therefore inherently not a duplicate at the time, but I am closing it in favor of #219 by @MagMueller as it is more detailed/actionable and provides opportunities to the community to receive API credits for contributing, so I think it has a better chance of resulting in a PR that addresses this. If you disagree feel free to reach out via the Discord server or open an issue :) Thank you for raising this issue.