SlideShare une entreprise Scribd logo
1  sur  13
www.multidots.com | 91-79-2970-8121
Introduction to Headless
browsers
www.multidots.com | 91-79-2970-8121
www.multidots.com | 91-79-2970-8121
• It is simply a name given to the
browser, which doesn’t have any
graphical user interface.
• The evolvement of website
development in few decades have
given way to this technology.
• This technology is gained
popularity since 2009 when
Google announced that headless
browsers could help search engine
index AJAX websites .
Introduction
www.multidots.com | 91-79-2970-8121
www.multidots.com | 91-79-2970-8121
• Fast
• Easy scraping of websites
• Time saver
• Simulate multiple browsers on single machine
• Retrieve and render pdf files
Why headless
browsers?
www.multidots.com | 91-79-2970-8121
• Automate testing in modern web applications
• To run automated tests for JavaScript librarieS
• Scraping data from websites
• Automate the interaction of the web pages
• Taking Screenshots of the web pages
Common use
cases
www.multidots.com | 91-79-2970-8121
Some popular headless
browsers
Chrome Mozilla Firefrox Phantom JSHtmlUnit SimpleBrowser
www.multidots.com | 91-79-2970-8121
1. Google Chrome
The headless mode of Google chrome is provided in the version 59 or
higher.
• It is lightweight
• Saves lot of memory.
• Available options are similar to Chrome & Blink
• Innumerous tools to help developers
www.multidots.com | 91-79-2970-8121
Benefits of Chrome
Headless Chrome provides innumerous tools helping developers do a
variety of tasks such as:
• Multiple level Navigation testing
• Collection of information from web pages
• Take essential screenshots
• Creating PDF files
• Collect reports on website performance
www.multidots.com | 91-79-2970-8121
2. Mozilla Firefox
Headless features are available with the version of 56 of Firefox.
• Various tools to test website
• Easy connection of API to run firefox in fireless mode
• Perform test on different use cases
• Headless firefox can be driven with the help of
– Selenium
– Slimmer JS
– W3C WebDriver
www.multidots.com | 91-79-2970-8121
3. Phantom JS
The webkit of Phantom JS is built specifically to deal with different
types of complexities. It is updated regularly by different dedicated
developers.
• Open source
• Complexities can be easily dealt using command line testing
• Easily scriptable using JavaScript API
• For testing, it uses CsaperJS
• Simulate complete navigation
• Easy identification of loopholes
• Highly flexible
• Supports multiple web standards
www.multidots.com | 91-79-2970-8121
4. HtmlUnit
It is written in Java. It allows developers to automate ways in which
users interact with the website.
One can easily test the following:
• Filling and submitting form
• Links that user interact with
• Website redirects
• HTTP Authentication
HTTPS Page and Header Performance
www.multidots.com | 91-79-2970-8121
Benefits of HtmlUnit
• Simulate several browsers
• Easy creation of scripted use cases in Chrome, Firefox v.38 & above,
Edge, IE8 & IE11.
• Ensuring unique experience for every user
• Seamless testing of site security, navigation, etc.
• Help developers make UI interactive, enhancing UX
• Help build business site having extraordinary performance
www.multidots.com | 91-79-2970-8121
Conclusion
Choosing a Headless Browser can be a tedious task. But with the help
of headless browser, the developers can be benefitted in many ways.
Talking about the various trends, Phantom JS is the most popular
headless browser among the developers. Still, there are other options
to choose from.
www.multidots.com | 91-79-2970-8121
Multidots Solutions Pvt. Ltd.
C-202, Ganesh Meridian, Nr. Sola Over
Bridge, S.G. Highway, Sola Ahmedabad
– 380060, Gujarat, INDIA
+91-79-2970-8121
Multidots Inc.
2301 Gallows Road Suite 205, Dunn
Loring,Virginia – 22027,
United States
+1-646-568-5447
inquiry@multidots.com inquiry.multidots
Thank You ...

Contenu connexe

Tendances

Tendances (20)

Cypress-vs-Playwright: Let the Code Speak
Cypress-vs-Playwright: Let the Code SpeakCypress-vs-Playwright: Let the Code Speak
Cypress-vs-Playwright: Let the Code Speak
 
Playwright: A New Test Automation Framework for the Modern Web
Playwright: A New Test Automation Framework for the Modern WebPlaywright: A New Test Automation Framework for the Modern Web
Playwright: A New Test Automation Framework for the Modern Web
 
Playwright Begginers Presentation
Playwright Begginers PresentationPlaywright Begginers Presentation
Playwright Begginers Presentation
 
Hacking the browser with puppeteer sharp .NET conf AR 2018
Hacking the browser with puppeteer sharp .NET conf AR 2018Hacking the browser with puppeteer sharp .NET conf AR 2018
Hacking the browser with puppeteer sharp .NET conf AR 2018
 
Puppeteer - A web scraping & UI Testing Tool
Puppeteer - A web scraping & UI Testing ToolPuppeteer - A web scraping & UI Testing Tool
Puppeteer - A web scraping & UI Testing Tool
 
Intro to React
Intro to ReactIntro to React
Intro to React
 
Detecting headless browsers
Detecting headless browsersDetecting headless browsers
Detecting headless browsers
 
JavaScript Promises
JavaScript PromisesJavaScript Promises
JavaScript Promises
 
Cypress-vs-Playwright-Rematch-Applitools.pdf
Cypress-vs-Playwright-Rematch-Applitools.pdfCypress-vs-Playwright-Rematch-Applitools.pdf
Cypress-vs-Playwright-Rematch-Applitools.pdf
 
Puppeteer can automate that! - Frontmania
Puppeteer can automate that! - FrontmaniaPuppeteer can automate that! - Frontmania
Puppeteer can automate that! - Frontmania
 
React Native Workshop
React Native WorkshopReact Native Workshop
React Native Workshop
 
React + Redux. Best practices
React + Redux.  Best practicesReact + Redux.  Best practices
React + Redux. Best practices
 
C# Async Await
C# Async AwaitC# Async Await
C# Async Await
 
Why Should we use Microsoft's Playwright
Why Should we use Microsoft's PlaywrightWhy Should we use Microsoft's Playwright
Why Should we use Microsoft's Playwright
 
Scraping the web with Laravel, Dusk, Docker, and PHP
Scraping the web with Laravel, Dusk, Docker, and PHPScraping the web with Laravel, Dusk, Docker, and PHP
Scraping the web with Laravel, Dusk, Docker, and PHP
 
Nodejs buffers
Nodejs buffersNodejs buffers
Nodejs buffers
 
Single Page Application (SPA) using AngularJS
Single Page Application (SPA) using AngularJSSingle Page Application (SPA) using AngularJS
Single Page Application (SPA) using AngularJS
 
ES6 presentation
ES6 presentationES6 presentation
ES6 presentation
 
Robot Framework
Robot FrameworkRobot Framework
Robot Framework
 
ES2015 / ES6: Basics of modern Javascript
ES2015 / ES6: Basics of modern JavascriptES2015 / ES6: Basics of modern Javascript
ES2015 / ES6: Basics of modern Javascript
 

Similaire à Introduction to headless browsers

Webdev battacherjee
Webdev battacherjeeWebdev battacherjee
Webdev battacherjee
RavingTiger
 
Tech io spa_angularjs_20130814_v0.9.5
Tech io spa_angularjs_20130814_v0.9.5Tech io spa_angularjs_20130814_v0.9.5
Tech io spa_angularjs_20130814_v0.9.5
Ganesh Kondal
 
State of jQuery - AspDotNetStorefront Conference
State of jQuery - AspDotNetStorefront ConferenceState of jQuery - AspDotNetStorefront Conference
State of jQuery - AspDotNetStorefront Conference
dmethvin
 
Browserscope oscon 2011
Browserscope oscon 2011Browserscope oscon 2011
Browserscope oscon 2011
lsimon
 

Similaire à Introduction to headless browsers (20)

Transforming the web into a real application platform
Transforming the web into a real application platformTransforming the web into a real application platform
Transforming the web into a real application platform
 
GWT HJUG Presentation
GWT HJUG PresentationGWT HJUG Presentation
GWT HJUG Presentation
 
Mvvm knockout vs angular
Mvvm knockout vs angularMvvm knockout vs angular
Mvvm knockout vs angular
 
Webdev battacherjee
Webdev battacherjeeWebdev battacherjee
Webdev battacherjee
 
Untying the Knots of Web Dev with Internet Explorer
Untying the Knots of Web Dev with Internet Explorer Untying the Knots of Web Dev with Internet Explorer
Untying the Knots of Web Dev with Internet Explorer
 
Building SPA’s (Single Page App) with Backbone.js
Building SPA’s (Single Page App) with Backbone.jsBuilding SPA’s (Single Page App) with Backbone.js
Building SPA’s (Single Page App) with Backbone.js
 
Selenium topic 3 -Web Driver Basics
Selenium topic 3 -Web Driver BasicsSelenium topic 3 -Web Driver Basics
Selenium topic 3 -Web Driver Basics
 
Angular Meetup 1 - Angular Basics and Workshop
Angular Meetup 1 - Angular Basics and WorkshopAngular Meetup 1 - Angular Basics and Workshop
Angular Meetup 1 - Angular Basics and Workshop
 
Tech io spa_angularjs_20130814_v0.9.5
Tech io spa_angularjs_20130814_v0.9.5Tech io spa_angularjs_20130814_v0.9.5
Tech io spa_angularjs_20130814_v0.9.5
 
State of jQuery - AspDotNetStorefront Conference
State of jQuery - AspDotNetStorefront ConferenceState of jQuery - AspDotNetStorefront Conference
State of jQuery - AspDotNetStorefront Conference
 
Html5 phillycc
Html5 phillyccHtml5 phillycc
Html5 phillycc
 
Browserscope oscon 2011
Browserscope oscon 2011Browserscope oscon 2011
Browserscope oscon 2011
 
JavaScript in Universal Windows Platform apps
JavaScript in Universal Windows Platform appsJavaScript in Universal Windows Platform apps
JavaScript in Universal Windows Platform apps
 
Santosh_Resume_Java
Santosh_Resume_JavaSantosh_Resume_Java
Santosh_Resume_Java
 
Opera and the Open Web platform
Opera and the Open Web platformOpera and the Open Web platform
Opera and the Open Web platform
 
An introduction to Node.js
An introduction to Node.jsAn introduction to Node.js
An introduction to Node.js
 
Microsoft power point automation-opensourcetestingtools_matrix-1
Microsoft power point   automation-opensourcetestingtools_matrix-1Microsoft power point   automation-opensourcetestingtools_matrix-1
Microsoft power point automation-opensourcetestingtools_matrix-1
 
Microsoft power point automation-opensourcetestingtools_matrix-1
Microsoft power point   automation-opensourcetestingtools_matrix-1Microsoft power point   automation-opensourcetestingtools_matrix-1
Microsoft power point automation-opensourcetestingtools_matrix-1
 
Automated UI Testing
Automated UI TestingAutomated UI Testing
Automated UI Testing
 
The Mobile Web - HTML5 on mobile devices
The Mobile Web - HTML5 on mobile devicesThe Mobile Web - HTML5 on mobile devices
The Mobile Web - HTML5 on mobile devices
 

Plus de Multidots Solutions Pvt Ltd

Plus de Multidots Solutions Pvt Ltd (10)

Augmented Reality in Retail Industry
Augmented Reality in Retail IndustryAugmented Reality in Retail Industry
Augmented Reality in Retail Industry
 
Capabilities of Sharepoint Development
Capabilities of Sharepoint DevelopmentCapabilities of Sharepoint Development
Capabilities of Sharepoint Development
 
Test your website for Web Accessibility
Test your website for  Web AccessibilityTest your website for  Web Accessibility
Test your website for Web Accessibility
 
Making Web Easily Accessible with Web Accessibility
Making Web Easily Accessible with Web AccessibilityMaking Web Easily Accessible with Web Accessibility
Making Web Easily Accessible with Web Accessibility
 
Wordpress New Avatar - Gutenberg
Wordpress New Avatar - GutenbergWordpress New Avatar - Gutenberg
Wordpress New Avatar - Gutenberg
 
Beaconly - Beacon Management Software
Beaconly - Beacon Management SoftwareBeaconly - Beacon Management Software
Beaconly - Beacon Management Software
 
Going Digital - Paper to Electronic Record Management(ERM) System
Going Digital - Paper to Electronic Record Management(ERM) SystemGoing Digital - Paper to Electronic Record Management(ERM) System
Going Digital - Paper to Electronic Record Management(ERM) System
 
Explore WordPress VIP with Multidots
Explore WordPress VIP with MultidotsExplore WordPress VIP with Multidots
Explore WordPress VIP with Multidots
 
20 Tips to get maximum bang for your buck at WordCamps
20 Tips to get maximum bang for your buck at WordCamps20 Tips to get maximum bang for your buck at WordCamps
20 Tips to get maximum bang for your buck at WordCamps
 
10 point check-list for building conversion-friendly WordPress Websites
10 point check-list for building conversion-friendly WordPress Websites10 point check-list for building conversion-friendly WordPress Websites
10 point check-list for building conversion-friendly WordPress Websites
 

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Dernier (20)

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 

Introduction to headless browsers

  • 1. www.multidots.com | 91-79-2970-8121 Introduction to Headless browsers www.multidots.com | 91-79-2970-8121
  • 2. www.multidots.com | 91-79-2970-8121 • It is simply a name given to the browser, which doesn’t have any graphical user interface. • The evolvement of website development in few decades have given way to this technology. • This technology is gained popularity since 2009 when Google announced that headless browsers could help search engine index AJAX websites . Introduction www.multidots.com | 91-79-2970-8121
  • 3. www.multidots.com | 91-79-2970-8121 • Fast • Easy scraping of websites • Time saver • Simulate multiple browsers on single machine • Retrieve and render pdf files Why headless browsers?
  • 4. www.multidots.com | 91-79-2970-8121 • Automate testing in modern web applications • To run automated tests for JavaScript librarieS • Scraping data from websites • Automate the interaction of the web pages • Taking Screenshots of the web pages Common use cases
  • 5. www.multidots.com | 91-79-2970-8121 Some popular headless browsers Chrome Mozilla Firefrox Phantom JSHtmlUnit SimpleBrowser
  • 6. www.multidots.com | 91-79-2970-8121 1. Google Chrome The headless mode of Google chrome is provided in the version 59 or higher. • It is lightweight • Saves lot of memory. • Available options are similar to Chrome & Blink • Innumerous tools to help developers
  • 7. www.multidots.com | 91-79-2970-8121 Benefits of Chrome Headless Chrome provides innumerous tools helping developers do a variety of tasks such as: • Multiple level Navigation testing • Collection of information from web pages • Take essential screenshots • Creating PDF files • Collect reports on website performance
  • 8. www.multidots.com | 91-79-2970-8121 2. Mozilla Firefox Headless features are available with the version of 56 of Firefox. • Various tools to test website • Easy connection of API to run firefox in fireless mode • Perform test on different use cases • Headless firefox can be driven with the help of – Selenium – Slimmer JS – W3C WebDriver
  • 9. www.multidots.com | 91-79-2970-8121 3. Phantom JS The webkit of Phantom JS is built specifically to deal with different types of complexities. It is updated regularly by different dedicated developers. • Open source • Complexities can be easily dealt using command line testing • Easily scriptable using JavaScript API • For testing, it uses CsaperJS • Simulate complete navigation • Easy identification of loopholes • Highly flexible • Supports multiple web standards
  • 10. www.multidots.com | 91-79-2970-8121 4. HtmlUnit It is written in Java. It allows developers to automate ways in which users interact with the website. One can easily test the following: • Filling and submitting form • Links that user interact with • Website redirects • HTTP Authentication HTTPS Page and Header Performance
  • 11. www.multidots.com | 91-79-2970-8121 Benefits of HtmlUnit • Simulate several browsers • Easy creation of scripted use cases in Chrome, Firefox v.38 & above, Edge, IE8 & IE11. • Ensuring unique experience for every user • Seamless testing of site security, navigation, etc. • Help developers make UI interactive, enhancing UX • Help build business site having extraordinary performance
  • 12. www.multidots.com | 91-79-2970-8121 Conclusion Choosing a Headless Browser can be a tedious task. But with the help of headless browser, the developers can be benefitted in many ways. Talking about the various trends, Phantom JS is the most popular headless browser among the developers. Still, there are other options to choose from.
  • 13. www.multidots.com | 91-79-2970-8121 Multidots Solutions Pvt. Ltd. C-202, Ganesh Meridian, Nr. Sola Over Bridge, S.G. Highway, Sola Ahmedabad – 380060, Gujarat, INDIA +91-79-2970-8121 Multidots Inc. 2301 Gallows Road Suite 205, Dunn Loring,Virginia – 22027, United States +1-646-568-5447 inquiry@multidots.com inquiry.multidots Thank You ...