Coder Social home page Coder Social logo

startusingseleniumwebdriver's Introduction

startUsingSeleniumWebDriver

Recommend using the start Using Selenium 4 repo. This repo is for Selenium 3

This repo is deprecated and based on WebDriver 3

Source code to support getting started using Selenium WebDriver with Java

The source code has only really been uploaded in case people encounter problems following the instructions or make a very simple mistake that they cannot figure out.

Please read the comments below, and the source code comments if you are having trouble starting work with Firefox.

Steps

Run a Test on your chosen browser

If you are on a mac and have allowed Remote Execution in the Safari browser then you can use the command line:

mvn test -Dtest=MyFirstSafariTest

If you are using Chrome and have added ChromeDriver to the path then use the command line:

mvn test -Dtest=MyFirstChromeTest

If you are using Firefox and have added GeckoDriver to the path then use the command line:

mvn test -Dtest=MyFirstTest

Do not run mvn test because some of the tests are Platform and WebDriver version dependant and at least one will probably fail.

Update pom.xml

You may also wish to edit the pom.xml file and change the version of Selenium WebDriver to the current version listed on seleniumhq.org in the downloads section

Author: Alan Richardson

Running with Chrome

If you are using Chrome and have added ChromeDriver to the path then use the command line:

mvn test -Dtest=MyFirstChromeTest

Running with Firefox

If you are using Firefox and have added GeckoDriver to the path then use the command line:

mvn test -Dtest=MyFirstTest

Earlier versions of Firefox

If you wish to use earlier versions of Firefox then see the repo:

https://github.com/eviltester/startUsingLegacyFirefoxWebDriver

startusingseleniumwebdriver's People

Contributors

eviltester avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.