http://www.r9it.com/20171106/puppeteer.html

Puppeteer 至少需要 Node v6.4.0,如要使用 async / await,只有 Node v7.6.0 或更高版本才支持

http://www.cnblogs.com/Stephending/p/4043263.html

http://webdriver.io/guide.html

http://webdriver.io/guide/testrunner/gettingstarted.html

Selenium is great for automated testing of web-apps and I’ve been using the Firefox extension Selenium IDE for a few months now.

For completeness of automated testing for web apps you need to do this in a number of different browsers which Selenium IDE doesn’t do. So you’ll need to download and install Selenium on your Mac.

You can follow my Java or Python instructions to get started and install Selenium on your Mac.

Download Chromedriver to your Mac

Head over to the Chromedriver Project page and download the latest package.

You then need to unzip the package and then copy the file to /usr/bin

This is a hidden system folder so the easy way to get to this file is

  1. Open another finder window
  2. From the Go menu select Go To Folder
  3. Type /usr/bin and press enter

Now drag n drop the Chromedriver file from your Download folder to this directory. You’ll be prompted for you Admin password.

Finally, I suggest you restart your computer  as the next step didn’t work when I tried it.

Basic Test Case for Chromedriver and Selenium

If you’ve already followed my guide to setup Selenium via Python then this will look familiar

Open a terminal window and type the following, pressing enter at the end of each line

python
from selenium import webdriver
driver = webdriver.Chrome()

After a few seconds, if all is well a new instance of Chrome will open

To finish the test just type

driver.get("http://www.damien.co")

To exit Python from your open Terminal, press ctrl+z

Tags: ChromedriverSeleniumtesting

最新文章

  1. 将 xunit.runner.dnx 的 xml 输出转换为 Nunit 格式
  2. linux 如何改变文件属性与权限
  3. 由Nullable模式想到的ToString的扩展
  4. hosts文件导致打不开某些网站
  5. Winform之SpreadSheetGear转DevExpress.XtraSpreadsheet.v13.2 z
  6. 网站加载有商务通、商桥,定义js函数触发快商通代码
  7. SecureCRT 绝佳配色方案
  8. Java-Poi 读取excel 数据
  9. 解决failed to push some refs to
  10. jquery实现上下滑动选择
  11. 如何节省 1TB 图片带宽?解密极致图像压缩
  12. POI一(介绍)
  13. :before和::before的区别
  14. sping框架纯注解配置
  15. 获取器操作都是针对数据而不是数据集的,要通过append()方法添加数据表不存在的字段
  16. 【scrapy】其他问题2
  17. Python开发【第三篇】:Python函数
  18. onsubmit return false仍提交表单
  19. tcp与http的区别
  20. [HNOI2004] 打砖块

热门文章

  1. c++ builder xe2 字符串转日期
  2. c++opencv项目移植到Android(Mat—》IplImage*)
  3. 用nw.js开发markdown编辑器-已完成功能介绍
  4. [容器]gcr.io镜像下载
  5. java中的参数传递——值传递、引用传递
  6. 12.extern(转)
  7. mvn test中文乱码处理
  8. PHP下载远程文件的3种方法以及性能考虑
  9. socket心跳检测
  10. Win10秘笈:两种方式修改网卡物理地址(MAC)