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 ...
user avatar
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 ...
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 ...
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 ...
user avatar
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) { ...
user avatar
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 ...
user avatar
  • 589
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.
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 ...
user avatar
  • 10.4k
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
user avatar
  • 6,945
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 ...
user avatar
  • 153
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 ...
user avatar
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
user avatar
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....
user avatar
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 ...
user avatar
  • 1,573
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 ...
user avatar
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-...
user avatar
  • 4,079
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/...
user avatar
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 ...
user avatar
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. ...
user avatar
  • 9,650

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