robotframework-browser-tray 1.2.0__tar.gz → 1.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {robotframework_browser_tray-1.2.0 → robotframework_browser_tray-1.2.1}/PKG-INFO +24 -3
- {robotframework_browser_tray-1.2.0 → robotframework_browser_tray-1.2.1}/README.md +22 -2
- {robotframework_browser_tray-1.2.0 → robotframework_browser_tray-1.2.1}/pyproject.toml +7 -2
- robotframework_browser_tray-1.2.1/src/BrowserTray/__main__.py +3 -0
- {robotframework_browser_tray-1.2.0/src/robotframework_browser_tray → robotframework_browser_tray-1.2.1/src/BrowserTray}/tray.py +3 -3
- {robotframework_browser_tray-1.2.0/src/robotframework_browser_tray → robotframework_browser_tray-1.2.1/src/BrowserTray}/__init__.py +0 -0
- {robotframework_browser_tray-1.2.0/src/robotframework_browser_tray → robotframework_browser_tray-1.2.1/src/BrowserTray}/chromium.png +0 -0
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: robotframework-browser-tray
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.1
|
|
4
4
|
Summary: Tray icon to start the Chromium installed by Browser Library
|
|
5
5
|
Author-email: Marduk Bolaños <marduk.bolanos@imbus.de>
|
|
6
6
|
Requires-Python: >=3.8.2
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
Requires-Dist: pystray>=0.19.5
|
|
9
9
|
Requires-Dist: robotframework-browser>=18.0.0
|
|
10
|
+
Project-URL: homepage, https://github.com/mardukbp/robotframework-browser-tray
|
|
10
11
|
|
|
11
12
|
# robotframework-browser-tray
|
|
12
13
|
|
|
@@ -35,7 +36,27 @@ pip install robotframework-browser-tray
|
|
|
35
36
|
|
|
36
37
|
2. Execute `browser-tray`
|
|
37
38
|
|
|
38
|
-
|
|
39
|
+
**Hint**: In case your environment does not allow executing browser-tray, call the Python module directly:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
python -m BrowserTray
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
3a. Click on the tray icon with the Chromium logo and select `Open Chromium`
|
|
46
|
+
|
|
47
|
+
3b. If Microsoft Edge is installed on your machine:
|
|
48
|
+
|
|
49
|
+
1. Close all instances of Microsoft Edge
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
taskkill /F /IM msedge.exe
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
2. Start Microsoft Edge with `Windows + R`
|
|
56
|
+
|
|
57
|
+
```powershell
|
|
58
|
+
msedge.exe --remote-debugging-port=1234
|
|
59
|
+
```
|
|
39
60
|
|
|
40
61
|
4. Add these lines to the top of the .robot file with your tests:
|
|
41
62
|
|
|
@@ -48,7 +69,7 @@ In order to use other ports execute:
|
|
|
48
69
|
|
|
49
70
|
```bash
|
|
50
71
|
browser-tray --pw-port=XXXX --cdp-port=XXXX
|
|
51
|
-
```
|
|
72
|
+
```
|
|
52
73
|
|
|
53
74
|
## How it works
|
|
54
75
|
|
|
@@ -25,7 +25,27 @@ pip install robotframework-browser-tray
|
|
|
25
25
|
|
|
26
26
|
2. Execute `browser-tray`
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
**Hint**: In case your environment does not allow executing browser-tray, call the Python module directly:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
python -m BrowserTray
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
3a. Click on the tray icon with the Chromium logo and select `Open Chromium`
|
|
35
|
+
|
|
36
|
+
3b. If Microsoft Edge is installed on your machine:
|
|
37
|
+
|
|
38
|
+
1. Close all instances of Microsoft Edge
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
taskkill /F /IM msedge.exe
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
2. Start Microsoft Edge with `Windows + R`
|
|
45
|
+
|
|
46
|
+
```powershell
|
|
47
|
+
msedge.exe --remote-debugging-port=1234
|
|
48
|
+
```
|
|
29
49
|
|
|
30
50
|
4. Add these lines to the top of the .robot file with your tests:
|
|
31
51
|
|
|
@@ -38,7 +58,7 @@ In order to use other ports execute:
|
|
|
38
58
|
|
|
39
59
|
```bash
|
|
40
60
|
browser-tray --pw-port=XXXX --cdp-port=XXXX
|
|
41
|
-
```
|
|
61
|
+
```
|
|
42
62
|
|
|
43
63
|
## How it works
|
|
44
64
|
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "robotframework-browser-tray"
|
|
3
|
-
version = "1.2.
|
|
3
|
+
version = "1.2.1"
|
|
4
4
|
description = "Tray icon to start the Chromium installed by Browser Library"
|
|
5
5
|
authors = [
|
|
6
6
|
{name = "Marduk Bolaños", email = "marduk.bolanos@imbus.de"},
|
|
7
7
|
]
|
|
8
|
+
urls = { homepage = "https://github.com/mardukbp/robotframework-browser-tray" }
|
|
9
|
+
|
|
8
10
|
dependencies = [
|
|
9
11
|
"pystray>=0.19.5",
|
|
10
12
|
"robotframework-browser>=18.0.0",
|
|
@@ -13,8 +15,11 @@ requires-python = ">=3.8.2"
|
|
|
13
15
|
readme = "README.md"
|
|
14
16
|
license = {text = "Apache 2.0"}
|
|
15
17
|
|
|
18
|
+
[tool.flit.module]
|
|
19
|
+
name = "BrowserTray"
|
|
20
|
+
|
|
16
21
|
[project.scripts]
|
|
17
|
-
browser-tray = "
|
|
22
|
+
browser-tray = "BrowserTray.tray:run"
|
|
18
23
|
|
|
19
24
|
[build-system]
|
|
20
25
|
requires = ["flit_core>=3.2,<4"]
|
|
@@ -89,9 +89,9 @@ class TrayIcon:
|
|
|
89
89
|
|
|
90
90
|
def is_running(cmd: str) -> bool:
|
|
91
91
|
process_list = subprocess.check_output(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
).splitlines()
|
|
92
|
+
# Set the character page to 65001 = UTF-8
|
|
93
|
+
f'chcp 65001 | TASKLIST /FI "IMAGENAME eq {cmd}"', shell=True
|
|
94
|
+
).decode('utf-8').splitlines()
|
|
95
95
|
instances = [
|
|
96
96
|
process
|
|
97
97
|
for process in process_list
|
|
File without changes
|