Skip to main content
8 votes
Accepted

How headless mode is faster?

Phantom.js was abandoned, maintainer recommended to switch to headless Chrome. Headless Chrome does not use CPU resources to repaint the screen, so try how many separate browser sessions you can run ...
Peter M. - stands for Monica's user avatar
5 votes

How headless mode is faster?

I think Peter is right, it does not need the OS to draw the rendered page, might be some what faster. Something you will probably only notice if you run a lot in parallel. But the main point is you ...
Niels van Reijmersdal's user avatar
4 votes

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

One of the disadvantages of using SaaS for regression testing is that you need to allow outside organization access to your pre-production test environment. In most organizations, it has significant ...
Peter M. - stands for Monica's user avatar
2 votes

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

PhantomJS was abandoned, author recommends to switch to headless Chrome. Parallelization proposed by dzieciou might help, but you will be spending time to improve wrong tool.
Peter M. - stands for Monica's user avatar
2 votes

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

There are multiple solutions: Use faster locators like id and name. See What makes a good selenium locator? Run your tests in parallel Change part of your tests to REST API tests, component and unit ...
dzieciou's user avatar
  • 10.5k
2 votes
Accepted

Why Phantomjs got crashed while running more test cases?

PhantomJS notoriously has a lot of memory issues and will crash after a certain amount of memory use. I have dealt with this issue by splitting up the tests into separate phantom processes rather than ...
Beetny's user avatar
  • 136
1 vote

Having trouble scraping data from website with Selenium

Hi I am not sure why you are printing that try the below code if you want to get the displayed text from those elements: value= driver.find_elements_by_xpath("//div[@class='handicappingBottom']")....
PDHide's user avatar
  • 11.1k
1 vote

How to clear cache ,History in PhantomJS browser

Update to PhantomJS 2.0 and Run using JavascriptExecutor class in selenium: (JavascriptExecutor) driver.executeScript(" var page = this; page.clearMemoryCache(); page.close();"); As mentioned Here.
user9413725's user avatar
1 vote

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

Your example script seems to work fine here. Added some extra loggin: var system = require('system'); var page = require('webpage').create(); console.log(system.args[1]); page.open(system.args[1], ...
Niels van Reijmersdal's user avatar
1 vote
Accepted

PhantomJS not sending keys to input

You can try to wait for the searchBar than try to get the cursor(Focus) to desired WebElement using .clear() and then try to send keys. // Initialise instance of WebDriverWait class with 30 seconds ...
Alok's user avatar
  • 760
1 vote

PhantomsJS rejects cookies set programmatically

I was running into the same problem, and I got it to work by adding the cookies with javascript. JavascriptExecutor js = (JavascriptExecutor) getDriver(); js.executeScript("document.cookie = \"...
Flyingcows00's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible