mkdir widgetastic
cd widgetastic
Pull tutorials from the [tutorial Github repo(https://github.com/digitronik/tutorial_widgetastic)
git clone https://github.com/digitronik/tutorial_widgetastic.git
- If you don't have
virtualenv
. Install virtualenv.
python -m pip install --user virtualenv
- Create virtual environment
python -m virtualenv env
- Activate Virtual Environment
source env/bin/activate
- Deactivate Virtual Environment
deactivate
- Widgetastic Core
It includes widgetastic
main classes
and some basicwidgets
- Widgetastic Patternfly
It includes
patternfly
andbootstrap
widgets - Selenium
For selenium
webdriver
to interact with Web-UI. - Ipython
A powerful
python
interactive shell to access things
cd tutorial_widgetastic
pip install -r requirements.txt
In your user shell
just type
ipython
Import webdriver
from selenium
in ipython
. Assign a browser as Firefox
. It should open Firefox
browser and get
command of selenium
should open url
which you point out.
from selenium import webdriver
selenium = webdriver.Firefox()
selenium.get('http://github.com')
Geat you have done it.....
WebDriverException
: Message:'geckodriver'
executable needs to be in PATH. You need to download and set the path forgreckdriver
- Download greckdirver
- Extract and copy geckodriver in
/usr/local/bin
. You can export path as well.