Skip to main content

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

  1. Install the package
pip install robotframework-browser-tray
  1. 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
  1. Start Microsoft Edge with Windows + R
msedge.exe --remote-debugging-port=1234
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robotframework_browser_tray-1.2.2.tar.gz (59.5 kB view hashes)

Uploaded Source

Built Distribution

robotframework_browser_tray-1.2.2-py3-none-any.whl (63.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page