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 classesand some basicwidgets - Widgetastic Patternfly
It includes
patternflyandbootstrapwidgets - Selenium
For selenium
webdriverto interact with Web-UI. - Ipython
A powerful
pythoninteractive 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.