robotframework-browser-tray
Tray icon and REPL for trying out Browser Library keywords using Chromium or Edge
Requirements
- NodeJS >= 18
- Windows
Use Cases
-
Execute tests incrementally using e.g. RobotCode
-
Test selectors in an open web page interactively
How to use it
- Install the package
pip install robotframework-browser-tray
- Execute
browser-tray
Hint: In case your environment does not allow executing browser-tray, call the Python module directly:
python -m BrowserTray
-
Click on the tray icon with the Chromium logo
-
Open a Terminal and execute
ibrowser
Hint: In case your environment does not allow executing ibrowser, call the Python module directly:
python -m BrowserTray.ibrowser
ibrowser
ibrowser allows testing selectors in an open web page interactively.
To start it execute:
ibrowser
On start up it connects to a running Chromium (started using the tray icon) or Microsoft Edge (see below for instructions).
If you start a new browser while ibrowser is running, call the keyword "Connect" to connect ibrowser to it.
To exit ibrowser press Ctrl-D.
Usage in a Robot Framework Test Suite
Add these lines to the Settings section of the .robot file:
Library Browser
Test Setup Connect To Browser http://localhost:1234 chromium use_cdp=True
In order to use another port execute:
browser-tray --cdp-port=XXXX
Using Microsoft Edge
If Microsoft Edge is installed on your machine:
- Create a Shortcut to msedge.exe with the target:
"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --remote-debugging-port=1234 --user-data-dir=C:\Users\YOUR_USER\RFEdgeProfile
-
Start Edge using this shortcut
-
Execute
ibrowser
How it works
Selecting "Open Chromium" in the tray icon executes site-packages/Browser/wrapper/node_modules/playwright-core/.local-browsers/chromium-XX/chrome-win/chrome.exe --remote-debugging-port=1234 --test-type.
ibrowser is a batteries-included irobot that saves time by importing Browser Library and connecting to a running Chromium or Edge.
Metadata
Release files for robotframework-browser-tray 1.8.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| robotframework_browser_tray-1.8.4-py3-none-any.whl | Python 3 | none | any | Details |
Release files / robotframework_browser_tray-1.8.4-py3-none-any.whl
| Download URL | robotframework_browser_tray-1.8.4-py3-none-any.whl |
|---|---|
| Size | 66.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2441e5467443b9416a94eac0a3992cbda66d63645151dc6becafc58f48acdf8
|
|
BLAKE2b-256 checksum How to use checksums |
08781612dbf2d11853c4c2dd7dd566c0b38aeb1c201e34af8c55f8e109cde6a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for robotframework-browser-tray 1.8.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.