cypress的安装使用

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.0icon-default.png?t=N7T8https://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 ---忽略证书验证

相关推荐

  1. Cypress:一款强大前端测试工具

    2024-05-16 08:50:19       50 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-05-16 08:50:19       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-05-16 08:50:19       101 阅读
  3. 在Django里面运行非项目文件

    2024-05-16 08:50:19       82 阅读
  4. Python语言-面向对象

    2024-05-16 08:50:19       91 阅读

热门阅读

  1. 如何发布与删除npm包

    2024-05-16 08:50:19       36 阅读
  2. python 抓取文档后如何存档的问题

    2024-05-16 08:50:19       29 阅读
  3. 项目-坦克大战

    2024-05-16 08:50:19       29 阅读
  4. Android SDK Setup如何使用

    2024-05-16 08:50:19       26 阅读
  5. 如何把一张图片分割为网页布局

    2024-05-16 08:50:19       30 阅读
  6. Linux mkdir命令参数和选项

    2024-05-16 08:50:19       36 阅读
  7. 基于图扩散嵌入网络的数据表示与学习 笔记

    2024-05-16 08:50:19       37 阅读
  8. 【无标题】

    2024-05-16 08:50:19       32 阅读
  9. leetcode hot100_part28_图论

    2024-05-16 08:50:19       36 阅读
  10. 基于C++和OpenCv对视频进行抽帧

    2024-05-16 08:50:19       33 阅读