Skip to main content

Robot Screenshot Listener

Listener for Automation testing Screenshots with Robot framework-Selenium,Browser and Appium Libraries

Installation

pip install robotframework-auto-screenshot-listener

Project Structure

Robot Screenshot Listener
├── robotframework_auto_screenshot_listener
│   ├── __init__.py               # Entry point of the application
│   ├── ScreenshotListener.py      # Handles reading and filtering messages
├── requirements.txt           # Lists project dependencies
└── README.md                  # Project documentation

Monitored Selenium Keywords The listener captures screenshots for the following Selenium keywords:

  1. Click Element
  2. Input Text
  3. Press Keys
  4. Get Text
  5. Get Element Attribute
  6. Page Should Contain
  7. Page Should Not Contain
  8. Element Should Be Visible
  9. Element Should Not Be Visible
  10. Close Browser
  11. Click Button
  12. Click Link
  13. Click
  14. Fill Text

How It Works . Test Start: Creates a root directory and test-specific subdirectory . Keyword Execution: Before each monitored Selenium keyword, captures a screenshot . File Naming: Screenshots are named sequentially (selenium_0.png, selenium_1.png, etc.) . Test End: Resets the screenshot counter for the next test

Technical Details

Class Structure . API Version: Uses Robot Framework Listener API version 2 . Key Methods: . start_test(): Initializes test-specific screenshot directory . start_keyword(): Captures screenshots before keyword execution . end_keyword(): Handles post-keyword cleanup

Dependencies . robot.libraries.BuiltIn: For accessing Robot Framework variables and keywords . robot.libraries.String: For string manipulation . os: For file system operations . shutil: For directory operations

Usage

robot --listener robotframework_auto_screenshot_listener.ScreenshotListener:ScreenshotDirectoryName <TestFilePath.robot>

Contributing

Feel free to submit issues or pull requests if you have suggestions or improvements for the project.

Metadata

Release files for robotframework-auto-screenshot-listener 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for robotframework-auto-screenshot-listener 0.1.8
File Size Uploaded
robotframework_auto_screenshot_listener-0.1.8.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for robotframework-auto-screenshot-listener 0.1.8
File Interpreter ABI Platform
robotframework_auto_screenshot_listener-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 kB

Release files / robotframework_auto_screenshot_listener-0.1.8.tar.gz

Download URL robotframework_auto_screenshot_listener-0.1.8.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1eee11e05266c7936521b0e1cb9a83e774d530fcee90a2a1e191bf008971b7d4
BLAKE2b-256 checksum
How to use checksums
831ede76870a112d7fcb80421afeb3ade58f60e890c67f4e9a72f605383c80a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / robotframework_auto_screenshot_listener-0.1.8-py3-none-any.whl

Download URL robotframework_auto_screenshot_listener-0.1.8-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3627a566252a2105a4ee96c8ccc836a90052fdd79a6bf7435306ea8d59092b71
BLAKE2b-256 checksum
How to use checksums
854b22d31a3e7e44f6d9c8b94c5d176e9cc6763a3aa8dab2f039e03c2abec1c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page