多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
~~~ @allure.severity(allure.severity_level.MINOR) @allure.story('登录失败-用户不存在') def test_loginerror3(self): d = webdriver.Chrome() d.maximize_window() d.get('https://admin-test.tianxiayouyue.com/#/login') d.find_element(By.CLASS_NAME, "ant-input").send_keys('15118845721') d.find_element(By.CLASS_NAME, 'ant-btn-link').click() sleep(1) tost_element = WebDriverWait(d, 5).until(lambda x: d.find_element(By.CLASS_NAME, 'ant-message-error')).text print(tost_element) assert '用户不存在' in tost_element d.close() d.quit() ~~~