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
1
vote
2 answers

Starting with Phantomjs driver

Can anyone suggest me good documentations or steps to start or configure phantomJs driver in java so that i can run my test cases in remote server.
kittudk
  • 55
  • 3
  • 14
1
vote
2 answers

Configuring PhantomjsDriver to run selenium test cases

Am new to this PhantomjsDriver in selenium webdriver.I need to run my selenium scripts in server without GUI. Please can anybody tell me how to achieve this. I need a head's up from the start of how to configure Phantomjs Driver,usage in server and…
kittudk
  • 55
  • 3
  • 14
1
vote
2 answers

Setting PhantomJSOptions.AddAdditionalCapability to reference local copy of ghostdriver

There appears to be an issue with ghostdriver in phantomjs that when an HTTP calls fails after clicking a button, the whole thing fails. https://github.com/detro/ghostdriver/issues/202#issuecomment-19808784 The issue has been fixed and is in the…
Martin
  • 837
  • 1
  • 10
  • 18
1
vote
4 answers

setting PhantomJSDriverService.PHANTOMJS_GHOSTDRIVER_PATH_PROPERTY

I have difficulties setting the capability PhantomJSDriverService.PHANTOMJS_GHOSTDRIVER_PATH_PROPERTY in my Java program correctly in order to use the newest version of Ghostdriver from github together with my installed phantomjs version…
luksch
  • 11,497
  • 6
  • 38
  • 53
1
vote
0 answers

Using JavascriptExecutor for PhantomJS tests in Selenium

I have existing tests written in Java which use Selenium's JavascriptExecutor. These tests pass normally using the regular drivers. However now I'm trying out the PhantomJS driver + GhostDriver to run these tests headless. It seems the…
Scott Arg
  • 46
  • 3
1
vote
1 answer

How to assign to workers a proxy that requires user name - password and a custom user agent?

How to assign to workers a proxy that requires user name - password and a custom user agent using Selenium, PhantomJS driver with Python bindings. I've had good success with creating many workers traversing my test website. I can also assign a user…
1
vote
1 answer

Ghostdriver with PHPUnit

I'm attempting to use PhantomJS as a browser for PHPUnit Selenium tests. I've set Selenium running in grid mode, and started phantomjs with webdriver, and registered it to the grid, as in the GhostDriver Readme. When I run a selenium test, it fails…
Hippyjim
  • 2,520
  • 6
  • 38
  • 54
1
vote
2 answers

How to reduce time in getting URL pages from web using GhostDriver and PhantomJS

I am doing project in Maven. I try to get pages from URl. Till now I am successful in getting pages from web. But I have two questions, Qustions, Below code takes around 14 seconds to get any two URL pages, how can I reduce this time, Help me in…
devsda
  • 4,112
  • 9
  • 50
  • 87
0
votes
1 answer

PhantomJs GhostDriver not allowing me to click on submit (Grant Access to Box) works with chromewebdriver

I am attempting to automate the process of Oauth 2.0 with selenium. I managed to get the entire process to work ChromeWebdriver ( headless and non-headless mode). I want to use the code with phantomJS, as well but I cannot get the last button to…
Saitx
  • 21
  • 2
0
votes
2 answers

Alternatives to execute a selenium script

I have a selenium script with python 3. I need to run it every day at 7AM for 5 minutes but I cannot leave my laptop on 24/7 just for it. What would be the easiest/best alternative? I checked Lambda AWS but I am unable to install chrome (or the…
user3507584
  • 3,246
  • 5
  • 42
  • 66
0
votes
1 answer

How to run the PhantomJS script from Java-EE application without specification of script full path?

I need to convert some HTML content to PDF or image in my server side app Java EE. For this, I am using the PhantomJS and script "resterize.js". Problem is, that I need to specify the path of the rasterize.js script. I would like to use only…
Altair
  • 325
  • 3
  • 16
0
votes
1 answer

Cannot get a page source after JavaScript is executed

I came across a case whereby for some reason I cannot get a page source after JavaScript is executed: #!/usr/bin/python from selenium import webdriver import time driver = webdriver.PhantomJS(service_args=['--ignore-ssl-errors=true', …
AlwaysLearning
  • 7,257
  • 4
  • 33
  • 68
0
votes
1 answer

How to set Network Preference parameters for headless browser PhantomJS with Python and Selenium

How to implement below profile set preference for Phantomjs headless browser. def browser(): print("Setting up webdriver connection...") global driver if driver is None: profile = webdriver.FirefoxProfile() …
Sum
  • 363
  • 2
  • 4
  • 16
0
votes
0 answers

How to properly reload website in a javascript phantomJS context?

The purpose of this question is to exclude any errors in my javascript code, as I am new to this language. According to this answer, I use the following code to reload a website in a phantomJS context in case the initial loading takes longer than a…
sudonym
  • 3,788
  • 4
  • 36
  • 61
0
votes
1 answer

Register phantomjs node to Selenium Grid

I am currently running Selenium Grid 3.4.0 and phantomjs 2.1.1 on a windows platform. When I try to register a phantomjs node onto my hub the following error occurs: K:phantomjs-2.1.1-windows/bin/phantomjs.exe --webdriver=8080…