Introduction of Selenium Eli Lu 2016/10/13. Outline What is selenium ? Selenium Projects Selenium Sponsors Easy to use Useful Feature & Tools Useful Links.

Slides:



Advertisements
Similar presentations
Introduction to JavaScript
Advertisements

Test Automation with Selenium
Selenium Automation Testing Suite of Tools
Pubman and Selenium tests. What is Selenium Selenium is a suite of Web application test automation tools for any browser on any operating system –Firefox,
Selenium HP Web Test Tool Training
Server-Side vs. Client-Side Scripting Languages
Define objects and their relationships to multimedia Explain the fundamentals of C, C++, Java, JavaScript, JScript, C#, ActiveX and VBScript Discuss security.
Selenium – Testing Tool. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for web-based applications.
Selenium Automation Testing Suite of Tools. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
Automation using Selenium Authored & Presented by : Chinmay Sathe & Amit Prabhu Cybage Software Pvt. Ltd.
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
User Extensions, RC and Web Driver Anton Angelov QA Engineer SystemIntegrationTeam Telerik QA Academy Telerik QA Academy.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Selenium automated testing in Openbravo ERP Quality Assurance Webinar April 8th, 2010.
Val Kravets, Luis Sanchez, Allen Chung, Phillip Anderson, Leyla Norooz, Brian Ramnarian, Todd Watson.
Robot Framework – Basic Level. Date: Version:1.0 Page 1.
1 Test Automation For Web-Based Applications Selenium HP Web Test Tool Training Portnov Computer School.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
Testing Web applications. Selenium What is Selenium? Selenium is a suite of tools to automate web application testing across many platforms Tests run.
HTML Concepts and Techniques Fourth Edition Project 12 Creating and Using XML Documents.
INTRODUCTION TO HTML5 Using jQuery with HTML5. Introducing jQuery  Although it is not a part of any W3C or WHATWG specification, jQuery performs an important.
Selenium IDE. Benefits Selenium IDE is full-featured Selenium version with GUI Easy to install (Firefox plugin) Plugin support Intelligent field selection.
Testing Web Applications. Plan The presentation covers: Selenium framework Spring MVC Test framework HttpUnit framework.
Selenium and Selenium on Rails. Agenda  Overview of Selenium Simple Selenium Tests Selenium IDE  Overview of Selenium on Rails  Problems with Selenium.
Web Automation Testing With Selenium By Rajesh Kanade.
Pubman and Selenium tests. What is Selenium Selenium is a suite of Web application test automation tools for any browser on any operating system –Firefox,
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Selenium January Selenium course content  Introduction (Session-1)Session-  Automation  What is automation testing  When to go for automation.
Introduction Selenium IDE is a Firefox extension that allows you to record, edit, and debug tests for HTML Easy record and playback Intelligent field selection.
Lec 18 Web with Selenium 1 CSCE 747 Fall 2013 CSCE 747 Software Testing and Quality Assurance Lecture 16 Testing Web Applications 10/23/
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
Test Automation For Web-Based Applications Portnov Computer School 1 Selenium HP Web Test Tool Training.
INTRODUCTION TO HTML5 New HTML5 User Interface and Attributes.
Selenium server By, Kartikeya Rastogi Mayur Sapre Mosheca. R
Test Automation Using Selenium Presented by: Shambo Ghosh Ankit Sachan Samapti Sinhamahapatra Akshay Kotawala.
Tata Consultancy Services1 WebDriver Basics Submitted By : Akhil K Gagan Deep Singh Naveenrajha H M Poornachandra Meduri Shubham Utsav Sunil Kumar G Vivek.
Robot Framework – Basic Level. Date: Version:1.0 Page 1.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Microsoft Expression Web - Illustrated Unit A: Getting Started With Microsoft Expression Web.
Testing Your Alfresco Add-ons Michael Suzuki Software Engineer.
Arklio Studija 2007 File: / / Page 1 Automated web application testing using Selenium
Web Development. Agenda Web History Network Architecture Types of Server The languages of the web Protocols API 2.
Web driver and its comparison Selenium RC. Selenium web driver: It's web automation testing out framework that assists to execute assessments throughout.
Getting Started with CSS
Selenium HP Web Test Tool Training
Selenium and Selenium on Rails
Testing with Selenium IDE
Chapter 1 Introduction to HTML.
Stable and reliable Web Automation
Introduction of Selenium Webdriver Using Java
Automating GUI testing with Selenium WebDriver, Java and Eclipse
CSCE 747 Software Testing and Quality Assurance
Bomgar Remote support software
Onlineitguru Selenium is one of the most widely used open-source tool that is used for testing software or Automation. It is licensed under Apache License.
Atit Leelasuksan Rungroj Maipradit
What is selenium? Selenium is a portable software-testing framework for web applications. Selenium provides a playback (formerly also recording) tool.
Haden Jackson-Robbins
Test Automation For Web-Based Applications
Test Automation For Web-Based Applications
Secure Web Programming
Web Page Design CIS 300.
Test Automation For Web-Based Applications
Selenium Web Test Tool Training Using Ruby Language
Selenium Tutorials Cheyat Training.
Selenium Web Test Tool Training Using Ruby Language
Lab 1: D3 Setup John Fallon
Web Application Development Using PHP
Presentation transcript:

Introduction of Selenium Eli Lu 2016/10/13

Outline What is selenium ? Selenium Projects Selenium Sponsors Easy to use Useful Feature & Tools Useful Links Q & A

What is selenium ? – Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well. Support languages – Java, csharp, python, ruby, php, perl, javascript, golang

Selenium Projects Selenium WebDriver – Selenium WebDriver can drive a browser natively either locally or on remote machines. Selenium Grid – Selenium Grid takes Selenium Remote Control to another level by running tests on many servers at the same time, cutting down on the time it takes to test multiple browsers or operating systems. Selenium IDE – Selenium IDE is a Firefox add-on that makes it easy to record and playback tests in Firefox 2+. You can even use it to generate code to run the tests with Selenium Remote Control. Selenium Remote Control – Selenium Remote Control is a client/server system that allows you to control web browsers locally or on other computers, using almost any programming language and testing framework

Selenium Sponsors Selenium-Level Sponsors Platinum-Level Sponsors HC USED

Easy to Use Setup Environment Select OS Select Language Select Browser Install Selenium Install Language Install Browser Execute Sample Code Download Source Execute Modify for your purpose Use Firefox to get element Set event for each element Debug

Useful Feature & Method Class of Selenium::WebDriver::Find_Element(s) – By Class, Class Name : Class Name – By CSS : CSS Selector – By ID : ID – By Link : Link – By Link Text, Partial Link Text : Link Text – By Name,Tag Name : Name & Tag Name – By XPATH : XPATH Class of Selenium::WebDriver::Navigation – back : Move back a single entry in the browser's history. – forward : Move forward a single entry in the browser's history. – initialize : A new instance of Navigation. – refresh : Refresh the current page. – to : Navigate to the given URL.

Class of Selenium::WebDriver::Element – attribute : Get the value of the given attribute. – clear : Clear this element. – click : Click the element. – displayed? : Is the element displayed?. – enabled? : Is the element enabled?. – send_key : Send keystrokes to this element. – text : Get the text content of this element. – value : Get the value of this element. Screenshot feature of Selenium::WebDriver – save_screenshot : save screenshot to PNG file – screenshot_as : save screenshot as specific format Base64 or png

Get XPATH from chrome browser – Launch Chrome – Enable Developer Tool – Find target element – Press right click – Select Copy – Select Copy XPATH Take full screenshot at chrome require “chromedriver-screenshot” Add implicit timeouts wait driver.manage.timeouts.implicit_wait = 30

Set Wait time & use wait.until wait = Selenium::WebDriver::Wait.new(:timeout => 60) # seconds wait.until { driver.find_elements(:xpath => ) } Scroll to specific element element. location_once_scrolled_into_view Find Element Memo – Find element’s parent (:xpath => "../ol/li") – Find by content of tag (:xpath => "//h3[contains(text(),‘Yahoo')]") – Find element from element rootElement.find_element(:xpath => “//h3/h4”) childElement = rootElement.find_element(:xpath => “/h5/h6”) – Find element by attribute value (:xpath =>

Useful Links Selenium Website – Ruby Bindings – Bindings Bindings Selenium API Document for Ruby – webdriver/0.0.28/Selenium/WebDriver/Driver webdriver/0.0.28/Selenium/WebDriver/Driver Ruby Website – Example of Eli Lu – master/Ruby/AndroidDeveloperConsole.rb master/Ruby/AndroidDeveloperConsole.rb

Q & A