Selenium WebDriverJs commands

后端 未结 3 1126

I am running a combination of Node.js + Mocha + Selenium Webdriverjs for the first time. I setup everything according to their documentation here https://code.google.com/p/selen

3条回答
  •  抹茶落季
    2021-02-20 18:39

    I was looking through the source code as well. They have a compiled version of the API docs that is a bit easier to scan through here:

    http://selenium.googlecode.com/git/docs/api/javascript/module_selenium-webdriver.html

    Unfortunately, there is no summary with just the method names. You still have to scroll through the page.

    In terms of how to wait:

    webdriver = require 'selenium-webdriver'
    driver = ... // init your driver
    
    driver.wait(webdriver.until...)
    

提交回复
热议问题