SWD-JAVA
Test automation with Selenium WebDriver in Java
Description
The course describes in detail the use of Selenium WebDriver in the programming language. It demonstrates how to test websites with automated tests and how to write Selenium WebDriver test cases. It demonstrates how to open web pages, check their content, fill in forms, etc. using a real application and practical examples.
Suggested For
The course is aimed at testers and developers who want to master the theory and practice of automated testing using Selenium WebDriver in their programming language at a high level.
Outline
Introduction to technology
- Building web applications
- URL/HTTP protocol
- Concepts of HTML, CSS, JavaScript
- Structure of HTML format
- DOM, navigating the DOM with XPath
Selenium Platform
- Introduction to Selenium platform
- Introduction to Selenium IDE, exporting
Testing a simple page
- Creating a webdriver (launching with different browsers), closing it
- Opening a page
- Retrieving DOM elements, locators
- Clicking on a link
- Deleting and filling text fields
- Buttons management
- Submit form
- Checking text, attributes, CSS
Components
- More complex form elements: number, label, radio button, checkbox, textarea, dropdown menu (select), multi element selector, email, hidden, password, reset
- date management, date picker components
- HTML lists, tables
- Components disappear, appear, enabled, editable, disabled, selected, collapse
- Alert, confirmation handling (pop-up)
- Validation checking
- Success message management
- Video playback
More complex navigation
- Browser button management (back, forward, refresh), history
- Using scrolling
- Scrollbar
- Managing multiple windows
- Resizing (disappearing components in responsive)
- Frame management
- Drag and drop
- Double-click
- Context menu
- Coordinate management
Advanced themes
- Selenium WebDriver Page Object design sample
- Default values pattern
- DRY
- Fixture, setup, teardown
- File upload/download
- Run JavaScript
- Screenshot
- WebDriver events
- Data-driven testing based on CSV files
- Data-driven testing based on database
- Database fixture and
- AJAX management
Prerequisites
- Basic algorithms, programming basics (variable, function, parameter, return value, control structures - branch, loop) in any programming language.
- As some of the course material is in English, a basic level of English at document reading level is required. The lecture is in Hungarian, based on slides in Hungarian.