Skip to main content

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

  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
  1. Click on the tray icon with the Chromium logo

  2. 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:

  1. 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
  1. Start Edge using this shortcut

  2. 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.

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robotframework_browser_tray-1.8.4-py3-none-any.whl (66.2 kB view details)

Uploaded Python 3

File details

Details for the file robotframework_browser_tray-1.8.4-py3-none-any.whl.

File metadata

File hashes

Hashes for robotframework_browser_tray-1.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f2441e5467443b9416a94eac0a3992cbda66d63645151dc6becafc58f48acdf8
MD5 9e291892263666eb8e86ac5f70a717d6
BLAKE2b-256 08781612dbf2d11853c4c2dd7dd566c0b38aeb1c201e34af8c55f8e109cde6a7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.8.4 This release

1 file

1.8.3

1 file

1.8.2

2 files

1.8.1

2 files

1.8.0

2 files

1.7.0

2 files

1.6.1

2 files

1.6.0

2 files

1.5.2

2 files

1.5.1

2 files

1.5.0

2 files

1.4.0

2 files

1.3.0

2 files

1.2.2

2 files

1.2.1

2 files

1.2.0

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

2 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