# Playwright_and_Selenium_web_test **Repository Path**: hhhy0517/Playwright_and_Selenium_web_test ## Basic Information - **Project Name**: Playwright_and_Selenium_web_test - **Description**: 分别包括Playwright和Selenium的网页端自动化 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-08-25 - **Last Updated**: 2025-03-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 下载requirement的依赖 已经定位到xpath或者css selector但是还是不能操作dom 24.6.28 修改: 1、修改chromedriver版本,之前的不对应了。现在用126版本的 2、修改keyword的基本操作,加入@allure.step("input into"),完善报告的内容 3、重试机制:(1)pip install pytest-rerunfailures https://pypi.tuna.tsinghua.edu.cn/simple # rerunns是重启3次,rerunns-delay=3,间隔3秒重启 pytest.main([test_path, f'--alluredir={allure_result}', '--clean-alluredir', '--capture=tee-sys', '--reruns=3', '--reruns-delay=3']) 程序实验结果: INFO root:selenium_action.py:134 click element click:('css selector', 'button[type="submit"]') RERUN [100%] TestCase/test_upload_file.py::TestUploadFilePage::test_upload_file RERUN [100%] TestCase/test_upload_file.py::TestUploadFilePage::test_upload_file RERUN [100%] TestCase/test_upload_file.py::TestUploadFilePage::test_upload_file ------------------------------ live log teardown ------------------------------ INFO root:conftest.py:38 close driver=== FAILED [100%] 4、