node-mocha-selenium-testing:使用 Mocha(使用 Node.js)和 selenium 对 Google 搜索进行验收测试的示例

时间:2021-06-28 06:10:16
【文件属性】:
文件名称:node-mocha-selenium-testing:使用 Mocha(使用 Node.js)和 selenium 对 Google 搜索进行验收测试的示例
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-28 06:10:16
JavaScript 检出存储库 安装Selenium网络驱动程序 npm 安装 selenium-webdriver 下载 chrome 网络驱动程序并将其放置在同一目录中,或您路径中的某个位置 (为您的操作系统下载合适的,其他可用于其他网络浏览器) 安装摩卡 npm 安装摩卡 与 nyancat 一起运行: > node_modules/mocha/bin/mocha -R nyan test-google-search.js 在没有 nyancat 的情况下运行: > node_modules/mocha/bin/mocha test-google-search.js
【文件预览】:
node-mocha-selenium-testing-master
----page_driver.js(311B)
----test_webdriver.js(329B)
----README.md(540B)
----navigation.js(128B)
----page_objects()
--------googleSearchPage.js(514B)
----.gitignore(601B)
----test-google-search.js(1KB)

网友评论