随笔 - 97  文章 - 0  评论 - 1  阅读 - 44157
12 2021 档案
Gitee上传代码基本使用
摘要:一、环境迁移 我们写的代码在其他电脑或者其他同事下载下来后总会有各种各样的问题,需要做一下环境迁移的步骤 打开cmd cd 到项目根目录 执行一下的命令 pip freeze >requirements.txt、命令执行后就会生成一个requirements的文件,里面会显示项目所需要的环境 生成依 阅读全文
posted @ 2021-12-28 11:39 peijiao 阅读(747) 评论(0) 推荐(0) 编辑
selenium3基于python语言基础操作之xpath属性定位+css属性定位
摘要:一、xpath 属性定位: 1、id: driver.find_element_by_xpath("//*[@id='kw']").send_keys("python") # 通过xpath id定位并写入python name: driver.find_element_by_xpath("//*[ 阅读全文
posted @ 2021-12-22 11:12 peijiao 阅读(408) 评论(0) 推荐(0) 编辑
selenium3基于python语言基础操作之webdriver
摘要:# coding:utf-8# 第一步导入webdriver模块from selenium import webdriver# 导入time模块import time# 第二步打开浏览器driver = webdriver.Chrome()# driver = webdriver.le le浏览器用 阅读全文
posted @ 2021-12-18 16:59 peijiao 阅读(185) 评论(0) 推荐(0) 编辑
pytest框架测试用例运行级别使用方法
摘要:# 针对整个.py文件(module 模块)只执行一次def setup_module(): print("整个module用例之前,只执行一次")def teardown_module(): print("整个module用例之后,只执行一次")def setup_function(): prin 阅读全文
posted @ 2021-12-01 10:33 peijiao 阅读(65) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示