cypress
npm install -g cnpm --registry=https://registry.npm.taobao.org
cypress的启动打开
npx cypress open
js函数的回调
function print(string,callback){
console.log(string)
callback()
}
print("a",function(){
print("b",function(){
console.log("123")
})
})
print("a",()=>{
print("b",()=>{
console.log("456")
})
})
cypress的浏览器导航
cypress的官网文档
Changelog | Cypress Documentation13.9.0https://docs.cypress.io/guides/references/changelog#13-8-1
npm install cypress@13.8.1 --save
元素的输入操作
npm config set prefix "D:\node\node_global" ---<!--配置全局安装目录-->
npm config set cache "D:\node\node_cache" ---<!--配置缓存目录-->
npm config set registry https://registry.npm.taobao.org ---npm地址修改为淘宝镜像
npm config set strict-ssl false ---忽略证书验证