摘要:获取DOM元素基本方式 .find(selector) 搜索定位元素 .get(selector) 搜索定位元素 .contains(selector) 搜索定位元素 .children() 方法用来获取DON元素的子元素 .parents() 用来获取DOM元素的所有父元素 .parent() 用
阅读全文
摘要:///<reference types = 'cypress' /> 声明之后提示找不到cypress 卸载cypress重新安装正常,如果还不正确,卸载node重新安装
阅读全文
摘要:1.内置测试报告 npx cypress run --reporter=spec 2.指定运行用例 npx cypress run --reporter=spec --spec cypress\integration\cypress-study\web\page\should_demo.spec.j
阅读全文
摘要:查看cypress的缓存位置 PS D:\ema_cypress> npx cypress cache path C:\Users\antony\AppData\Local\Cypress\Cache node运行js文件时报错 node 01.js 直接找到C:\Users\antony\AppD
阅读全文
摘要:\1. ~ + 版本号:例如 "tslint": "~5.11.0", 表示安装5.11.x的最新版本(不低于5.11.0), 但是不安装5.12.x,也就是说安装时不会改变大版本号和次要版本号; \2. ^ + 版本号:例如 "tslint": "5.11.0", 表示安装5.11.0及以上的版本
阅读全文
摘要:cypress安装方案一: cypress 环境搭建下载nodejs并安装 http://nodejs.cn/download/检查node安装情况: node -v 查看npm安装情况: npm -v创建项目cypress_dem 执行命令初始化项目: npm init项目目录下安装指定版本的cy
阅读全文
摘要:处理方法一: 更新 npm 版本:npm install -g npm 使用淘宝镜像重新安装依赖:npm install --registry=https://registry.npm.taobao.org npm install -g cnpm --registry=https://registr
阅读全文
摘要:{ "baseUrl": "https://xxx.com.cn/", "defaultCommandTimeout": 10000, "execTimeout": 80000, "taskTimeout": 80000, "pageLoadTimeoutpage": 80000, "requesT
阅读全文
摘要:1.速度快、效率高2.运行案例因环境问题失败少3.自集成,运行在浏览器之内,控制力强4.错误支持视频自动录制,入门简单,支持JavaScript5.底层协议不同,其他工具运行浏览器之外,速度慢6.同时集成API和UI,不需要编写过多代码7.安装完即可开始写测试用例,不需要安装许多额外库,环境搭建比较
阅读全文
摘要:**Message:** EEXIST: file already exists, mkdir 'C:\Users\antony\node_modules\.bin\cypress' **Stack trace:**```Error: EEXIST: file already exists, mkd
阅读全文
摘要:①安装Node.js,在官网(https://nodejs.org/en/)下载Node.js并双击安装 ②配置环境变量(安装时自动配置),把node.exe所在目录加入PATH环境变量中,然后在命令行先后输入: node --version npm --version ③执行npm init命令生
阅读全文