Struktog webdriver client plugin for thonny
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.
The browser Chromium is not supported. Advanced security features can only be set on Firefox.
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.
This project is using third party projects and libraries.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for thonny-struktog-test-0.0.2.tar.gz
Hashes for thonny_struktog_test-0.0.2-py3-none-any.whl