Code Monkey home page Code Monkey logo

selenium-test's Introduction

Description

Jumping into Selenium

How do I get set up?

Well this runs on python so, let's first make sure you have a python package manager (pip)

'sudo easy_install pip' or if you have HomeBrew 'brew install python'

install pip

Sweet! Now you have pip installed.

(begin optional virtual environment stuff)

Usually you would want to run with virtualenv for projects. It creates a shim for packages and executables so that version don't interfere with other projects.
http://virtualenvwrapper.readthedocs.io/en/latest/install.html#basic-installation

pip install virtualenvwrapper

look through this http://virtualenvwrapper.readthedocs.io/en/latest/install.html#basic-installation

mkvirtualenv VMforTestingSelenium
workon VMforTestingSelenium

(end optional virtual environment stuff)

now run

pip install -r requirements.txt

You now have everything that was listed in the requirements.txt file. (which in this case is only python's selenium package and dependencies)

Okay let's make sure we have a driver that selenium can use to control a browser https://sites.google.com/a/chromium.org/chromedriver/downloads <-- look here https://chromedriver.storage.googleapis.com/2.30/chromedriver_mac64.zip (latest I grabbed and is included in this directory, if you need to grab another make sure it is moved in this directory and called correctly (path) in the python file you run.

Okay let's test this puppy!

python python_org_search_chrome.py

It did a thing!

  • "Great! Look at the file you just ran and now you can start writing a test script."

It didn't do the thing!

  • " ¯\(ツ)/¯, message me and I'll see if I can help."

selenium-test's People

Contributors

tyler-weiss avatar

Watchers

 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.