Questions tagged [phantomjs]

PhantomJS is a headless (GUI-less) WebKit with a JavaScript API. It has native support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG.

Filter by
Sorted by
Tagged with
3 votes
1 answer
974 views

How to set browser window size using Phantom JS + Java

I am working on PhantomJS with Java for one of my project. I am looking for some help in working with PhantomJS in following scenario. Scenario: Step-1: Mouse hover on tab/link then 2 sub-links will ...
1 vote
0 answers
545 views

How can I debug karma tests without changing PhantomJS to Chrome in Visual Studio Code

I have karma tests that during execution runs PhantomJS. Unfortunately, when some of those tests fail, error messages are not very helpful. Thus, I would like to debug them. However, most sources ...
0 votes
1 answer
110 views

Having trouble scraping data from website with Selenium

I've tried a couple different routes to get this to work but I've had no luck. 1) driver= webdriver.PhantomJS(executable_path=r'C:\Users\x\Downloads\phantomjs-2.1.1-windows\phantomjs-2.1.1-windows\...
0 votes
1 answer
2k views

How to clear cache ,History in PhantomJS browser

I have multiple test cases in that some of them are having login into website to test the functionality and some other are not required to login to test the functionality. Issue is when one test case ...
3 votes
1 answer
4k views

PhantomJS not rendering all of page even with a few seconds delay

I am using my linux box to try and periodically download my local skateboard park's webpage and search for whether there are free skate-school lessons available. I'm currently falling at the first ...
6 votes
2 answers
10k views

How headless mode is faster?

I'm using the below configurations: Selenium 3.8.0 Java 8 Ubuntu 16.04 I have automated my Application and am running tests in the Chrome browser. I came to know about PhantomJS driver to run tests ...
6 votes
1 answer
1k views

Why Phantomjs got crashed while running more test cases?

I have written 751 test cases in Jasmine JavaScript. 116 test cases for Mobile View and 645 test cases on Desktop view. While executing test cases, most of the times, test case execution was not ...
2 votes
1 answer
79 views

What are the disadvantages of using SaaS companies for Regression and Functional Testing?

I am well aware that there are great services which allows us to use hundreds of available browsers, devices, AI supported false positive prevention and many other things. But when it comes to build ...
1 vote
2 answers
598 views

How to reduce Phantom js test execution time for selenium junit test cases

I am using phatnom js driver for my selenium test cases to overcome the headache of chrome driver.I see it is taking lot of time to execute the test cases.I tried html diver prior to phantom.Since ...
1 vote
1 answer
2k views

PhantomJS not sending keys to input

I'm automating the input to a search bar; the program work fine when using chrome driver, but fails when I try to use PhantomJS. The text that should go in the search bar is not being typed properly: ...
7 votes
2 answers
5k views

PhantomsJS rejects cookies set programmatically

I tried to set a cookie programmatically and PhantomJSDriver rejects that cookie even if cookie belongs to the current domain. The error message is very generic not revealing much details: Caused ...
4 votes
1 answer
283 views

What bugs cannot be found with PhantomJS?

How credible is testing performed with PhantomJS WebDriver? What are types and examples of bugs that can be found with Chrome or Safari that cannot be found with PhantomJS? PhantomJS is a scripted, ...