selenium-standalone-painful

所属分类:前端开发
开发工具:JavaScript
文件大小:4KB
下载次数:0
上传日期:2014-09-04 11:38:17
上 传 者sh-1993
说明:  类似于selenium单机版,但具有编程API
(Like selenium-standalone but with programmatic API)

文件列表:
LICENSE (1072, 2014-09-04)
bin (0, 2014-09-04)
bin\start-selenium (52, 2014-09-04)
conf.js (411, 2014-09-04)
index.js (536, 2014-09-04)
install.js (2485, 2014-09-04)
package.json (598, 2014-09-04)
test.js (376, 2014-09-04)

# selenium-standalone-painful This is a fork of [vvo/selenium-standalone](https://github.com/vvo/selenium-standalone) Intalls a `start-selenium` command line starting a selenium standalone server along with the chromedriver. Currently installs selenium `2.37.0` and chrome driver `2.6`. ```shell npm install selenium-standalone-painful -g start-selenium ``` ## Example: launch www.google.com Using a selenium driver like [wd](https://github.com/admc/wd): ```shell npm install wd -g wd shell (wd): browser = wd.remote(); browser.init(function(){browser.get('http://www.google.com')}) ``` ## Programmatic use ``` var selenium = require('selenium-standalone-painful'); var spawnOptions = { stdio: 'pipe' }; var server = selenium.start(spawnOptions); server.stdout.on('data', function(output) { console.log(output); }); ``` `selenium-standalone` versions maps `selenium` versions.

近期下载者

相关文件


收藏者