GithubHelp home page GithubHelp logo

fudong1127 / robotframework-selenium2library Goto Github PK

View Code? Open in Web Editor NEW

This project forked from robotframework/seleniumlibrary

0.0 1.0 0.0 110.15 MB

Web testing library for Robot Framework

License: Apache License 2.0

Python 95.88% CSS 0.63% JavaScript 3.50%

robotframework-selenium2library's Introduction

Selenium 2 (WebDriver) library for Robot Framework

https://api.travis-ci.org/rtomac/robotframework-selenium2library.png https://pypip.in/v/robotframework-selenium2library/badge.png

Introduction

Selenium2Library is a web testing library for Robot Framework that leverages the Selenium 2 (WebDriver) libraries from the Selenium project.

It is modeled after (and forked from) the SeleniumLibrary library, but re-implemented to use Selenium 2 and WebDriver technologies.

Installation

Using pip

The recommended installation method is using pip:

pip install robotframework-selenium2library

The main benefit of using pip is that it automatically installs all dependencies needed by the library. Other nice features are easy upgrading and support for un-installation:

pip install --upgrade robotframework-selenium2library
pip uninstall robotframework-selenium2library

Notice that using --upgrade above updates both the library and all its dependencies to the latest version. If you want, you can also install a specific version or upgrade only the Selenium tool used by the library:

pip install robotframework-selenium2library==1.4.1
pip install --upgrade selenium
pip install selenium==2.34

Proxy configuration

If you are behind a proxy, you can use --proxy command line option or set http_proxy and/or https_proxy environment variables to configure pip to use it. If you are behind an authenticating NTLM proxy, you may want to consider installing CNTML to handle communicating with it.

For more information about --proxy option and using pip with proxies in general see:

Manual installation

If you do not have network connection or cannot make proxy to work, you need to resort to manual installation. This requires installing both the library and its dependencies yourself.

  1. Make sure you have Robot Framework installed.

  2. Download source distributions (*.tar.gz) for the library and its dependencies:

  3. Extract each source distribution to a temporary location.

  4. Go each created directory from the command line and install each project using:

    python setup.py install
    

If you are on Windows, and there are Windows installers available for certain projects, you can use them instead of source distributions. Just download 32bit or 64bit installer depending on your system, double-click it, and follow the instructions.

Directory Layout

demo/
A simple demonstration, with an application running on localhost
doc/
Keyword documentation
src/
Python source code

Usage

To write tests with Robot Framework and Selenium2Library, Selenium2Library must be imported into your Robot test suite. See Robot Framework User Guide for more information.

Running the Demo

The demo directory contains an easily executable demo for Robot Framework using Selenium2Library. To run the demo, run:

python demo/rundemo.py

E.g.:

python demo/rundemo.py demo/login_tests

Getting Help

The user group for Robot Framework is the best place to get help. Consider including in the post:

  • Full description of what you are trying to do and expected outcome
  • Version number of Selenium2Library, Robot Framework, and Selenium
  • Traceback or other debug output containing error information

robotframework-selenium2library's People

Contributors

aaltat avatar adwu73 avatar bmannix avatar ekantola avatar emanlove avatar eweitz avatar harri avatar helioguilherme66 avatar isnogood avatar j1z0 avatar jollychang avatar jouk0 avatar jrantanen avatar jussimalinen avatar khusa avatar kontulai avatar laulaz avatar laurentbristiel avatar lina1 avatar maddabini avatar mkorpela avatar ombre42 avatar pekkaklarck avatar peritus avatar rspielmann avatar rtomac avatar socallongboard avatar spooning avatar stevejefferies avatar yanne 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.