1. Installation¶
1.1 Introduction¶
sda (Selenium Data Attributes) is a simple library built using the selenium-python bindings to approach building testing frameworks in a more intuitive way.
sda (Selenium Data Attributes) only supported python version in 2.7 and is available on PyPi and on GitHub
1.2 PyPi¶
To install via PyPi make sure you first install Pip. Afterwards run the following command in your terminal:
sudo pip install sda
If you are having trouble installing the package use the following command:
sudo pip install --no-dependencies sda
1.3 GitHub¶
To install via Github you have two options for installers: 1. PyPi 2. Setuptools
To install sda using PyPi from Github you would run the following command:
sudo pip install git+git://github.com/jlane9/selenium_data_attributes
You can add an additional @branch-name at the end to install from a specific branch
To install sda using Setuptools:
Make sure you have git cli (command line interface) installed on your machine
cd to the directory that you want the source to be installed and execute the following command:
git clone https://github.com/jlane9/selenium_data_attributes
Move into that directory and install via setuptools:
cd selenium_data_attributes sudo python setup.py install
1.4 Dependencies¶
In case you are unable to install selenium from the dependencies, install using easy_install:
sudo python easy_install selenium
1.5 Updating¶
To update SDA just run:
sudo pip install -U sda
To be on the bleeding edge (not recommended) use:
sudo pip install git+git://github.com/jlane9/selenium_data_attributes.git@master#egg=sda