WebDriver on Windows 10 Greg

Slides:



Advertisements
Similar presentations
(nothing to see here). First thing you need to learn is that sysadmin is about people, not technology If youre a sysadmin so you dont have to deal with.
Advertisements

A Bluffer's Guide to Selenium 2 By: Simon Stewart & Anthony Long.
Get. through back much go good new write out.
LETS LOOK AT HOW THE NEWS IS MADE! WHY ARE NEWS SOURCES BIASED?
Word List A.
Dolch Words.
By Chris Sanyk. About Me First exposure to computers c Atari 2600, Commodore 64, Apple ][ Game concepts on paper at age years in various.
CSSE 533 – Database Systems Week 1, Day 1 Steve Chenoweth CSSE Dept.
High Frequency Words The second 100 get through.
BROWSERS & BROWSING What, Which & Why. WHAT IS A BROWSER? Once you have an Internet connection, some programs access the internet automatically to operate.
JQuery Page Slider. Our goal is to get to the functionality of the Panic Coda web site.Panic Coda web site.
Click to start... Click to start.... October/November? As soon as you get to Oxford Brookes? As soon as you get to Oxford Brookes? Semester two ( i.e.
Applied Software Project Management Andrew Stellman & Jennifer Greene Applied Software Project Management Applied Software.
COMCOM omponent bject odel After this presentation, you will: Be Able To: Conceptual understanding of COM How it works, What it’s used for Decode Acronyms.
Client Side Programming with JavaScript Why use client side programming? Web sides built on CGI programs can rapidly become overly complicated to maintain,
9 Simple Steps to Building A Strong and Inspiring “Why or I” Story
Dana Nau: CMSC 722, AI Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
BY JACK G. AND IAN H. NXT Function Robots Project.
Step 2: Inviting to Challenge Group. DON’T! Before getting into the training, it’s important that you DON’T just randomly send someone a message asking.
Diagnostic Pathfinder for Instructors. Diagnostic Pathfinder Local File vs. Database Normal operations Expert operations Admin operations.
240-Current Research Easily Extensible Systems, Octave, Input Formats, SOA.
Future Focused Finance PHIL LEWIS Ah! The Future Jet-packs; hover boards; moon bases; flights to Mars; fridges that order refills every time you run.
RMI, and Java GUIs Comments zEveryone should be filling out and turning in group evaluations. These are largely for your protection. It can.
Making Python Pretty!. How to Use This Presentation… Download a copy of this presentation to your ‘Computing’ folder. Follow the code examples, and put.
Sight Words.
Student Feedback--Dale Carnegie in the College Classroom Dr. David Urban June 25, 2015.
Version Control and SVN ECE 297. Why Do We Need Version Control?
ITM 353 Final Project Demos. Your Last Assignment There’s one more fun presentation in store for you all: the Transition Readiness Review (TRR) aka your.
Self Evaluation. How well did your group work? A: Really well B: Fairly well C: OK D: poorly E: very poorly.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
OVERVIEW: This section covers the functionalities of all important menus on the menu bar. Please Note: I will not go in full depth yet over every menu.
1 Project 8: Tic Tac Toe. 2 Assignment Write an HTML and JavaScript page that pemits users to play Tic Tac Toe. Both players use a single browser. Alternating.
JavaScript Part 1 Introduction to scripting The ‘alert’ function.
ESSENTIAL WORDS.
Arisai Mauricio April 8, 2013 Period. 6
Chance Chance Community Chest JOB SEEKER Community Chest JOB SEEKER
Section title This presentation is designed to help you talk to young people about Drive. The notes included aren’t intended to be read out, they are for.
The Power of Image.
Playing harp for us today is: Amber
E-Safety Week at John Ball
A few notes on writing a rough draft
How to Create a PowerPoint Presentation
WAIT, THIS SHOW’S BACK?.
Lesson 11: Web Services & API's
The Power of Image.
Fun with Reporting Services Tools
Subnetting IP4 ICND/CCNA Prep.
Discord Bot Senior Project
5 things you didn’t know you can BUILD with Microsoft Edge
The Power of Image.
Get.
Go to =>
EECS 373 Advanced Embedded Systems
EECS 473 Advanced Embedded Systems
PLAGIARIS M AVOIDING EXERCISES 1-4. What is Plagiarism? INTRODUCTION.
Office 365.
The Power of Image.
What Should I Do About Worries?
EECS 473 Advanced Embedded Systems
Quarter 1.
Git started with git: 2018 edition
Applied Software Project Management
The Power of Image.
What happens when you joke around with a truck driver
What Should I Do About Worries?
Arrays.
Michael Wall Senior DBA, Great Western Malting
Elizabeth Liner Lab of Things.
How To Start Your Paper Script: Hello everyone! As a tutor, most of the students I help are either rushing to finish a paper, or struggling to even get.
Effective PRESENTATIONS
Presentation transcript:

WebDriver on Windows 10 Greg Bulmash @YiddishNinja So I’m here to talk about setting up a simple WebDriver testing environment on Windows 10. Usually when I talk to people about being able to do cool stuff on Windows, I get this reaction. Greg Bulmash @YiddishNinja http://Yiddish.Ninja Image from 1967 Spiderman cartoon opening credits.

You can’t be serious! Image via Openclipart.org – CC0 license I respond… Image via Openclipart.org – CC0 license

Do I look like I’m joking? And they start to come around… Do I look like I’m joking? Image via Pixbay – CC0 license

But it might just be crazy enough to work! It’s crazy. But it might just be crazy enough to work! I’m here to tell you that it can and does work. It’s not perfect, but over the past few years, the W3C has taken on WebDriver as a standard and the browser makers have been getting on board. I first got a chance to play with the Internet Explorer implementation of it when I wrote the docs for it in the Internet Explorer Developer Channel. If you missed IE Dev Channel, don’t worry. The legend is an IE PM made a comment that IE should have a preview branch like Chrome Canary and someone high up said “that’s a good idea. Do it.” Image via Flickr – CC-BY-SA – Attr: That Bill Fellow

Image Attr: Ars Technica – License: Fair use Lasted One Release Developer Channel dropped in June 2014 with a primitive version of WebDriver. I was the member of the IE Developer Center writing team who got to test it out and write the developer docs. They’d implemented about 20 methods and to get it running, you had to download the driver, change your registry to give it access, spin up a COM object in C# to marshal the API calls in and out, and do everything in JSON. And when you were done, you needed to revert your registry because that change could be exploited if you left it in place. I didn’t mess with it again until this year when Pratik asked me to do a second presentation here, gave me a list of preferred topics, and I saw WebDriver on the list. I thought that the tech had been pretty interesting, I knew they’d released a more mature version that worked as a REST server, Chrome had a version, and Mozilla said they had one (more on that later), and I figured I’d look into using them all on Windows 10. Seemed fun. Image Attr: Ars Technica – License: Fair use

Okay, tell me about this WebDriver. <Inigo Montoya>Let me explain. No there is too much. Let me sum up</Inigo> We’ll start with Selenium. It was created in 2004… It was basically a browser remote control intended to simulate user interaction with the browser to make it easier to test what happened when users did stuff. It worked by injecting JavaScript into the page you were testing. Of course, as browsers implemented same origin policy controls to prevent bad guys from injecting script, it made it harder for tools like Selenium to do it too. Okay, tell me about this WebDriver. Image via Pixbay – CC0 license

WebDriver got under the hood. WebDriver was implemented to allow Selenium’s commands to be issued to the browser at an operating system level, so it didn’t have to be done in JavaScript. This was great except for the fact that these OS-level implementations weren’t being built by the browser manufacturers. That meant they were a bit hacky and support for new browsers lagged the browser releases. In 2012 the W3C started a working group for the WebDriver spec. That convinced the major browsers to get on board and provide officially blessed WebDriver implementations. With these drivers, as we’ll see in a moment, you get simple REST servers that you can pass JSON commands in and out of. Still, Selenium embraced WebDriver and when we get to using Selenium we’ll put these WebDriver drivers to use. Image via Wikimedia – CC-BY-SA license – Credit: T. Voekler

But will I ever see some code? He keeps talking. But will I ever see some code? The Edge and Chrome WebDriver implementations actually create local REST servers at which you can throw JSON formatted commands, using the JSON Wire Protocol. So now we’re going to shut down PowerPoint, spin up the servers, and throw some JSON at them, shall we? Image via Pixbay – CC0 licensed