会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
bigcoolcool
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
8
9
10
11
12
13
14
下一页
2022年4月3日
python-selenium3-定位不到script以后的HTML元素
摘要: 1. 如图的元素通过selenium3 By.XPATH定位不到 解决方法: 用selenium2的定位方法在body里面找 self.driver.find_element(By.TAG_NAME, "body").find_elements_by_link_text("创建成功!")
阅读全文
posted @ 2022-04-03 15:35 狒狒桑
阅读(82)
评论(0)
推荐(0)
2022年4月2日
python-Chrome文件上传
摘要: 1. 定位工具 2. 层级关系 3. 上传代码 直接定位Windows元素,然后进行操作 备注:不同浏览器,一级窗口的标题可能不同,需要修改
阅读全文
posted @ 2022-04-02 18:35 狒狒桑
阅读(84)
评论(0)
推荐(0)
python-selenium鼠标(AcitonChains)、键盘(Keys)、Select类
摘要: import timefrom selenium import webdriverfrom selenium.webdriver import ActionChains, Keysfrom selenium.webdriver.common.by import Byfrom selenium.web
阅读全文
posted @ 2022-04-02 15:38 狒狒桑
阅读(63)
评论(0)
推荐(0)
python-selenium js滚动、元素属性操作
摘要: import timefrom selenium import webdriverfrom selenium.webdriver import ActionChains, Keysfrom selenium.webdriver.common.by import Byfrom selenium.web
阅读全文
posted @ 2022-04-02 15:36 狒狒桑
阅读(80)
评论(0)
推荐(0)
python-selenium-等待、iframe、window、alert处理
摘要: import timefrom selenium import webdriverfrom selenium.webdriver.common.by import Byfrom selenium.webdriver.support.wait import WebDriverWaitfrom sele
阅读全文
posted @ 2022-04-02 13:33 狒狒桑
阅读(205)
评论(0)
推荐(0)
python-selenium-浏览器操作、元素定位
摘要: from selenium import webdriverfrom selenium.webdriver.common.by import Byoption = webdriver.ChromeOptions()option.add_experimental_option('detach', Tr
阅读全文
posted @ 2022-04-02 11:59 狒狒桑
阅读(122)
评论(0)
推荐(0)
2022年4月1日
python-Jenkins
摘要: 一、创建构建项目 二、配置项目 1. General 项目名称 (最好不要写中文) 描述 设置执行记录保存条数 2. 源码管理 None: 本地 Git: git目录 Subversion: sub目录 # 走SVN托管平台,拉取代码 到工作空间 其他的话,需要安装插件 3. 构建触发器 达到什么条
阅读全文
posted @ 2022-04-01 16:21 狒狒桑
阅读(232)
评论(0)
推荐(0)
python-正则表达式
摘要: import res = 'www.ddd.www.com' # 目标字符串res = re.match('(w)(ww)',s) #全匹配 头部匹配print(res.group(1)) # group() 拿到匹配的全字符 分组 根据正则里面的()分组s = 'helloworldhaha' #
阅读全文
posted @ 2022-04-01 15:01 狒狒桑
阅读(29)
评论(0)
推荐(0)
python-email
摘要: import osimport smtplibfrom email.mime.image import MIMEImagefrom email.mime.multipart import MIMEMultipartfrom email.mime.text import MIMETextfrom em
阅读全文
posted @ 2022-04-01 12:07 狒狒桑
阅读(44)
评论(0)
推荐(0)
2022年3月31日
python-mysql
摘要: import mysql.connectordb_config = { 'host': 'xxxx', 'user': 'xxx', 'password': 'xxx', 'port': '3306', 'database': 'xxxx'}# 创建一个数据库连接conn = mysql.conne
阅读全文
posted @ 2022-03-31 17:20 狒狒桑
阅读(24)
评论(0)
推荐(0)
上一页
1
···
8
9
10
11
12
13
14
下一页
公告