自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

fighting

加油

  • 博客(2)
  • 收藏
  • 关注

原创 Selenium 4.0 相对定位

相对定位分为五种类型:上、下、左、右、靠近。 以百度搜索为例,简单示例如下: from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.relative_locator import locate_with # 启动浏览器 driver = webdriver.Chrome() # 访问url driver.get('https://www.ba

2021-10-17 17:32:38 860

原创 Pytest中测试用例参数化时ids中文乱码处理

两种处理办法 1、在pytest.ini中添加: disable_test_id_escaping_and_forfeit_all_rights_to_community_support = True 2、在conftest.py中利用pytest提供的HOOK函数pytest_collection_modifyitems def pytest_collection_modifyitems(items): """ 测试用例收集完成时,将收集到的item的name和nodeid的中文显...

2021-10-12 12:15:13 1001

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除