Skip to main content

Struktog webdriver client plugin for thonny

Project description

Webdriver Plugin for the thonny IDE

Usage with struktog

All the following elements can be found in the "tools" menu of thonny. "Open website" opens the struktog website in the browser and shows the Python source code. "Start observing element by id" will observe the changes in the python code and send it directly to your thonny code view. "Stop observing element by id" will stop looking for changes and updating the code view. "Transform code view to JSON" will transform the python code view source code to a JSON representation which can be loaded by struktog. An example can be found here.

Warning

The browser Chromium is not supported. Advanced security features can only be set on Firefox.

Installation

  • Install a browser and webdriver which is supported by Selenium. You can get a list of supported software here.

  • Install the python dependencies

pip install -r requirements.txt --user

Start the plugin with thonny

cd /path/to/thonny/
PYTHONPATH=/path/to/thonny-webdriver/ python -m thonny

Usage in thonny

Click on the "Tools" section in the menu at the top of the program. And then select "Open Website". You will be asked to input a website. A new browser window will open with the desired website. After that, you can click on the "Tools" section in the menu again and select "Start observing element by id". You will be asked to input a HTML element id which will be observed in the background. To stop observing an elment you can select the "Stop observing element by id" option and provide the HTML element id.

Licenses

This project is using third party projects and libraries.

Name Website License
thonny https://thonny.org MIT
selenium https://github.com/SeleniumHQ/selenium/ Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for thonny-struktog-test, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size thonny_struktog_test-0.0.2-py3-none-any.whl (8.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size thonny-struktog-test-0.0.2.tar.gz (7.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page