Tray icon to start the Chromium installed by Browser Library
Project description
robotframework-browser-tray
A tray icon for starting the Chromium installed by Browser Library
Requirements
- NodeJS >= 18
- Windows
Use Cases
-
Execute tests incrementally using e.g. RobotCode
-
Test selectors in an open web page interactively using irobot
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
3a. Click on the tray icon with the Chromium logo and select Open Chromium
3b. If Microsoft Edge is installed on your machine:
1. Close all instances of Microsoft Edge
```
taskkill /F /IM msedge.exe
```
2. Start Microsoft Edge with `Windows + R`
```powershell
msedge.exe --remote-debugging-port=1234
```
- Add these lines to the top of the .robot file with your tests:
Library Browser playwright_process_port=55555
Test Setup Connect To Browser http://localhost:1234 chromium use_cdp=True
In order to use other ports execute:
browser-tray --pw-port=XXXX --cdp-port=XXXX
How it works
On start up it checks whether rfbrowser init chromium
has been executed in the current environment.
If this requirement is met the Playwright wrapper is started with node site-packages/Browser/wrapper/index.js 55555
.
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
.
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
Hashes for robotframework_browser_tray-1.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f3b85170127187344a334f859aa57d12a711b3f82b5020d9bcad90caff2549a |
|
MD5 | 3a44d42e4fd350a88c6876ed695737b7 |
|
BLAKE2b-256 | 7232f33c9ebc96e233e07c38f8e6d08f5dffe6fb2107da01d68f773e78b6b255 |
Hashes for robotframework_browser_tray-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58b8a6e12f56e924a3d6830674c27eb46d42e227e412f293eb7375944cf4ceca |
|
MD5 | 5234e3d5a8b69fa036f5691485866d36 |
|
BLAKE2b-256 | acaa035e93ea47f4ef43598ee3c15201b1a4dc82c56e58607cde6a18c1d0301d |