logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

【Selenium】pytest+allure实现失败截图

文章目录1 准备2 基础方法3 使用钩子函数1 准备安装python安装pytest:pip install pytest安装allure-pytest:pip install allure-pytest安装allure的命令行工具:https://docs.qameta.io/allure/#_installing_a_commandline安装完成后记得配环境变量,校验如下:安装pycharm

#selenium
【Selenium】切换/窗口切换

文章目录1 frame切换1.1 切换到frame1.2 切回原来的主html1.3 示例2 窗口切换2.1 切换新窗口2.2 切回原来的窗口2.3 示例1 frame切换1.1 切换到framewd.switch_to.frame(frame_reference)其中,frame_reference可以是:frame元素的Id属性frame元素的name属性frame对应的WebElement对

#selenium
【Selenium】弹出框处理

文章目录1 Alert(警告信息)1 Alert(警告信息)Alert弹出框,目的就是显示通知信息,只需用户看完信息后,点击OK(确定)就可以了。selenium提供如下方法进行操作:# 点击OK(确定)按钮wd.switch_to.alert.accept()# 获取弹出框的信息内容wd.switch_to.alert.text注意:如果我们不去点击它,页面的其它元素是不能操作的。@...

#selenium
Jenkins安装教程

文章目录1 下载安装包2 Jenkins安装1 下载安装包下载地址:https://www.jenkins.io/,仅下载war包,如下图:下载成功后,将war包文件放入对应的目录(这里我放入了C:\Users\zhangweigong\Jenkins)。2 Jenkins安装...

暂无文章信息