CentOS7.6 上执行 UI 自动化测试用例

本贴最后更新于 629 天前,其中的信息可能已经时移俗易

一、CentOS7.6 安装 Chrome(谷歌)浏览器

二、安装对应版本号的 chromedriver.exe

cd /opt/
wget https://registry.npmmirror.com/-/binary/chromedriver/103.0.5060.53/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
mv chromedriver /usr/bin/
chmod +x /usr/bin/chromedriver

三、Python 安装所需要依赖的包

pip3 install pytest
pip3 install selenium

四、执行 UI 自动化测试用例

注意:因为 chromedriver 默认弹窗,需要设置不弹窗!!!

image.png

回帖
请输入回帖内容 ...