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
5
votes
3 answers

Handling Redirection w/ PhantomJS + Selenium

I currently run browser tests via PhantomJS + Selenium in Python. desired_capabilities = dict(DesiredCapabilities.PHANTOMJS) desired_capabilities["phantomjs.page.settings.userAgent"] = ("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2)…
okoboko
  • 4,332
  • 8
  • 40
  • 67
4
votes
1 answer

Is Phantomjs session isolation still not working?

When I run my selenium tests using a chrome browser all my tests cases run fine. When using the phantomjs browser it would appear that the browser session does not get reset after each test case. In my tests cases, I log in as a user to then…
WontonJon
  • 413
  • 5
  • 14
4
votes
0 answers

Heroku/flask/selenium—can't find file in traceback / weird valueError

Background: Flask app on Heroku. Python 3.4 in venv. I'm using the Selenium webdriver (2.53.2) Here's the traceback: The desired behavior is for it to send the keys to the value of the web element. The specific problem or…
Derek Fulton
  • 306
  • 1
  • 14
4
votes
0 answers

GhostDriver with PhantomJS and Selenium (Python) - "Connection Refused"

The Goal: I am trying to perform some scraping in Python using a headless browser: Selenium with PhantomJs and GhostDriver. I am using Python 2.7 on a Mac running Mavericks. I work within emacs (although it also didn't work from Terminal). I have…
n1k31t4
  • 2,745
  • 2
  • 24
  • 38
4
votes
2 answers

Change path for the logfile of PhantomJS in java

I cannot figure out how I can change path for logfile for PhantomJS. I try with: DesiredCapabilities caps = new DesiredCapabilities(); caps.setJavascriptEnabled(true); caps.setCapability("takesScreenshot", false); caps.setCapability( …
DevOps85
  • 6,473
  • 6
  • 23
  • 42
4
votes
3 answers

How to Allocate a Private IP address and Port with Ghostdriver

I wrote a Ghostdriver Maven Java project where I call many instances of the jar file using a shell script in Ubuntu 14.04 64bit. Each line in my shell script calls a new instance of my jar file. The format of each line: screen -dmS name java -jar…
Hydtek
  • 161
  • 1
  • 12
4
votes
1 answer

Geb/Selenium tests hang loading new page

My Selenium tests frequently hang indefinitely on CI, always at an attempt to load a new page in driver.get. I am using PhantomJS 1.9.8. After several rounds of debugging, I think I've traced the problem to the webpage load not completing in…
wrschneider
  • 17,913
  • 16
  • 96
  • 176
4
votes
4 answers

How to capture a screenshot with PHPUnit and Selenium2 when the test fails?

I'm using PHPUnit 4.6 and PHPUnit Selenium 1.4.2 with PhantomJS. I want capture a screenshot with the last page when selenium test fails. In PHPUnit Manual there is a example for Selenium 1, but I'm trying use with Selenium 2, because I need use…
acfreitas
  • 1,347
  • 2
  • 13
  • 27
4
votes
2 answers

Selenium grid node with many phantomjs concurrent instances

I'm struggling to add a node with many concurrent PhantomJS instances. On GhostDriver github page you can find instructions which will register one node with only one instance of PhantomJS: phantomjs --webdriver=8080…
4
votes
2 answers

Download CSV from url in Selenium?

I have a URL that I want to regularly download from. It can only be accessed from a logged in account which requires javascript support to do so, and so I'm forced to use Selenium with PhantomJS, trust me. Otherwise, I would just use urllib for…
User
  • 23,729
  • 38
  • 124
  • 207
4
votes
1 answer

Watir PhantomJS driver optional argument for ignoring SSL errors?

Good day all, I'm working on automating some Ruby scripts to make them headless. My initial approach was to try Watir and its PhantomJS module. Our local test environment uses a self-signed certificate that I know some browser will error out on. …
mpozos
  • 43
  • 5
4
votes
1 answer

How to disable external javascript execution / site requests in phantomjs

I am trying to run some tests on a website looking for issues. For the record, I am using phantomjs with the ghostdriver in selenium from C# Everything is working fine, but I would like to speed things up. Checking on the headers in fiddler, a lot…
Martin
  • 837
  • 1
  • 10
  • 18
3
votes
0 answers

FindElement after login/redirect. PhantomJS with selenium

I use PhantomJSDriver with Selenium v.2.1 (latest for this moment) on Linux. I do login, click on submit button, then my site does redirect (2 times, http 302),and there I try to find the user-name as he/she is logged-in. loginButton.click() //…
ses
  • 13,174
  • 31
  • 123
  • 226
3
votes
0 answers

Disable console logs for GhostDriver, PhantomJS with WebdriverJS

I have been trying to figure out how to disable the annoying console logs when we run phantomjs(ghost driver) with webdriverjs but in vain. [INFO - 2016-10-09T14:57:15.039Z] GhostDriver - Main - running on port 62381 [INFO -…
Ram Pasala
  • 4,931
  • 3
  • 16
  • 26
3
votes
0 answers

Execute CasperJS script by GhostDriver

Can be CasperJS script send through GhostDriver to PhantomJS. Let say I have some Java App and through this app I will generate some CasperJS script and then send through the GhostDriver to PhantomJS. Thank you for response.
user3770144
  • 105
  • 1
  • 2
  • 12
1 2
3
11 12