Coder Social home page Coder Social logo

craft-framework's Introduction

Advanced Selenium

This open source code is for use in advanced Selenium workshops, sometimes delivered with the title "Crafting a Test Framework".

It covers how to make use of Selenium to build up a maintainable test project.

See LICENSE file for details.


Description

This code is updated and released before each workshop, and are maintained in different branches.


Workshop Prerequisites

  1. Install IntelliJ Community Edition
  2. Install Git
  3. Clone This Project
  4. Checkout the correct branch for your workshop
  5. Install JDK
  6. Install Chrome

Installation

There are two ways to install everything needed for this course. If you are creating a developer environment that will be used in more than just this workshop, I recommend installing everything separately, making sure you've followed instructions on how to make sure everything is recognized properly on your system.

If you just need to have a working environment for this course, or if you had a problem with installing items separately, then we'll install everything via IntelliJ directly.

IntelliJ

IntelliJ is an integrated development environment (IDE) that incorporates several tools for developing and running Java code. It is developed by JetBrains and is available as an open source Community edition, and in a proprietary commercial Ultimate edition. Either edition can be used for commercial development.

Git

Git is a free and open source distributed version-control system for tracking changes in any set of files. It lets you check out code from a repository, work with that code on your own branch, and then merge that code with any changes that have been made by other developers.

To Install Git via IntelliJ, start by choosing to load a project by VCS:

Import Project From GitHub

If Git is not properly installed, IntilliJ will show this message and provide a one-click option to download and install it:

Specify Repository to Clone

JDK

The Java Development Kit (JDK) is one of three core technology packages used in Java programming, along with the JVM (Java Virtual Machine) and the JRE (Java Runtime Environment). The JDK is required to compile and execute Java code.

Make sure you have cloned the AdvancedSelenium project onto your local machine as shown in the image from the previous section, then open the SeleniumTest.java file as shown here:

Selenium Test java file

If you do not have a JDK installed, IntelliJ will display a yellow warning bar at the top of the file along with an option to download Amazon Corretto, which is a no-cost distribution of the Open Java Development Kit.

Missing JDK Installation Link

Run a Test

To ensure that everything is working properly, right click on the SeleniumTest.java file and select Run 'SeleniumTest':

Run SeleniumTest

You should see a Chrome browser window pop up and then go away, and the results in the Run Tab will show a green check mark and a "Process finished with exit code 0" message:

Results from a successful test

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.