
Learn to build a practical Selenium WebDriver framework using Java and Cucumber, enabling regression and functional UI testing in a continuous integration environment.
Watch a practical Selenium WebDriver demo that automates a login test across data records from an Excel source. See how a clean, reusable test framework supports data-driven login tests.
Install Selenium IDE as a Firefox plugin, verify compatibility with your Firefox version, and locate the IDE from the tools or add-ons menu.
Export selenium ide test steps to java code using junit, generating a class you can copy into eclipse to run with webdriver, though code generation has caveats.
Prepare your Selenium web driver environment by installing Java and Eclipse, downloading the Selenium standalone server and Chrome driver, and organizing jar files in a software folder for test automation.
Set up the test environment by creating a new Java project in Eclipse and adding the Selenium WebDriver library. Run a hello world program to verify setup.
Create a login test outline for Selenium WebDriver with Java and Cucumber BDD, outlining steps to open the browser, navigate to the login page, enter credentials, and verify the result.
Set the webdriver property for chrome driver, instantiate a chrome driver, and use driver.get to open a browser and navigate to the page.
Explore how the document object model governs HTML pages, enabling Selenium to locate elements via tags, attributes, and forms such as email and password fields.
Explore how to locate web elements with Chrome developer tools, inspect attributes like name and type, and translate those findings into Selenium actions in Eclipse to build test scripts.
Capture the page title with WebDriver.getTitle, compare it to the expected title, and close the browser with driver.close or driver.quit, illustrating common WebDriver methods used in automation.
Explore automating a new account form with Selenium WebDriver in Java, covering radio buttons, checkboxes, and dropdowns on Chrome and Firefox, with Eclipse setup and back-end validation.
Set up the Firefox web driver with Gecko driver, install Firebug and FirePath, and configure element inspection tools for Selenium WebDriver with Java and Cucumber BDD.
Plan and implement a Selenium WebDriver workflow in Java with Cucumber BDD, setting up the WebDriver, navigating to the account management page, creating an account, submitting, and closing the browser.
Learn how to use Selenium item locators, focusing on link text for a tag with driver.find element by link text to click create account.
Learn to use XPath in Selenium by distinguishing relative and absolute paths, using id or name when possible, and preferring relative XPath for robust element locating.
Learn CSS selectors as an alternative to XPath, especially when name or ID isn't available. Use tag and attribute value pairs in square brackets, combining attributes for robust selection.
Learn effective element locating in Selenium by prioritizing name or id for uniqueness, then CSS selectors, and finally relative XPath, while balancing robustness against site changes.
Learn to parameterize test data in a Java Selenium framework by replacing hardcoded values with string variables for name, email, phone, gender, country, and subscription options.
Build a driver factory that returns a webdriver object based on the browser type, enabling a reusable test framework and demonstrating object oriented programming in Java.
Define web elements at the top to improve readability and reusability in Selenium tests using Java. Organize name, email, phone, password, and country elements for clearer automation.
Implement a robust checkbox algorithm in Selenium WebDriver with Java and Cucumber BDD, using boolean states and is selected checks to toggle weekly checkboxes to the desired state.
Use JUnit assertions to generate and verify test results in a Selenium WebDriver Java setup, demonstrating assert equals and assert fail, and the test runner ui.
Explore using JUnit annotations to guide test flow, with before and after setup and teardown routines, assertions, and driving the test with a webdriver in Java.
Set up a TestNG framework with a WebDriver to open a browser, verify login elements are displayed, and learn to transition between JUnit and TestNG annotations.
Learn to use TestNG assertions to validate login email box and password text box, employing assert true and assert equals, and understand how multiple assertions behave when one fails.
Explore TestNG annotations such as before method and after method, organize setup, test methods, and teardown for driver initialization, URL usage, and shared variables; run smoke tests and examine results.
Create a Selenium test suite with Java and Cucumber by generating a test class and suite file, then test a tags links for create account presence.
Organize and run XML test suites for Selenium, Java, and Cucumber projects by setting suite and test names, adding classes, and executing them as a test suite to view results.
Data from CSV file:
Ellie Prynne,ep@testemail.com,1234567890,Female,ep1password,Italy,TRUE,FALSE,FALSE
Shawn Thompson,sw@testemail.com,4567891230,Male,sw2password,France,FALSE,FALSE,TRUE
Michael Lane,ml@testemail.com,7894561230,Male,ml3password,United States,TRUE,FALSE,TRUE
Janelle Von,jv@testemail.com,9876543210,Female,jv4password,Germany,FALSE,TRUE,FALSE
Use JUnit's parameterized runner to build a data driven test that reads user data from a CSV and passes each record via a constructor for subsequent WebDriver automation.
Explore data-driven testing with JUnit and CSV by parameterizing tests, handling boolean CSV fields, and managing browser setup and teardown with Selenium WebDriver.
Implement an Excel reader class to read an Excel file into a double array for TestNG parameterization in Selenium tests, and add the Apache POI jar to the project.
Utilize TestNG's data provider to parameterize a login test, sourcing data from an Excel file, passing name, email, and password, and showcasing four test runs before Selenium integration.
Automate data-driven login testing with TestNG and Excel, using Selenium WebDriver in Java and parameterized credentials. Build reusable setup and teardown, data providers, and Excel-based test data.
Explore how to automate a real-world hotel booking application using Selenium WebDriver with Java in Eclipse, from city and dates to guests, search results filtering, and selecting a listing.
Set up a test outline in a new Expedia class, configure a Chrome driver, and launch the app to cover search, modify results, analyze and select, book, and confirm.
Automate a hotel search on Expedia using Selenium WebDriver with Java and Cucumber BDD. Locate elements by id and XPath, parameterize city and dates, handle dropdowns, and click search.
Add clear methods to reset prefilled search fields and use css selectors to toggle the four-star option. Implement implicit waits, print city name with xpath, and parameterize star rating.
Select the third search result using advanced XPath locators within the results container to avoid dynamic IDs, illustrating robust Selenium WebDriver with Java testing.
Learn to switch between browser windows and handle popups in Selenium WebDriver with Java by using get window handles, switch to window, and extract hotel name and rating.
Learn how the page object model organizes tests by page classes, reduces maintenance, and enables reusable actions through a page repository and factory for a scalable test framework.
Set up a page object model test by creating login and dashboard page classes, initializing a firefox driver, and outlining a login test with JUnit.
Implement the login page class using a page object model with a shared WebDriver to set username, set password, and click submit.
Create a dashboard page class, initialize the WebDriver in the constructor, identify elements such as change password and conf message, with a method to return the confirmation text by id.
Set up the cucumber testing environment by installing the cucumber plugin for Eclipse, adding the required jars, and configuring the build path, then restart Eclipse.
Design a cucumber test for a login app using Gherkin, creating a login feature file with a given when then scenario to validate correct username and password and successful login.
Bind the login feature steps to executable code by creating a cucumber step implementation class and glue code. Translate given/when/then statements into Java methods with WebDriver setup for Selenium testing.
Learn to implement step definitions with Selenium by driving the login page, locating elements, entering credentials, and asserting success using JUnit in a cucumber framework.
Parametrize login scenarios with a scenario outline and data tables. Keep data inside the feature file for clients, developers, and testers, using given, when, then, and to describe steps.
Parameterize data into Cucumber step definitions by binding username and password from examples to when steps, using a flexible regex and separate step implementations.
Learn how to implement Cucumber and BDD with Java, parameterize steps, create unique annotations, manage data-driven tests, and optimize test execution with hooks.
Become an experienced automation tester by building a test framework with Selenium WebDriver using Java language. This course will provide you an overview of automation and a practical guide to building a framework with Java. Then explore the power of Selenium WebDriver and Cucumber!
Today's software development uses TDD and BDD practices and requires continuous integration and continuous deployment. Automation testers are needed to develop robust, clean, and thorough frameworks for regression testing, functional testing, and acceptance testing. Selenium WebDriver is the industry-leading, open-source tool that allows scrum teams to deliver quality software fast!
Learn how to apply BDD principals and develop feature files with Given-When-Then structure using Cucumber framework and Gherkin language. Apply Cucumber framework knowledge with Java step implementations to automate web actions with Selenium.
This course has been taken from years of experience in training consultants and new hire orientation corporate training. Enroll in this course to get a thorough overview of automation, frameworks, Selenium WebDriver, and BDD with Cucumber!