上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 20 下一页
摘要: 需要用到(循环控制器)和(__counter)函数助手 阅读全文
posted @ 2022-03-16 19:42 博无止境 阅读(656) 评论(0) 推荐(0) 编辑
摘要: 1. “isdigit” 函数,判断字符串中是否全部为“数字”。 如果字符串中有一个不是数字, 则为False strs = "123" if strs.isdigit(): print("是数字") else: print("不是数字") 运行结果: >>>是数字 2. 判断字符串中是否包含“数字 阅读全文
posted @ 2022-03-09 18:29 博无止境 阅读(10707) 评论(0) 推荐(0) 编辑
摘要: # 将元组中的None值去掉,并转换为list input_= [('接口自动化测试用例', None, None, None, None, None, None)] output = [] for each in input_: newList = list(filter(None,each)) 阅读全文
posted @ 2022-03-09 17:40 博无止境 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 1. 启动手机模式浏览器, 手机型号只能选以下范围。 from selenium.webdriver.chrome.options import Options# 手机模式 # 设置手机型号,这设置为iPhone 6 mobile_emulation = {"deviceName": "iPhone 阅读全文
posted @ 2022-03-09 11:42 博无止境 阅读(1819) 评论(0) 推荐(0) 编辑
摘要: # 导入需要查看的模块 from browsermobproxy import server # 打印库文件位置 print(server.__file__) 阅读全文
posted @ 2022-02-17 10:05 博无止境 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 用最简单的话术,描述最难理解的问题。 【原理】: 用简单的话来说就是python操作appnium,appnium操控android SDK,android SDK通过命令操控手机,就实现了app自动化 第一步:搭建python环境。(python自动化脚本) 这个就很简单了,安装好python环境 阅读全文
posted @ 2022-01-07 18:09 博无止境 阅读(5028) 评论(0) 推荐(1) 编辑
摘要: 获取当前时间: localtime = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) print(localtime) #打印: 2022-01-04 19:44:47 进程已结束,退出代码为 0 获取当前时间戳:如果想让小数点后移,则*1 阅读全文
posted @ 2022-01-04 19:48 博无止境 阅读(1777) 评论(0) 推荐(0) 编辑
摘要: 如图乱码, 有两个原因: 原因一:没有配置pycharm变量。 解决方法:将pycharm的bin目录配置到path系统变量中。 原因二:没有配置allure变量。 解决方法:将allure的bin目录配置到path系统变量中。 阅读全文
posted @ 2021-12-07 10:21 博无止境 阅读(675) 评论(0) 推荐(0) 编辑
摘要: 里面附有安装与破解方法: 百度网盘链接:https://pan.baidu.com/s/1m4WjcUHCIFJccR1fq9VSBA 提取码:9t7o 阅读全文
posted @ 2021-12-01 11:35 博无止境 阅读(331) 评论(0) 推荐(1) 编辑
摘要: 1. 你先测试一下使用其它浏览器打开网页,查看是不是也是网速慢,如果是,估计就是下面这种情况了 阅读全文
posted @ 2021-11-30 11:22 博无止境 阅读(878) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 20 下一页