To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time.

4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
Live Statistics
English Articles
Improved in 24 Hours
Added in 24 Hours
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds

Headless browser

From Wikipedia, the free encyclopedia

A headless browser is a web browser without a graphical user interface.

Headless browsers provide automated control of a web page in an environment similar to popular web browsers, but they are executed via a command-line interface or using network communication. They are particularly useful for testing web pages as they are able to render and understand HTML the same way a browser would, including styling elements such as page layout, color, font selection and execution of JavaScript and Ajax which are usually not available when using other testing methods.[1]

Since version 59 of Google Chrome[2][3] and version 56[4] of Firefox,[5] there is native support for remote control of the browser. This made earlier efforts obsolete, notably PhantomJS.[6]

YouTube Encyclopedic

  • 1/3
    Views:
    1 225
    176 156
    32 311
  • What Is a Headless Browser and How to Use It?
  • The power of Headless Chrome and browser automation (Google I/O '18)
  • Selenium Beginner Tutorial 12 - What are Headless Browsers

Transcription

Use cases

The main use cases for headless browsers are:

Other uses

Headless browsers are also useful for web scraping[7]. Google stated in 2009 that using a headless browser could help their search engine index content from websites that use Ajax.[8]

Headless browsers have also been misused in various ways:

However, a study of browser traffic in 2018 found no preference by malicious actors for headless browsers.[3] There is no indication that headless browsers are used more frequently than non-headless browsers for malicious purposes, like DDoS attacks, SQL injections or cross-site scripting attacks

Usage

As several major browsers natively support headless mode through APIs, some software exists to perform browser automation through a unified interface. These include:

Test Automation

Some test automation software and frameworks include headless browsers as part of their testing apparati.[3]

  • Capybara uses headless browsing, either via WebKit or Headless Chrome to mimic user behavior in its testing protocols.[16]
  • Jasmine uses Selenium by default, but can use WebKit or Headless Chrome, to run browser tests.[17]
  • Cypress, a frontend testing framework
  • QF-Test, a software tool for automated testing of programs via the graphical user interface where a headless browser can also be used for testing.

Alternatives

Another approach is to use software that provides browser APIs. For example, Deno provides browser APIs as part of its design. For Node.js, jsdom[18] is the most complete provider. While most are able to support common browser features (HTML parsing, cookies, XHR, some JavaScript, etc.), they do not render the DOM and have limited support for DOM events. They usually perform faster than full browsers, but are unable to correctly interpret many popular websites.[19][20][21]

Another is HtmlUnit, a headless browser written in Java. HtmlUnit uses the Rhino engine to provide JavaScript and Ajax support as well as partial rendering capability.[22][23]

List of headless browsers

These are various software that provide headless browser APIs.

  • Splash is a headless web browser written in Python using the WebKit layout engine via Qt. It has an HTTP API, Lua scripting support and a built-in IPython (Jupyter)-based IDE. Development started at ScrapingHub in 2013; it is partially funded by DARPA.[24][25]
  • Zombie.js is a simulated browser environment for Node.js.[26]
  • SimpleBrowser is a headless web browser written in C# supporting .NET Standard 2.0[27]
  • DotNetBrowser is a proprietary .NET Chromium-based library that provides the off-screen rendering mode and can be used without embedding or displaying windows.[28][29]

Another noted earlier effort was envjs in 2008 from John Resig, which was a simulated browser environment written in JavaScript for the Rhino engine.[30]

See also

References

  1. ^ "What is a headless browser?". arhg.net. 7 October 2009.
  2. ^ "Getting Started with Headless Chrome". developers.google.com. 27 April 2017.
  3. ^ a b c Bekerman, Dima (2018-11-28). "Headless Chrome: DevOps Love It, So Do Hackers, Here's Why | Imperva". Blog. Retrieved 2021-02-22.
  4. ^ "Firefox 56 release notes". developer.mozilla.org. 26 February 2023.
  5. ^ "Headless mode - browser support". developer.mozilla.org. Archived from the original on 2018-06-03. Retrieved 2017-08-31.
  6. ^ "Quick Start". phantomjs.org.
  7. ^ Staff Reporter (2024-04-04). "Browsing Without a Browser: The Rise of Headless Technology". thearabianpost.com.
  8. ^ Mueller, John (2009-10-07). "Official Google Webmaster Central Blog: A proposal for making AJAX crawlable". Official Google Webmaster Central Blog.
  9. ^ Rawlings, Matt (2013-11-20). "Headless Browser Botnet Used in 150 hour DDoS attack". Business 2 Community.
  10. ^ Mello Jr., John P. (2014-03-25). "Headless Web Traffic Threatens Internet Economy". ecommercetimes.com.
  11. ^ Raywood, Dan (2014-04-01). "Headless browsers: legitimate software that enables attack". ITProPortal.
  12. ^ Mueller, Neal. "Credential stuffing". owasp.org.
  13. ^ Sheth, Himanshu (2020-11-17). "Selenium 4 Is Now W3C Compliant: All You Need To Know".
  14. ^ "GitHub - Playwright". GitHub. Retrieved 2021-04-11.
  15. ^ "Github - Puppeteer". GitHub. Retrieved 2021-04-11.
  16. ^ Silva, Francisco (2019-05-29). "From capybara-webkit to Headless Chrome and ChromeDriver". Blog | Imaginary Cloud. Retrieved 2021-02-22.
  17. ^ Bintz, John. "jasmine-headless-webkit -- The fastest way to run your Jasmine specs!". johnbintz.github.io. Retrieved 2021-02-22.
  18. ^ "JSDOM at GitHub - Pretending to be a visual browser". GitHub. Retrieved 2021-04-18.
  19. ^ "assaf/zombie". GitHub.
  20. ^ "ヘルペスが口や目からうつる?感染した時の症状と病院の治療方法とは". www.envjs.com. Archived from the original on 2015-02-23. Retrieved 2015-03-13.
  21. ^ "JavaScriptMVC - EnvJS". javascriptmvc.com.
  22. ^ Mike Bowler. "HtmlUnit – Welcome to HtmlUnit". sourceforge.net.
  23. ^ "Platform (Vaadin 7.3.4 API)". vaadin.com. 6 November 2014.
  24. ^ "scrapinghub/splash". GitHub. 20 December 2021.
  25. ^ "DARPA - Open Catalog". Archived from the original on 2015-05-28. Retrieved 2015-05-28.
  26. ^ "Zombie". labnotes.org.
  27. ^ SimpleBrowserDotNet/SimpleBrowser, SimpleBrowserDotNet, 2021-02-10, retrieved 2021-02-22
  28. ^ DotNetBrowser Examples, TeamDev, 2021-03-12, retrieved 2021-03-12
  29. ^ "DotNetBrowser". TeamDev. 2021-05-05.
  30. ^ Resig, John (2008-10-12). "env-js: A pure-JavaScript browser environment" – via GitHub.
This page was last edited on 8 April 2024, at 09:49
Basis of this page is in Wikipedia. Text is available under the CC BY-SA 3.0 Unported License. Non-text media are available under their specified licenses. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. WIKI 2 is an independent company and has no affiliation with Wikimedia Foundation.