Questions tagged [ghostdriver]

Ghost Driver is an implementation of the Remote WebDriver Wire protocol, using PhantomJS as its back-end.

Ghost Driver is a pure JavaScript implementation of the WebDriver Wire Protocol for PhantomJS. It is a Remote WebDriver that uses PhantomJS as its back-end. Ghostdriver is the bridge between the Selenium WebDriver with Phantom JS.

Source: github.com/detro/GhostDriver

177 questions
3
votes
1 answer

Frames issue using Watir-Webdriver and phantomjs

I'm writing test using Watir-Webdriver and phantomjs and I've got an issue with iframes. I'm trying to get an element with the following code: browser.frame(:index => 0).div(:id, "wrapper").exists? and when I'm using phantomjs, it raise an…
corday
  • 31
  • 2
2
votes
0 answers

PhantomJSDriver "cannot start the driver service on http://localhost:xxxx/"

So I have a console app that is running Selenium.PhantomJS and it works fine on my localhost, but when I put it into production, I get the following: Looking at the logfile, I see "Cannot start the driver service on http://localhost:4545/" I…
Bardicer
  • 1,405
  • 4
  • 26
  • 43
2
votes
0 answers

java phantomjs change screen resolution

I need to override screen object. I used exapmples from here How do I override window.screen? and here http://phantomjs.org/api/webpage/handler/on-initialized.html But my code does not work. PhantomJSDriver phantom = new…
2
votes
0 answers

Jenkins Codeception Phantomjs fails randomly

I have some strange behaviour of my test setup. I have some acceptance tests written with codeception and run them on a jenkins server every 5 minutes. 95% of them pass without any problems but 5% fail with two different errors. Most of the time it…
2
votes
1 answer

Execute JavaScript before page loads in PhantomJS driven by Selenium

I need to execute some javascript before the page page loads(= before the javascript on the page is executed) Is that possible via ghostdriver? using phantomjsdriver 1.2.1 for java, phantomjs 2.0
int lawl is over 9000
  • 977
  • 1
  • 15
  • 25
2
votes
1 answer

Trying to run PhantomJS on OpenShift: cannot patch GhostDriver so that it can bind on the server IP address

tl;dr How to solve version 'GLIBCXX_3.4.15' not found when I cannot be root on the Linux server? I'm tring to use PhantomJS on OpenShift. As explained in this article, PhantomJS GhostDriver binds on localhost only, while on OpenShift, you cannot…
sp00m
  • 47,968
  • 31
  • 142
  • 252
2
votes
2 answers

Java And GhostDriver : Hide Console and Logs

I try to hide the console and the log of GhostDriver in java... - Windows 7. - JDK is in 1.7.0_75 version. - PhantomJS 1.9.7 is include with it path. - GhostDriver 1.1.0 is include in an Eclipse Java SE Project. - Selenium 2.43.1 is include in an…
2
votes
1 answer

Which XPath version is supported in PhantomJS?

I'm using Selenium with PhantomJS. How can I find out which version of XPath is used in PhantomJS?
es1
  • 1,231
  • 3
  • 14
  • 27
2
votes
0 answers

how can I use PhantomJS with a different version of GhostDriver?

I am struggling with a PhantomJS/GhostDriver issue in my CI builds. (Geb/Selenium tests hang loading new page) Unfortunately there is no PhantomJS 2.0 binary for Linux yet, and I have not successfully been able to build it from source. In the…
wrschneider
  • 17,913
  • 16
  • 96
  • 176
2
votes
5 answers

getting error: Could not start Ghost Driver

I'm trying to run Ghostdriver inside my Openshift server. As i run this command: ./phantomjs --webdriver=15002 It says: PhantomJS is launching GhostDriver... [ERROR - 2014-08-01T04:14:21.160Z] GhostDriver - main.fail - {"message":"Could not start…
Hemraj
  • 25
  • 4
2
votes
1 answer

Selenium with PhantomJS: Yahoo login form not submitting (Python bindings)

Im writing a python 2.7 script using selenium webdriver on OS X to login to Yahoo fantasy sports and automate some actions. The script works fine with webDriver Firefox and Chromedriver. I've recently started using the PhantomJS (GhostDriver) and…
Devin
  • 205
  • 2
  • 13
2
votes
1 answer

Why is not possible to disable JavaScript in GhostDriver / PhantomJSDriver?

I would like to disable JavaScript in PhantomJSDriver on a specific page, but this link here says that it not possible, because "The whole GhostDriver will become unusable". Can someone please explain me, as if I am 5 years old, why this is so? Do…
ss1
  • 1,009
  • 15
  • 32
2
votes
0 answers

Using PhantomJS for Selenium's htmlsuite

Trying to port selenese commands from the Selenium IDE to a cron-usable task, and have gotten as far as getting these to run with Webdriver's HTMLSuite command using a local installation of Firefox. However, we need these to run without opening a…
2
votes
3 answers

Setting custom User Agent in Selenium Webdriver for PhantomJS with Ruby

I've been all over the net tonight, for about 3-4 hours now. I've tried every suggestion I've come across. I've even checked the "capabilities" object on my Selenium driver object to ensure that it is actually set there, and indeed, it…
Ethan Barron
  • 1,286
  • 1
  • 12
  • 21
2
votes
0 answers

Recognize Alert with Selenium and HtmlUnitDriver or PhantomJsDriver

I use Selenium 2.42.0 with Java (in Eclipse) and I need to use as WebDriver a headless browser like HtmlUnit-driver (2.42.2) or PhantomJS (Ghostdriver). It`s important that I can handle alerts in Java (Eclipse), which i trigger on purpose for…
juzwani
  • 53
  • 2
  • 7