上一页 1 ··· 7 8 9 10 11 12 13 14 下一页
摘要: 1. 启动浏览器 driver = webdriver.Firefox() 2. 通过get方法访问目标url driver.get("http://www.baidu.com") 3. 刷新当前网页 self.driver.refresh() 4. 当前窗口最大化 self.driver.maxi 阅读全文
posted @ 2019-10-25 12:00 Alieen617 阅读(99) 评论(0) 推荐(0) 编辑
摘要: * 导包: selenium.webdriver.support.expected_conditions as EC 1> alert_is_present() //判断页面是否出现alert弹窗 ey: wait = WebDriverWait(driver,10) # 打印alert框的信息 w 阅读全文
posted @ 2019-10-25 11:59 Alieen617 阅读(172) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- from selenium import webdriver from time import sleep # 定义配置对象 options = webdriver.ChromeOptions() # 设置为 0 禁止弹出窗口 设置下载路径 prefs 阅读全文
posted @ 2019-10-25 11:58 Alieen617 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 方案一:使用JS remove readonly attribute,然后sendKeys 方案二:采用click直接选择日期,日期控件是一个iframe,首先switch iframe,之后找到想要设置的日期button click,然后switch出来 1.定位日期选择框; 2.选择具体日期; 阅读全文
posted @ 2019-10-25 11:57 Alieen617 阅读(127) 评论(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 阅读(157) 评论(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 阅读(75) 评论(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 阅读(279) 评论(0) 推荐(0) 编辑
摘要: html语法基础 注释的快捷键: ctrl+/ <!--注释:1、注释不可以嵌套注释 2、注释不可以写在标签中--> HTML文档的构成 1、文档类型的声明 2、网页的基本结构 <!DOCTYPE html><!-- 网页开头和结束 --><html><!-- 网页头部内容 --><head> <t 阅读全文
posted @ 2019-10-24 18:17 Alieen617 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 创建普通函数(分为系统) 语法: 例1: 例2: 例3: 创建带有参数的函数 例1: 例2: 例3: 例4: 创建带有返回值的函数 例1 例2: 例3: 例4:(三目运算符也可以实现) 例5: 例6: 函数_变量的作用域 作用域分为两种:全局作用域和局部作用域 在函数中使用var申明的变量是局部变量 阅读全文
posted @ 2019-10-24 13:54 Alieen617 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 一、if语句 例1: 例2: 例3: // 逻辑短路的写法(username = 'root' && password='123456')&& console.log('success') 例4: // 在if语句的条件表达式中,有一些值默认为false 0 NaN underdined null 阅读全文
posted @ 2019-10-18 18:33 Alieen617 阅读(271) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 下一页