摘要:
# -*- coding: utf-8 -*- from selenium import webdriver from time import sleep # 定义配置对象 options = webdriver.ChromeOptions() # 设置为 0 禁止弹出窗口 设置下载路径 prefs 阅读全文
posted @ 2019-10-25 11:58
Alieen617
阅读(417)
评论(0)
推荐(0)
摘要:
方案一:使用JS remove readonly attribute,然后sendKeys 方案二:采用click直接选择日期,日期控件是一个iframe,首先switch iframe,之后找到想要设置的日期button click,然后switch出来 1.定位日期选择框; 2.选择具体日期; 阅读全文
posted @ 2019-10-25 11:57
Alieen617
阅读(132)
评论(0)
推荐(0)
摘要:
# 获取邮件正文编辑区域的iframe页面元素对象iframe = self.driver.find_element_by_xpath('//iframe[contains(@id,"ueditor_0")]') # 通过switch_to_frame()方法切换进富文本框中self.driver. 阅读全文
posted @ 2019-10-25 11:56
Alieen617
阅读(161)
评论(0)
推荐(0)
摘要:
1.撤销上一次提交并将暂存区文件从新提交 git commit -- amend 2.取消全部操作 git checkout -- . 3.查看当前是否有改变的文件 git status 4. 将工作区文件添加到暂存区 git add . 5.再次查看文件状态 git status 6.提交 git 阅读全文
posted @ 2019-10-25 11:55
Alieen617
阅读(81)
评论(0)
推荐(0)
摘要:
1、下载git 地址: https://git-scm.com/ 2、安装 3、查看是否安装成功,命令: git version 返回结果:git version 2.15.1 (Apple Git-101) 4、本地电脑关联到github 1)注册github: https://github.co 阅读全文
posted @ 2019-10-25 11:54
Alieen617
阅读(307)
评论(0)
推荐(0)