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
2
votes
2 answers

How to access errors when using WebdriverJS?

We are using the superb WebdriverJS (with Selenium) to perform acceptance testing on our web app. Everything works fine, and our tests execute successfully when we use Firefox and Safari. However, when we use PhantomJS, our tests fail with…
rinogo
  • 8,491
  • 12
  • 61
  • 102
2
votes
1 answer

Is appcache not supported with selenium webdriver (JS implementation) using phantomjs?

We are running cucumber tests against our Single Page App using Selenium WebDriver and PhantomJS. We recently implemented an appcache manifest and now our cukes fail. In our troubleshooting it seems to be failing because phantomjs does not support…
2
votes
1 answer

Can I/how can I translate a Selenium webdriver test script from node.js over to phantomjs - ghostdriver?

I recently began working with Selenium and to make life easier to start I was using node to run my scripts so that I could visually monitor the tests. My challenge now is to convert it so that it can be run as a headless test. Unfortunately, most of…
2
votes
0 answers

Is it possible to change the logger settings of PhantomJS

I am using PhantomJS with Selenium WebDriver in Java. One thing I find annoying is the initial PhantomJS bootstrap logs. It was quite useful to see them in the beginning, but soon enough they just look messy on my screen. So, is it possible to…
JBT
  • 8,498
  • 18
  • 65
  • 104
2
votes
1 answer

PhantomJSDriver Click element WebDriverException timeout

I have an input element that opens a new popup window when clicked (where the user can select a value for the field). Markup: c#: var driver = new…
user3167162
  • 445
  • 1
  • 6
  • 23
2
votes
0 answers

Why does GhostDriver fail to receive the client side JavaScript function call sent by CometActor?

We are experiencing an issue when running Selenium tests with GhostDriver. We have a Selenium test failure which is influenced by the technologies we've chosen. Our stack is a Lift backend supported by an AngularJS front-end. We are utilizing…
2
votes
1 answer

Selenium webdriver using PhantomJS not getting commands/clicks to execute fully

I've been having some issues when using selenium webdriver with PhantomJS. I get the impression that the different actions aren't executing on the page itself. If I try running something that changes an element on the page and the test executes…
2
votes
2 answers

GhostDriver doesn't quit after Selenium test run

In my first very simple test of Selenium with GhostDriver (PhantomJS) the tests pass, but PhantomJS.exe doesn't exit. I'm running on Windows 7, PhantomJS 1.9.0, Selenium WebDriver API 2.32.1 and NUnit 2.6.2.12296, .NET 3.5. Here's my…
Ian Grainger
  • 5,148
  • 3
  • 46
  • 72
2
votes
2 answers

Can't use RemoteWebDriver(Ghost,Phantom) via Selenium Grid2

I tried GhostDriver and Phantomjs today. When I use GhostDriver, it works well. start like this phantomjs --webdriver=8910 then new RemoteWebDriver(new URL("http://localhost:8910"), sCaps); My selenium test case can pass. Then I tried to use…
Dan
  • 950
  • 8
  • 13
1
vote
0 answers

Session.desiredCapabilities are ignored by Session.negotiatedCapabilities when running PhantomJSDriver

I have a requirement where I need to run test scenarios of validating my webpage in Amazon linux2 instance without any GUI. Hence I selected PhantomJS/GhostDriver to perform these executions. I also need to add valid certificate in my driver for…
1
vote
0 answers

Is there a trick to using phantomjs for javascript driven sites?

Trying to use phantomjs to get content created by javascript and having a little trouble. Does phantomjs execute javascript just like other browsers do? Hoping someone can help. When trying to get the value I'm looking for in Chrome, it comes up.…
vladz
  • 21
  • 1
1
vote
1 answer

Unable to handle alert using phantomJS in Java

I have a Java code as below and when I am running through PhantomJs getting "Unsupported Command Exception" but it is working fine if I run through firefox and chrome:- Note: With phantomJs we could able to execute till 3rd step in below code.I…
Aaditya
  • 13
  • 4
1
vote
1 answer

Nothing on page becomes active or clickable

Hi I am using ghostdriver for selenium. I am trying to log into google adwords but for some reason I am having extreme issues. Here is my code: Dim driver As New PhantomJSDriver Dim options = New PhantomJSOptions() …
Zach Johnson
  • 2,047
  • 6
  • 24
  • 40
1
vote
2 answers

Adding Cookies using Selenium Ghostdriver PhantomJS with python

I have been using firefox + selenium for scraping. However, i decided to switch to Phantomjs as it should be faster. I am now having problem adding cookies when using Phantomjs + ghostdriver + selenium with python. To solve the problem, i have been…
scraper
  • 13
  • 1
  • 5
1
vote
0 answers

How can I control PhantomJS in WebdriverIO to skip download / load some kind of resource (i.e., fonts, images, css, js)?

Below is my code, currently this works fine.. but i want to optimize it to not load / download some resources like (fonts, images, css, js).. I've read the api docs but i'mnot able to find the related configs.. Well, I'm using webdriverIO and…
narainsagar
  • 1,079
  • 2
  • 13
  • 29