09 2023 档案
摘要:python做接口自动化: Python+requests+pytest+yml+allure+jenkins python做web ui自动化: Python+selenium4+pytest+POM+jenkins POM: 是指 Page Object Module设计模式
阅读全文
摘要:参考: https://blog.csdn.net/qq_45664055/article/details/132371769 # Enable selenium download function chrome_options = webdriver.ChromeOptions()#Use chr
阅读全文
摘要:selenium是没有办法直接获取请求的详细Headers,很多时候我们我们是需要提取相关的参数来做进一步使用比如token之类的 这里推荐使用一个SeleniumWire模块来达到目的 Selenium-wire模块: 安装: pip install selenium-wire Selenium
阅读全文
摘要:前言 selenium的webdriver本身没有api能做这个事情,详见issue。 国内的博客全抄来抄去,说selenium直接加add_argument参数就好了,弄得找了好几天找代码问题,上外网查秒解决。所以要学好计算机还是得英文呐~~ 我用requests登录后,获取到了认证信息,但是接下
阅读全文
摘要:https://www.cnblogs.com/Nephalem-262667641/p/17330223.html pytest 的前置与后置处理 Pytest贴心的提供了类似setup、teardown的方法,并且还超过四个,一共有十种 模块级别:setup_module、teardown_mo
阅读全文
摘要:下面是关于python中*的用法详解 1. *做法乘法运算符 在python中,*作为乘法运算符是使用,用来进行两个数的乘法运算。示例代码: a=3 b=4 c=a*b print(c) #12 2.*作为 函数的可变参数(是元组的形式导入) 单星号(*):*args。将所有参数以元组(tuple)
阅读全文
摘要:1.驱动安装 1.1自动安装(适用于 外网可以访问的场景) import time from selenium import webdriver from selenium.webdriver.chrome.service import Service from webdriver_manager.
阅读全文
摘要:in terms of 根据;用…的话;就…而言;以…为单位 1.In terms of quantity, production grew faster than ever before. 从数量上看,产量增长的速度比以往任何时期都要快。 2.He stood out in terms of co
阅读全文