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 ...
5
votes
How to setup a Headless-Browser Unit-Test for Angular application?`
Angular has some great tooling for running tests, namely Karma and Protractor. By default (at least when using Angular CLI) they run using Chrome. So when you execute the tests from command-line, it ...
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 ...
4
votes
How to setup a Headless-Browser Unit-Test for Angular application?`
You just ask karma to run Chrome headless. It's no longer necessary to create it out of ChromeOptions
Here are the first few lines from my karma.conf.js
module.exports = function (config) {
...
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
Headless mode buttons are hidden - I think the side drawer is closed?
But there is no way to know for sure since it is headless
Take screenshots
2
votes
Why do rspec-capybara chrome tests run headless fail on my mac and how to diagnose/fix it?
To debug, first try to take a screenshot in headless mode when you arrive at the button. Then take another screenshot before the test fails or after you click the button.
It really looks like you ...
1
vote
View webdriver tests running on EC2
There are two issues you need to think about;
You are running on headless mode, so there should be no visible Chrome window. You may need to disable it.
If the Jenkins initiated the job; you can see ...
1
vote
Fixing an asynchronous JavaScript timeout out issue with Selenium in C#
The ExecuteAsyncScript is a means to use a callback in your JavaScript code, which you are not. It does not make the C# code async. See the documentation.
If you want the C# code to be Async put the ...
1
vote
Accepted
Headless mode buttons are hidden - I think the side drawer is closed?
I think you need to specify the screen width. Set the screen width by using the function
browser.setWindowSize(width, height)
Reference:
webdriver.io/docs/api/browser/setWindowSize.html
1
vote
Not able to verify the downloaded file with Chrome WebDriver running headless
I had a similar problem recently I had to add extra options to set the download path for headless.
var options = new ChromeOptions();
options.AddArgument("--headless");
options....
1
vote
Accepted
Headless browser testing
When writing a framework in c# are there any recommended tools for this that I can look into? Its totally depends on you aim and requirement as per current trend Selenium is most popular now days. You ...
1
vote
Drag and Drop does not work with headless chromedriver
I don't think we can help you debug a difference between the Chrome browser versus the headless version. I do not think it is a known issue and there is no known work-around.
A suggestion:
Create a ...
1
vote
Accepted
Screenshot with Katalon and Chrome headless mode
After looking through
https://docs.oracle.com/javase/tutorial/2d/images/saveimage.html
https://stackoverflow.com/questions/19871955/java-io-filenotfoundexception-the-system-cannot-find-the-file-...
1
vote
Howto use the Firefox browser in headless mode with Selenium
To enable headless Firefox using selenium-webdriver version 4.0.0-alpha.1 and node 8.x:
const { Builder } = require('selenium-webdriver');
const firefox = require('selenium-webdriver/firefox');
const ...
1
vote
Accepted
How to install Chrome v59 - headless - on Ubuntu?
This did it for me
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/...
1
vote
How to take screenshot on Fail, with htmlunitdriver in java?
HtmlUnit does not have screenshot function, as the page is not rendered.
Here is the feedback from the developers on a similar question:
HtmlUnit is a headless browser, and makes no attempt to ...
1
vote
selenium webdriver scripts on phantomcss/ resemblejs or nightmare?
Based on what you have described, a feasible (it may not be the best) approach can be:
Discuss with the project owner(s) regarding which images of which sections have the highest business value, e.g. ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
headless × 23selenium-webdriver × 16
automated-testing × 5
chrome × 5
python × 4
chromedriver × 4
java × 3
c# × 3
javascript × 3
phantomjs × 3
browser-automation × 1
unit-tests × 1
tools × 1
jenkins × 1
regression-testing × 1
junit × 1
functional × 1
ruby × 1
angular × 1
selenium-webdriver-c# × 1
test-strategy × 1
selenium3 × 1
firefoxdriver × 1
cross-browser-testing × 1
katalon × 1