上一页 1 ··· 8 9 10 11 12 13 14 下一页
摘要: 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 狒狒桑 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 1. 定位工具 2. 层级关系 3. 上传代码 直接定位Windows元素,然后进行操作 备注:不同浏览器,一级窗口的标题可能不同,需要修改 阅读全文
posted @ 2022-04-02 18:35 狒狒桑 阅读(73) 评论(0) 推荐(0) 编辑
摘要: import timefrom selenium import webdriverfrom selenium.webdriver import ActionChains, Keysfrom selenium.webdriver.common.by import Byfrom selenium.web 阅读全文
posted @ 2022-04-02 15:38 狒狒桑 阅读(39) 评论(0) 推荐(0) 编辑
摘要: import timefrom selenium import webdriverfrom selenium.webdriver import ActionChains, Keysfrom selenium.webdriver.common.by import Byfrom selenium.web 阅读全文
posted @ 2022-04-02 15:36 狒狒桑 阅读(62) 评论(0) 推荐(0) 编辑
摘要: import timefrom selenium import webdriverfrom selenium.webdriver.common.by import Byfrom selenium.webdriver.support.wait import WebDriverWaitfrom sele 阅读全文
posted @ 2022-04-02 13:33 狒狒桑 阅读(179) 评论(0) 推荐(0) 编辑
摘要: from selenium import webdriverfrom selenium.webdriver.common.by import Byoption = webdriver.ChromeOptions()option.add_experimental_option('detach', Tr 阅读全文
posted @ 2022-04-02 11:59 狒狒桑 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 一、创建构建项目 二、配置项目 1. General 项目名称 (最好不要写中文) 描述 设置执行记录保存条数 2. 源码管理 None: 本地 Git: git目录 Subversion: sub目录 # 走SVN托管平台,拉取代码 到工作空间 其他的话,需要安装插件 3. 构建触发器 达到什么条 阅读全文
posted @ 2022-04-01 16:21 狒狒桑 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 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 狒狒桑 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 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 狒狒桑 阅读(35) 评论(0) 推荐(0) 编辑
摘要: import mysql.connectordb_config = { 'host': 'xxxx', 'user': 'xxx', 'password': 'xxx', 'port': '3306', 'database': 'xxxx'}# 创建一个数据库连接conn = mysql.conne 阅读全文
posted @ 2022-03-31 17:20 狒狒桑 阅读(12) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 下一页