GithubHelp home page GithubHelp logo

getbase-simple-webdriver's Introduction

Get Base Simple Webdriver

simple example of selenium webdriver usage, with a bit of page object model

  • you need Base CRM account
  • modify LOGIN_EMAIL and LOGIN_PASSWORD in /getbase-simple-webdriver/src/test/java/com/pawelv/basecrm/Tests/Selenium2ExampleST.java

this project uses Selenium-Maven-Template, its readme below:

Selenium-Maven-Template

A maven template for Selenium that has the latest dependencies so that you can just check out and start writing tests in five easy steps.

  1. Open a terminal window/command prompt
  2. Clone this project.
  3. CD into project directory
  4. mvn clean install -U -Pselenium-tests
  5. mvn verify -Pselenium-tests

All dependencies should now be downloaded and the example google cheese test will have run successfully (Assuming you have Firefox installed in the default location)

What should I know?

  • To run any unit tests that test your Selenium framework you just need to ensure that all unit test file names end, or start with "test" and they will be run by step 4.
  • The maven surefire plugin has been used to create a profile with the id "selenium-tests" that configures surefire to pick up any java files that ends with the text "ST". This means that as long as all of your selenium test file names end with ST.java they will get picked up and run when you perform step 5.

Anything else?

Yes you can specify which browser to use by using one of the following switches:

  • -Dbrowser=firefox
  • -Dbrowser=chrome
  • -Dbrowser=ie
  • -Dbrowser=opera
  • -Dbrowser=htmlunit
  • -Dbrowser=ghostdriver

You don't need to worry about downloading the IEDriverServer, or chromedriver binaries, this project will do that for you automatically.

Not got PhantomJS? Don't worry that will be automatically downloaded for you as well!

getbase-simple-webdriver's People

Contributors

pavelw avatar

Watchers

 avatar

Forkers

struniu

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.