zoukankan      html  css  js  c++  java
  • puppeteer,webdriverio, chrome webdriver

    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: 

  • 相关阅读:
    QNET弱网测试工具
    echart
    数组按照一大一小打乱排列
    根据环境开启 vconsole
    时间戳在ios上面显示NAN Bug
    去除字符串中html标签
    ios 上 复选框背景黑边bug
    echarts配置项说明
    JS 数据处理技巧及小算法
    js中最常用的几种遍历数据方法
  • 原文地址:https://www.cnblogs.com/SZLLQ2000/p/5438969.html
Copyright © 2011-2022 走看看