Public Notes
on
histre
Server side rendering for dynamic pages with PhantomJS on Ruby On Rails - Stack Overflow
stackoverflow.com
Answers question of how to have a mostly dynamic site but still get content indexed by Google
#phantomjs #ruby #rails #Google #SEO #javascript #pub
Show More
ruby on rails - Is it possible to run capybara-webkit (i.e. forked webkit_server) on Heroku Cedar? - Stack Overflow
stackoverflow.com
"This project has a JavaScript, rather than Ruby API, although the browser instance can expose a web-server, allowing you to communicate with it from Ruby over HTTP."
##dynamic_screen_scraping #phantomjs #ruby #javascript #project #pub
Show More
jonleighton/poltergeist · GitHub
github.com
"Poltergeist is a driver for Capybara. It allows you to run your Capybara tests on a headless WebKit browser, provided by PhantomJS."
##dynamic_screen_scraping #ruby #phantomjs #project #capybara #pub
Show More
mattheworiordan/capybara-screenshot · GitHub
github.com
"Using this gem, whenever a Capybara test in Cucumber, Rspec or Minitest fails, the HTML for the failed page and a screenshot (when using capybara-webkit, Selenium or poltergeist) is saved into $APPLICATION_ROOT/tmp/capybara. This is a huge help when trying to diagnose a problem in your failing steps as you can view the source code and potentially how the page looked at the time of the failure." _Can also have it run manually on demand_
##dynamic_screen_scraping #screenshots #project #capybara #phantomjs #ruby #javascript #testing #@to_do #pub
Show More
"Poltergeist the Capybara driver for PhantomJS nearly has what you're asking but not quite. If you're willing to fill the gap yourself you can try and hack the render binding to pass the coordinates of the element you're interested in to the setClipRect() setter which dictates the area to be captured."
_Answers talks about hacking Poltergeist's javascript code that exposes Phantomjs to add Casperjs features_
##dynamic_screen_scraping #phantomjs #casperjs #ruby #capybara #hacks #pub
Show More
ruby on rails - Running Phantomjs on Heroku - Stack Overflow
stackoverflow.com
[Wikitech-l] Running Selenium tests over the speed limit with PhantomJS
lists.wikimedia.org
Watir webdriver using PhantomJS as the driver. Benchmarking it.
Biggest issue worry from the post is that he couldn't get PhantomJS as the driver to work with more than one instance
#phantomjs #_inbox #selenium #watir #driver #automation #pub
Show More
detro/ghostdriver · GitHub
github.com
"Ghost Driver is a pure JavaScript implementation of the WebDriver Wire Protocol for PhantomJS. It's a Remote WebDriver that uses PhantomJS as back-end.
GhostDriver is designed to be integral part of PhantomJS itself, but it's developed in isolation and progress is tracked by this Repository."
#phantomjs #automation #watir #selenium #driver #webkit #javascript #pub
Show More
Finally, GhostDriver 1.0.0 - blog. Ivan De Marino
blog.ivandemarino.me
Launch of GhostDriver and blog post explaining it
#phantomjs #selenium #webkit #javascript #watir #automation #webdriver #pub
Show More
inlineblock/teabag · GitHub
github.com
"Teabag is a Javascript test runner built on top of Rails. It can run tests in the browser, or headlessly using PhantomJS or with Selenium WebDriver.
It's objective is to be the simplest, while also being the most complete Javascript testing solution for Rails. It takes full advantage of the asset pipeline and ships with support for Jasmine, Mocha, QUnit, and (experiementally) Angular.
Ok, another Javascript test runner, right? Really? Yeah, that's tough, but we're pretty confident Teabag is one of the nicest and most full featured you'll find at the moment. And if you disagree, let us know and we'll probably fix whatever it is that you didn't like.
Feedback, ideas and pull requests are always welcome, or you can hit us up on Twitter @modeset_.
If you'd like to use Teabag with Guard, check out the guard-teabag project."
#github #repos #stars #Javascript #testing #headless #rails #ruby #phantomjs #webdrivers #pub
Show More
"Issue resolved. It was never a programmatic issue. The above DesiredCapabilites and service_args with "driver = webdriver.PhantomJS( desired_capabilities=dcap, service_args=service_args)" works. The problem was with the proxy provider setup. Once the default UA was removed from the proxy server it allowed the DesiredCapabilites to assign the UA."
#work #automation #phantomJS #proxies #user_testing #solutions #web_development #webdriver #pub
Show More
colszowka/phantomjs-gem
github.com
Ruby gem to install PhantomJS on all current platforms (Mac, Windows, Linux). Except it only installs in a specific location - "$HOME/.phantomjs/VERSION/PLATFORM" and isn't able to automatically get the latest version, the current versions are hardcoded in the gem.
#phantomJS #gems #open_source #cross-platform #automation #user_testing #from #delicious #pub
Show More
westoque/phantomjs.rb
github.com
49 commits
2013-10-18
Active-ish
3 watchers; 35 stars; 20 forks
"Ruby wrapper for phantomjs"
Not sure how much of a wrapper this really is vs just sort of having to tell Ruby to run PhantomJS scripts and getting returns?
Also, there is no way right now to add cli options aka the bread and butter I'd need, proxy, user agent, etc, support. Though perhaps things like user agent can be set later on, I really don't think proxies can.
I could edit the code myself, of course.
#$kippt #dev #phantomjs #ruby #gems #*research #pub
Show More
westoque/phantom_menace
github.com
15 commits
2012-06-30
Dead - by same developer as the previous phantomjs.rb gem which is newer and more popular.
"A real headless "browser." It uses phantomjs and provides an API like a real browser does. Much like poltergeist but decoupled from capybara.
At the heart of phantom-menace is a run loop inside the phantomjs script that makes it synchronous.
It is perfect for scraping or doing any browser related tasks."
Could look through the code and edit it to accommodate all the changes in the past three years (especially how much PhantomJS has matured), along with other things. Or just look through it for ideas, etc.
#$kippt #dev #phantomjs #ruby #gems #*research #pub
Show More
absperf/phantom-webdriver
github.com
42 commits
2013-02-19
Dead - might be pointless
"phantomjs webwalk with ruby"
Well there's a phantomjs webdriver for Watir while this is using Selenium. Probably made before the official PhantomJS Watir webdriver was released. At best can be used to look through
#$kippt #dev #phantomjs #ruby #gems #*research #pub
Show More
aufi/phantom-ruby-browser
github.com
11 commits
2014-10-09
Dead
Technically this is what I was looking for. Wrapping Ruby methods around PhantomJS code (aka JS code).
But this gem/library/code only got so far as a few commands. Good for looking at, at least. And this might be what will have me realize I should just use CasperJS for the crawling.
#$kippt #dev #phantomjs #ruby #gems #*research #pub
Show More
arg/phantomrb
github.com
6 commits
2013-09-16
Dead
"An interface with PhantomJS for Ruby."
Need a name for this type of library/code/gem. Ruby is used to call a PhantomJS command. And you get the return.
This one allows you to set CLI options though, which is good.
#$kippt #dev #phantomjs #ruby #gems #*research #pub
Show More
greatghoul/phandoc
github.com
Getting tired. Haven't looked at this much, but seems like it isn't what I'd want. At best can look at as a reference if I am going to wrap JS library code around Ruby
#$kippt #dev #phantomjs #ruby #gems #*research #pub
Show More
gabrieltong/casperjs-ruby-adapter
github.com
3 commits
2013-08-13
Some of the info is in another language
#$kippt #dev #phantomjs #ruby #gems #*research #casperjs #pub
Show More
hpdts/build-cop
github.com
3 commits
2015-04-25
Uhm. Maybe this can help? Can't fully use this, it isn't a gem even, but for ideas.
#$kippt #dev #phantomjs #ruby #*research #casperjs #pub
Show More
ezkl/friendly_ghost
github.com
7 commits
2013-05-20
This is useful for sure as a concept and working gem if using CasperJS. As this still has you using CasperJS, but just having Ruby send the JS scripts and getting the output back. However it hasn't been touched in 2 years and there is an issue by someone saying it doesn't work :(
Description: "A simplistic, opinionated Ruby runner for CasperJS projects. Designed to hand JSON from the last line of STDOUT back to the user. Maybe someone else will find it useful, but I doubt it."
#$kippt #dev #phantomjs #ruby #gems #*research #casperjs #pub
Show More
PHP PhantomJS
jonnnnyw.github.io
"Feature List
Load webpages through the PhantomJS headless browser
View detailed response data including page content, headers, status
code etc.
Handle redirects
View javascript console errors
View detailed PhantomJS debuged information
Save screen captures to local disk
Set viewport size
Define screen capture x, y, width and height parameters
Delay page rendering for a specified time
Execute PhantomJS with command line options
Easily build and run custom PhantomJS scripts"
#$kippt #dev #phantomjs #ruby #wrappers #pub
Show More
PhantomJs Cloud | Headless Browser Service
phantomjscloud.com
#freemium #SaaS #crawling #phantomjs #ideas #copy_as_references #services #dev #javascript #headless #pub
Show More
Collect and share the web
Get started for free