Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stigkj/ghostdriver_reproduction_of_isshown_bug


https://github.com/stigkj/ghostdriver_reproduction_of_isshown_bug

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

Reproduce error in get_text.isShown(...)
========================================

This will reproduce the error reported in [ghostdriver (#254)](https://github.com/detro/ghostdriver/issues/254) for version 1.0.4.

Setup
-----

**Prerequisites:**

* *Ruby >= 1.9*
* *Groovy >= 1.8*

**Install Ruby dependencies**

bundle install

Run it
------

1. Start the web server listening on default port 4567

bundle exec ./web_server.rb

2. Run phantomjs in webdriver mode listening on default port 8910,
either with the embedded ghostdriver or using an external version
* `phantomjs --webdriver=8910`
* `phantomjs `

3. Run the driver groovy script

groovy drive_phantomjs.groovy

When successful, the driver script should print the text 'should return this' on the console.

NB! The driver script should download dependencies by it self, courtesy of Groovy's Grape.
If this does not work, try to clear your local Maven repository.