Tray icon and REPL for trying out Browser Library keywords using Chromium or Edge
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file robotframework_browser_tray-1.8.2.tar.gz.
File metadata
- Download URL: robotframework_browser_tray-1.8.2.tar.gz
- Upload date:
- Size: 66.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b82b16abc1ad3d972f19e33a80f2e040032053d0b55760ca31bdda93e6f7faf0
|
|
| MD5 |
0dd780e4ec7169f5a7c639bca4f2adb8
|
|
| BLAKE2b-256 |
acd114f008746843d8b419c45eb3385b3b0c34dd3202644736984726f5fd9b68
|
File details
Details for the file robotframework_browser_tray-1.8.2-py3-none-any.whl.
File metadata
- Download URL: robotframework_browser_tray-1.8.2-py3-none-any.whl
- Upload date:
- Size: 65.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7d287b397e9415053a259473e1f8abe8b46c92cd559ce5318a5bc6eefdd20a8
|
|
| MD5 |
8eb4b35bebba024118d464a15b74e826
|
|
| BLAKE2b-256 |
8cfcc992a9c3f241d34c5265c12b7ac88444db2be4d47c516ab9f17887a7b9e4
|