You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
问题描述 / Describe the bug
在before_all_extend方法中使用sync_playwright()启用了浏览器,手动编写step,但在运行feature时报错It looks like you are using Playwright Sync API inside the asyncio loop.
2024-11-27 15:08:42,876 - flybirds_log - INFO - before_all_extend
2024-11-27 15:08:43,236 - flybirds_log - INFO - [web run] OnBefore run event!
2024-11-27 15:08:43,236 - flybirds_log - ERROR - Init browser has error! Error msg is:
2024-11-27 15:08:43,236 - flybirds_log - ERROR - It looks like you are using Playwright Sync API inside the asyncio loop.
Please use the Async API instead.
2024-11-27 15:08:43,237 - flybirds_log - INFO - global initialization error
2024-11-27 15:08:43,237 - flybirds_log - INFO - Traceback (most recent call last):
File "C:\Users\12077\miniconda3\envs\test3.10\lib\site-packages\flybirds\core\plugin/event\web_run.py", line 67, in run
OnBefore.init_ui_driver(context)
File "C:\Users\12077\miniconda3\envs\test3.10\lib\site-packages\flybirds\core\plugin/event\web_run.py", line 32, in init_ui_driver
play_wright, browser = ui_driver.init_driver()
TypeError: cannot unpack non-iterable NoneType object
The text was updated successfully, but these errors were encountered:
VencentMei
changed the title
在hook.py中before_all_extend方法中打开浏览器,如何使得在运行每个feature时使用此浏览器,而不是另外启动一个浏览器
在hook.py中before_all_extend方法中启动浏览器,在运行feature时遇到了同步异步的问题
Nov 27, 2024
问题描述 / Describe the bug
在before_all_extend方法中使用sync_playwright()启用了浏览器,手动编写step,但在运行feature时报错
It looks like you are using Playwright Sync API inside the asyncio loop.
问题复现步骤 / To Reproduce
源码:
hook.py文件
steps.py
test_baidu.feature
报错
The text was updated successfully, but these errors were encountered: