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
0 answers

Python- PhantomJS customHeader update not reflecting on site

I am trying to pass certain ip's through customHeader in phantomJS, to show various rating logos based on ip. The first time i set the header to a specific ip the page reflects the ip (correct image loads). When i then try to modify the customHeader…
Darthlemi
  • 173
  • 1
  • 1
  • 9
3
votes
3 answers

Behat, PhantomJS - wait for page load after clicking link?

I'm using Behat 3 and PhantomJS 2. Currently I have a scenario defined as such: @javascript Scenario: I visit the blog through the Blog & Events menu. Given I am an anonymous user And I am on the homepage And I follow "Link Text" Then I…
Lester Peabody
  • 1,868
  • 3
  • 20
  • 42
3
votes
1 answer

How to set language to PhantomJs Ghostdriver with java?

I'm using PhantomJs Ghostdriver with Java to take some screenshots of the webpages. My problem is that PhantomJs are using locale from the host machine, so I need to set default language. I have found how to do it for Chrome Driver and for Firefox,…
Djordje Ivanovic
  • 4,151
  • 4
  • 27
  • 49
3
votes
0 answers

not getting browser logs when using phantomjs driver

In my Selenium test cases, I have added an special assert to ensure the code under test didn't generate errors in the browser console. To implement such a thing, I'm capturing the browser logs and seeing if there are any log entries for which the…
greg
  • 41
  • 2
3
votes
3 answers

PhantomJS slower than ChromeDriver, using Selenium

I'm trying to use PhantomJS 2.0/GhostDriver instead the ChromeDriver, since I have read I could speed up my UI tests. This is the test code I'm running, as part of a Junit test: @Override public void runTestCase() throws Exception { long…
3
votes
1 answer

Protractor error using PhantomJS

I'm using phantomJS and protractor to run an e2e-test on my angular page, generated by gulp (standard angular-generator). When I want to run the second command, I will get the following error: "error while waiting for Protractor to sync with the…
Jesper
  • 316
  • 1
  • 14
3
votes
0 answers

Selenium GhostDriver/PhantomJS: File not getting uploaded using sendKeys() / Javascript

I am running a headless script using PhantomJSDriver/GhostDriver and trying to upload a file on gmail while composing an email. Tool: Selenium with PhantomJS/GhostDriver. The html code is as below: Click the "Browse" button to select a file. Click…
LittlePanda
  • 2,496
  • 1
  • 21
  • 33
3
votes
1 answer

Handling Alert/Confirm with JavascriptExecutor in Selenium GhostDriver

I'm getting desperate. I'm using Selenium 2.42.2 with the phantomjsDriver 1.1.0 with Java in Eclipse. For my test it is essential that I recognize and store messages of Alerts and Confirms and maybe Prompts when I open a Page. The phantomjsDriver…
3
votes
1 answer

Connection refused when phantomjs is run on different machine than selenium hub

Is it possible to have a selenium hub on one machine and an instance of phantomjs on a different computer that connects to the hub in the same manner as a selenium node? If I start a selenum hub and an instance of phantomjs on the same machine, I…
3
votes
0 answers

How to set zoomFactor in selenium + phantomjs?

Phantomjs Version: 1.9.7 Selenium Version: 2.40.0 Setting zoomFactor works well when I directly call phamtomjs with page.zoomFactor set in .js file: Works well var page = require('webpage').create(); page.open('http://google.com', function ()…
pppk520
  • 517
  • 4
  • 15
3
votes
1 answer

How to set screen/window size when using GhostDriver

I am using the GhostDriver as the WebDriver implementation in a Java-based project. I want to take snapshots of the pages. The default page size is kind of awkward, so I want to control the page size of the snapshots. However, I can't find any…
JBT
  • 8,498
  • 18
  • 65
  • 104
3
votes
1 answer

Change viewport size of phantomJS using webdriverJS

I got a problem while setting the initial window size for phantomJS using webdriverJS (https://github.com/camme/webdriverjs). What I tried was: client.remote({ desiredCapabilities: { browserName: browserList[browserName] ||…
philgiese
  • 623
  • 1
  • 7
  • 17
3
votes
1 answer

Do I need ghostdriver to use selenium and phantomjs in java?

In the past I have used selenium 2 and phantomJS with python and there seems to be alot of support out there for that. However I would now like to try this combo using java, has anyone tried this? do I need to use ghostdriver?
Calum
  • 2,110
  • 2
  • 22
  • 39
3
votes
1 answer

How to do basic authentication using Selenium Webdriver and PhantomJS?

I'm having trouble authenticating using Selenium Server 2.33.0, Selenium Webdriver JS binding 2.34.0 (npm package "selenium-webdriver") and PhantomJS 1.9.1 on Mac 10.6.8. I've also tried the other JS bindings "webdriverjs" and "wd" with the similar…
ybendana
  • 1,613
  • 1
  • 16
  • 17
3
votes
1 answer

GhostDriver throwing stale exception "Element does not exist in cache" when executing javascript on existing element

Having problems with stale exception, GhostDriver is bubbling something was changed sice last execution. On this {Random “Element is no longer attached to the DOM” StaleElementReferenceException} question, that have more than 16k views, someone is…
newway
  • 647
  • 1
  • 13
  • 21