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 ...
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 ...
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 ...
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.
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 ...
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 ...
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']")....
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.
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], ...
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 ...
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 = \"...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
phantomjs × 12selenium-webdriver × 7
automated-testing × 3
headless × 3
java × 2
selenium2 × 1
javascript × 1
testcase × 1
regression-testing × 1
junit × 1
functional × 1
coverage × 1
cross-browser-testing × 1
jasmine × 1
nodejs × 1
linux × 1
debugging × 1