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

Selenium - Python - How to select dropdown option by part of the text

I'm trying to select a dropdown option by part of the text. How I would normally select text: Select(browser.find_element_by_css_selector('selector')).select_by_visible_text("element text") What I am trying to…
1
vote
1 answer

selenium: webdriver.PhantomJS(): "Error: Can not connect to GhostDriver on port 51263"

I want to use PhantomJS() in python3.4 and typed Therefore: from selenium import webdriver browser = webdriver.PhantomJS() I got the error: Traceback (most recent call last): File "", line 1, in File…
S1J0
  • 179
  • 1
  • 6
  • 13
1
vote
1 answer

Screenshot not working with phantomJS and ghostdriver

I am trying to take screenshot of a page with phantomJS and ghostdriver. Here is my code: import java.io.File; import java.net.URL; import org.apache.commons.io.FileUtils; import org.openqa.selenium.By; import org.openqa.selenium.OutputType; import…
Amandeep Singh
  • 297
  • 4
  • 19
1
vote
1 answer

Selenium PhantomJS custom headers in Java

I want to add custom http request headers to Selenium PhantomJS. Specifically this header Accept-Language: en-US I was able to figure this much out by reading other posts, but how would I fill out the second parameter of setCapability to set a…
Arya
  • 8,473
  • 27
  • 105
  • 175
1
vote
0 answers

PhantomJS web driver mode override page.onResourceRecieved function

I am using the Ghost driver with PhantomJS. I need to get the http response code of the page thats loading the phantomjs. As its not straight forward to get that in the existing phantomjs implementation, I decided to override the…
vivek_jonam
  • 3,237
  • 8
  • 32
  • 44
1
vote
1 answer

PhantomJS Proxy when using Remote Webdriver?

I am trying to use selenium in python with PhantomJS. I am running a selenium hub server so am using webdriver.Remote to start a webdriver. The normal way to pass a proxy to PhantomJS is: service_args = [ '--proxy=127.0.0.1:9999', …
1
vote
0 answers

Unable to start PhantomJS with Ghostdriver: [WinError 5] Access is denied

I am writing python script which is using selenium WebDriver and PhantomJS. My code is stuck at this error PermissionError: [WinError 5] Access is denied I have gone through every single threads related to this error and tried all solutions. So…
1
vote
1 answer

Using proxy with Selenium PhantomJS

I just added the two lines related about proxy DesiredCapabilities caps = new DesiredCapabilities(); caps.setJavascriptEnabled(true); caps.setCapability("takesScreenshot", true); caps.setCapability("screen-resolution",…
Arya
  • 8,473
  • 27
  • 105
  • 175
1
vote
1 answer

ConnRoutePNames.LOCAL_ADDRESS on selenium phantomjs

Hi with this code i can say to DefaultHttpClient, hey use this interfaceip for connection. So how can i say like this to phantomjsdriver. note: sorry for my english. not my native language Example: DefaultHttpClient httpClient; try { …
eren
  • 31
  • 6
1
vote
1 answer

PhantomJS ghostdriver stops

I'm trying to run an e2e-test on my laptop using phantomjs, ghostdriver and protractor. I run the following commands: phantomjs --webdriver=5000 gulp protractor When I run the first command, everything looks fine, but as soon as I run the second…
Jesper
  • 316
  • 1
  • 14
1
vote
1 answer

Selenium test with PhantomJSDriver is hanging and not finishing

First, I start the local webapp. Next, when I run the following test in Eclipse as a JUnit test (with -Dbrowser=phantomjs): @Test public void homepageShowsSearchBox() throws Exception { open("http://localhost:8080/app/"); …
Martin Spa
  • 1,494
  • 1
  • 24
  • 44
1
vote
1 answer

PhantomJS refuses connections intermittently

I'm using Ruby 2.1.0, watir-webdriver, rspec, taza, and PhantomJS 1.9.8. The OS is Linux tester 3.2.0-4-686-pae #1 SMP Debian 3.2.65-1+deb7u1 i686 GNU/Linux. I run PhantomJS via Watir::Browser.new and supply the following command line parameters:…
1
vote
2 answers

Opening pages asynchronously in headless browser (PhantomJS)

I am using PhantomJS via Python through Selenium+Ghostdriver. I am looking to load several pages simultaneously and to do so, I am looking for an async method to load pages. From my research, PhantomJS already lives in a separate thread and supports…
1
vote
1 answer

Java - PhantomJS and Selenium - Ignore SSL Errors

I am having problems with pages with SSL. I'm pretty sure this is the problem because I can go to http pages and get the full page source, but when I go to an https address, I get the following: I am…
mgates2
  • 85
  • 1
  • 8
1
vote
1 answer

UnreachableBrowserException in Selenium Webdriver 2.42.2 with PhantomJSDriver 1.1.0

I am doing a parallel execution of test cases using Selenium Web Driver 2.42.2 and Ghost Driver 1.1.0. The below exception occurs when more tests are being added. Initially, with less number of tests, I didn't see this exception. Stack…