USING SELENIUM 3
SIMON STEWART (@SHS96C)
SELENIUM PROJECT LEAD
SELENIUM 3
A BRIEF HISTORY OF TIME: SELENIUM 1
Core WebDriver W3C
WebDriver
1.0
2.0
3.0
SELENIUM 3
A BRIEF HISTORY OF TIME: SELENIUM 2
Core WebDriver W3C
WebDriver
1.0
2.0
3.0
SELENIUM 3
A BRIEF HISTORY OF THE FUTURE: SELENIUM 3
Core WebDriver W3C
WebDriver
1.0
2.0
3.0
YOUR EXISTING INVESTMENT IN
TESTS IS AN IMPORTANT ASSET TO
YOU AND YOUR COMPANY
Me. Just now.
SELENIUM 3
WHEN WILL
SELENIUM 3 SHIP?
“SOON”
SELENIUM 3
EXAMPLE SELENIUM TEST
SELENIUM 3
UPGRADING: WEBDRIVER USERS
▸ Remove references to deprecated
classes
▸ Drop in the 3.0 jar
SELENIUM 3
EXAMPLE SELENIUM TEST
SELENIUM 3
EXAMPLE SELENIUM TEST
SELENIUM 3
UPGRADING: MOST GRID USERS
▸ Drop in the 3.0 jar
https://flic.kr/p/4Hm9Hr
SELENIUM 3
UPGRADING: RC USERS
▸ Run your tests using the WebDriverBackedSelenium
▸ Fix your tests
▸ Drop in the 3.0 jar
▸ Add a reference to the “leg-rc” jar
▸ Migrate to the WebDriver APIs
▸ SeConf 2013 Closing Keynote by Jason Leyba
▸ https://www.youtube.com/watch?v=cSLmfegT36A
SELENIUM 3
EXAMPLE RC TEST
SELENIUM 3
EXAMPLE RC TEST
SELENIUM 3
EXAMPLE RC TEST
SELENIUM 3
UNSUPPORTED SELENIUM RC FEATURES
▸ Using the server as a proxy
▸ Use browsermob-proxy or similar
▸ Adding custom request headers
▸ Because Selenium isn’t an HTTP
proxy
▸ Browser side-logs
▸ Replaced by logging in each of
the drivers
SELENIUM 3
UPGRADING: IDE USERS
▸ Download the new selenium-html-
runner.jar
▸ Use that instead of selenium-
server.jar
▸ Run your tests
SELENIUM 3
MISSING IDE FEATURES
▸ Rollups
▸ Coming, but not implemented yet
▸ JS Extensions are handled as best as possible
▸ Loaded per-page, so may act differently
▸ Alert and Prompt handling may be odd
▸ Consider switching to Selenium Builder (http://
seleniumbuilder.github.io/se-builder/) or writing code
SELENIUM 3
WHY DO WE NEED A W3C SPEC
▸ Browsers are fearsomely complex
beasts
▸ Decouple selenium releases from
browser updates
https://flic.kr/p/7VHwy6
SELENIUM 3
THE W3C SPEC AND YOU
▸ Vision: The browser vendors own the driver
▸ Yes, this may mean another binary on your system
▸ But that binary is released by the browser vendor
▸ Tracks changes in the browser
▸ Decouples selenium releases from browser release
schedules
SELENIUM 3
THE CHROME AND EDGE DRIVERS
▸ Made by Google and Microsoft
▸ Try them out!
▸ You probably already use
them :)
SELENIUM 3
GECKODRIVER: NEXT GEN FIREFOX SUPPORT
▸ Download:
▸ https://github.com/mozilla/geckodriver/releases
▸ Mozilla have changed the architecture of Firefox
▸ 2.x and 3.x users must use the geckodriver for Firefox 48+
▸ Use ESR release (for now) to continue using the original
FirefoxDriver (for now)
▸ geckodriver does not support the Actions API yet.
SELENIUM 3
SAFARIDRIVER
▸ Safari 10+, Apple own the
SafariDriver
▸ Selenium project will no longer
maintain the OSS SafariDriver once
Safari 10 ships
THINGS THE SELENIUM
TEAM WISHED YOU KNEW
SELENIUM 3
HOW TIMEOUTS WORK
▸ Implicit timeouts occur in the remote end.
▸ Explicit timeouts occur on the local end.
▸ The team suggestion: avoid using implicit timeouts if
possible.
SELENIUM 3
USING XPATH
▸ Depends on the underlying browser’s xpath
implementation
▸ Very easy to destroy readability of tests
▸ Only used by testers, and therefore fragile
▸ Suggest using CSS selectors instead
▸ Plus side: advances in JS engines mean that xpath isn’t as
slow as it used to be
QUESTIONS IN
JUST A BIT….

More Related Content

PDF
Upgrading to Selenium WebDriver version 3
PDF
Selenium
PPTX
Selenium Webdriver
PPTX
Cross browser testing
PDF
Automatic Functional Testing with Selenium and SauceLabs
PPTX
Get Started With Selenium 3 and Selenium 3 Grid
PPTX
Smarter ways to do selenium automation @ work, Selenium, automation
PDF
Selenium Maven With Eclipse | Edureka
Upgrading to Selenium WebDriver version 3
Selenium
Selenium Webdriver
Cross browser testing
Automatic Functional Testing with Selenium and SauceLabs
Get Started With Selenium 3 and Selenium 3 Grid
Smarter ways to do selenium automation @ work, Selenium, automation
Selenium Maven With Eclipse | Edureka

What's hot (20)

PPT
Selenium 2: The Future of Selenium is now!
PPTX
Cross browser testing
PPTX
How To Automate Cross Browser Testing
PPTX
Selenium - Introduction
PDF
Jenkins & Selenium
PDF
Automated Web Testing With Selenium
PPTX
Run Selenium Tests With Jenkins and BrowseEmAll
ODP
Automated UI testing. Selenium. DrupalCamp Kyiv 2011
ODP
Automated UI testing with Selenium
PPTX
An Overview of Selenium
PPT
Selenium (1)
PPTX
Tech talks (Automation on Selenium Web Driver. How to begin & implement)
DOCX
Selenium webdriver course content rakesh hansalia
PPT
Selenium By Pravin Mishra
PPS
Selenium Demo
PPTX
Selenium
PDF
How To Use Selenium Successfully (Java Edition)
PDF
Selenium 4 with Simon Stewart [Webinar]
PPTX
Cross browser Testing JavaScript
PPTX
Selenium WebDriver - Test automation for web applications
Selenium 2: The Future of Selenium is now!
Cross browser testing
How To Automate Cross Browser Testing
Selenium - Introduction
Jenkins & Selenium
Automated Web Testing With Selenium
Run Selenium Tests With Jenkins and BrowseEmAll
Automated UI testing. Selenium. DrupalCamp Kyiv 2011
Automated UI testing with Selenium
An Overview of Selenium
Selenium (1)
Tech talks (Automation on Selenium Web Driver. How to begin & implement)
Selenium webdriver course content rakesh hansalia
Selenium By Pravin Mishra
Selenium Demo
Selenium
How To Use Selenium Successfully (Java Edition)
Selenium 4 with Simon Stewart [Webinar]
Cross browser Testing JavaScript
Selenium WebDriver - Test automation for web applications

Similar to Using Selenium 3 0 (20)

PPTX
The history of selenium
PDF
On-Demand Image Resizing from Part of the monolith to Containerized Microserv...
PDF
On-Demand Image Resizing
PDF
On-Demand Image Resizing Extended - External Meet-up
PPT
Selenium Java for Beginners by Sujit Pathak
PDF
Easy Setup for Parallel Test Execution with Selenium Docker
PPT
Mozilla selenium and_hudson
PPTX
Be flexible with zalenium, a dockerized selenium grid infrastructure
PDF
Introduction to Docker
PPTX
Docker and Selenoid - Make Autotests Great Again
PDF
Scalable QA With Docker
PPTX
Session on Selenium 4 : What’s coming our way? by Hitesh Prajapati
PPTX
Selenium 4 - What's coming our way - v1.0.pptx
PPT
SVN Usage & Best Practices
PDF
Exploring Maven SVN GIT
PPT
Features supported by squid proxy server
PDF
Maven 3.0 at Øredev
PDF
Jenkins hudsonci-101002103143-phpapp02
PPTX
[JOI] TOTVS Developers Joinville - Java #1
PPTX
Zalenium - How to run Selenium Script using Docker and Selenium Grid
The history of selenium
On-Demand Image Resizing from Part of the monolith to Containerized Microserv...
On-Demand Image Resizing
On-Demand Image Resizing Extended - External Meet-up
Selenium Java for Beginners by Sujit Pathak
Easy Setup for Parallel Test Execution with Selenium Docker
Mozilla selenium and_hudson
Be flexible with zalenium, a dockerized selenium grid infrastructure
Introduction to Docker
Docker and Selenoid - Make Autotests Great Again
Scalable QA With Docker
Session on Selenium 4 : What’s coming our way? by Hitesh Prajapati
Selenium 4 - What's coming our way - v1.0.pptx
SVN Usage & Best Practices
Exploring Maven SVN GIT
Features supported by squid proxy server
Maven 3.0 at Øredev
Jenkins hudsonci-101002103143-phpapp02
[JOI] TOTVS Developers Joinville - Java #1
Zalenium - How to run Selenium Script using Docker and Selenium Grid

More from TEST Huddle (20)

PPTX
Why We Need Diversity in Testing- Accenture
PPTX
Keys to continuous testing for faster delivery euro star webinar
PPTX
Why you Shouldnt Automated But You Will Anyway
PDF
Being a Tester in Scrum
PDF
Leveraging Visual Testing with Your Functional Tests
PPTX
Using Test Trees to get an Overview of Test Work
PPTX
Big Data: The Magic to Attain New Heights
PPTX
Will Robots Replace Testers?
PPTX
TDD For The Rest Of Us
PDF
Scaling Agile with LeSS (Large Scale Scrum)
PPTX
Creating Agile Test Strategies for Larger Enterprises
PPTX
Is There A Risk?
PDF
Are Your Tests Well-Travelled? Thoughts About Test Coverage
PDF
Growing a Company Test Community: Roles and Paths for Testers
PDF
Do we need testers on agile teams?
PDF
How to use selenium successfully
PDF
Testers & Teams on the Agile Fluency™ Journey
PDF
Practical Test Strategy Using Heuristics
PDF
Thinking Through Your Role
PPTX
New Model Testing: A New Test Process and Tool
Why We Need Diversity in Testing- Accenture
Keys to continuous testing for faster delivery euro star webinar
Why you Shouldnt Automated But You Will Anyway
Being a Tester in Scrum
Leveraging Visual Testing with Your Functional Tests
Using Test Trees to get an Overview of Test Work
Big Data: The Magic to Attain New Heights
Will Robots Replace Testers?
TDD For The Rest Of Us
Scaling Agile with LeSS (Large Scale Scrum)
Creating Agile Test Strategies for Larger Enterprises
Is There A Risk?
Are Your Tests Well-Travelled? Thoughts About Test Coverage
Growing a Company Test Community: Roles and Paths for Testers
Do we need testers on agile teams?
How to use selenium successfully
Testers & Teams on the Agile Fluency™ Journey
Practical Test Strategy Using Heuristics
Thinking Through Your Role
New Model Testing: A New Test Process and Tool

Recently uploaded (20)

PPTX
UNIT II: Software design, software .pptx
PPTX
Hexagone difital twin solution in the desgining
PDF
WhatsApp Chatbots The Key to Scalable Customer Support.pdf
PDF
OpenAssetIO Virtual Town Hall - August 2025.pdf
PDF
Ragic Data Security Overview: Certifications, Compliance, and Network Safegua...
PDF
Canva Desktop App With Crack Free Download 2025?
PPTX
TRAVEL SUPPLIER API INTEGRATION | XML BOOKING ENGINE
PPTX
Phoenix Marketo User Group: Building Nurtures that Work for Your Audience. An...
PPTX
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
PPTX
ESDS_SAP Application Cloud Offerings.pptx
PDF
Software Development Company - swapdigit | Best Mobile App Development In India
PDF
Mobile App for Guard Tour and Reporting.pdf
PDF
How to Write Automated Test Scripts Using Selenium.pdf
PPTX
oracle_ebs_12.2_project_cutoveroutage.pptx
PPTX
SAP Business AI_L1 Overview_EXTERNAL.pptx
PDF
Enscape 3D Crack + With 2025 Activation Key free
PDF
How to Set Realistic Project Milestones and Deadlines
PPTX
Presentation - Summer Internship at Samatrix.io_template_2.pptx
PPTX
FLIGHT TICKET API | API INTEGRATION PLATFORM
PPTX
Advanced Heap Dump Analysis Techniques Webinar Deck
UNIT II: Software design, software .pptx
Hexagone difital twin solution in the desgining
WhatsApp Chatbots The Key to Scalable Customer Support.pdf
OpenAssetIO Virtual Town Hall - August 2025.pdf
Ragic Data Security Overview: Certifications, Compliance, and Network Safegua...
Canva Desktop App With Crack Free Download 2025?
TRAVEL SUPPLIER API INTEGRATION | XML BOOKING ENGINE
Phoenix Marketo User Group: Building Nurtures that Work for Your Audience. An...
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
ESDS_SAP Application Cloud Offerings.pptx
Software Development Company - swapdigit | Best Mobile App Development In India
Mobile App for Guard Tour and Reporting.pdf
How to Write Automated Test Scripts Using Selenium.pdf
oracle_ebs_12.2_project_cutoveroutage.pptx
SAP Business AI_L1 Overview_EXTERNAL.pptx
Enscape 3D Crack + With 2025 Activation Key free
How to Set Realistic Project Milestones and Deadlines
Presentation - Summer Internship at Samatrix.io_template_2.pptx
FLIGHT TICKET API | API INTEGRATION PLATFORM
Advanced Heap Dump Analysis Techniques Webinar Deck

Using Selenium 3 0

  • 1. USING SELENIUM 3 SIMON STEWART (@SHS96C) SELENIUM PROJECT LEAD
  • 2. SELENIUM 3 A BRIEF HISTORY OF TIME: SELENIUM 1 Core WebDriver W3C WebDriver 1.0 2.0 3.0
  • 3. SELENIUM 3 A BRIEF HISTORY OF TIME: SELENIUM 2 Core WebDriver W3C WebDriver 1.0 2.0 3.0
  • 4. SELENIUM 3 A BRIEF HISTORY OF THE FUTURE: SELENIUM 3 Core WebDriver W3C WebDriver 1.0 2.0 3.0
  • 5. YOUR EXISTING INVESTMENT IN TESTS IS AN IMPORTANT ASSET TO YOU AND YOUR COMPANY Me. Just now. SELENIUM 3
  • 9. SELENIUM 3 UPGRADING: WEBDRIVER USERS ▸ Remove references to deprecated classes ▸ Drop in the 3.0 jar
  • 12. SELENIUM 3 UPGRADING: MOST GRID USERS ▸ Drop in the 3.0 jar https://flic.kr/p/4Hm9Hr
  • 13. SELENIUM 3 UPGRADING: RC USERS ▸ Run your tests using the WebDriverBackedSelenium ▸ Fix your tests ▸ Drop in the 3.0 jar ▸ Add a reference to the “leg-rc” jar ▸ Migrate to the WebDriver APIs ▸ SeConf 2013 Closing Keynote by Jason Leyba ▸ https://www.youtube.com/watch?v=cSLmfegT36A
  • 17. SELENIUM 3 UNSUPPORTED SELENIUM RC FEATURES ▸ Using the server as a proxy ▸ Use browsermob-proxy or similar ▸ Adding custom request headers ▸ Because Selenium isn’t an HTTP proxy ▸ Browser side-logs ▸ Replaced by logging in each of the drivers
  • 18. SELENIUM 3 UPGRADING: IDE USERS ▸ Download the new selenium-html- runner.jar ▸ Use that instead of selenium- server.jar ▸ Run your tests
  • 19. SELENIUM 3 MISSING IDE FEATURES ▸ Rollups ▸ Coming, but not implemented yet ▸ JS Extensions are handled as best as possible ▸ Loaded per-page, so may act differently ▸ Alert and Prompt handling may be odd ▸ Consider switching to Selenium Builder (http:// seleniumbuilder.github.io/se-builder/) or writing code
  • 20. SELENIUM 3 WHY DO WE NEED A W3C SPEC ▸ Browsers are fearsomely complex beasts ▸ Decouple selenium releases from browser updates https://flic.kr/p/7VHwy6
  • 21. SELENIUM 3 THE W3C SPEC AND YOU ▸ Vision: The browser vendors own the driver ▸ Yes, this may mean another binary on your system ▸ But that binary is released by the browser vendor ▸ Tracks changes in the browser ▸ Decouples selenium releases from browser release schedules
  • 22. SELENIUM 3 THE CHROME AND EDGE DRIVERS ▸ Made by Google and Microsoft ▸ Try them out! ▸ You probably already use them :)
  • 23. SELENIUM 3 GECKODRIVER: NEXT GEN FIREFOX SUPPORT ▸ Download: ▸ https://github.com/mozilla/geckodriver/releases ▸ Mozilla have changed the architecture of Firefox ▸ 2.x and 3.x users must use the geckodriver for Firefox 48+ ▸ Use ESR release (for now) to continue using the original FirefoxDriver (for now) ▸ geckodriver does not support the Actions API yet.
  • 24. SELENIUM 3 SAFARIDRIVER ▸ Safari 10+, Apple own the SafariDriver ▸ Selenium project will no longer maintain the OSS SafariDriver once Safari 10 ships
  • 25. THINGS THE SELENIUM TEAM WISHED YOU KNEW
  • 26. SELENIUM 3 HOW TIMEOUTS WORK ▸ Implicit timeouts occur in the remote end. ▸ Explicit timeouts occur on the local end. ▸ The team suggestion: avoid using implicit timeouts if possible.
  • 27. SELENIUM 3 USING XPATH ▸ Depends on the underlying browser’s xpath implementation ▸ Very easy to destroy readability of tests ▸ Only used by testers, and therefore fragile ▸ Suggest using CSS selectors instead ▸ Plus side: advances in JS engines mean that xpath isn’t as slow as it used to be