摘要: 对象:(是一种引用类型的数据,存储在堆内存中) 对象是一组属性和方法/功能的集合 使用大括号{}创建空对象 属性名和属性值用冒号隔开 多组属性之间用逗号隔开 属性名中引号可加可不加,有特殊字符时必须加; 一、使用字面量创建对象 例1: 例2: 例3: 二、使用内置构造函数创建对象 例1: 例2: 三 阅读全文
posted @ 2019-10-25 15:54 Alieen617 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 1.firefox 47+selenium 3.13.0+geckodriver 0.15.0 2.chrome 63+selenium 3.13.0+ chromedriver 2.37 各chrome对应的driver下载地址:http://npm.taobao.org/mirrors/chro 阅读全文
posted @ 2019-10-25 12:04 Alieen617 阅读(624) 评论(0) 推荐(0) 编辑
摘要: 1.等价类 等价类分为有效等价类或无效等价类 有效等价类:合理的,有意义的数据; 无效等价类:不合理的,无意义的数据; 2.边界值 有效等价类的边界值 无效等价类的边界值 3.决策表 用途:识别含有逻辑条件的系统需求 每一列对应一个业务规则,该规则定义了各种条件的一个特定组合,以及这个规则相关联的执 阅读全文
posted @ 2019-10-25 12:03 Alieen617 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-10-25 12:02 Alieen617 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 一、在linux环境下安装siege sudo apt-get update && sudo apt-get upgrade --show-upgraded(更新系统可更新可不更新) sudo apt-get install 软件名 1、下载最新版本的siege wget http://downlo 阅读全文
posted @ 2019-10-25 12:01 Alieen617 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑