zelium 0.1.1__tar.gz → 0.1.6__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.
- {zelium-0.1.1/src/zelium.egg-info → zelium-0.1.6}/PKG-INFO +5 -4
- {zelium-0.1.1 → zelium-0.1.6}/README.md +1 -1
- {zelium-0.1.1 → zelium-0.1.6}/pyproject.toml +5 -4
- {zelium-0.1.1 → zelium-0.1.6}/src/zelium/__init__.py +2 -2
- {zelium-0.1.1 → zelium-0.1.6}/src/zelium/alarm.py +2 -2
- {zelium-0.1.1 → zelium-0.1.6}/src/zelium/config.py +1 -1
- {zelium-0.1.1 → zelium-0.1.6}/src/zelium/helpers.py +1 -1
- {zelium-0.1.1 → zelium-0.1.6}/src/zelium/js.py +1 -1
- {zelium-0.1.1 → zelium-0.1.6}/src/zelium/tools.py +1 -1
- {zelium-0.1.1 → zelium-0.1.6/src/zelium.egg-info}/PKG-INFO +5 -4
- {zelium-0.1.1 → zelium-0.1.6}/src/zelium.egg-info/requires.txt +1 -0
- zelium-0.1.6/tests/test.py +21 -0
- zelium-0.1.1/tests/test.py +0 -21
- {zelium-0.1.1 → zelium-0.1.6}/MANIFEST.in +0 -0
- {zelium-0.1.1 → zelium-0.1.6}/setup.cfg +0 -0
- {zelium-0.1.1 → zelium-0.1.6}/src/zelium/xpath.py +0 -0
- {zelium-0.1.1 → zelium-0.1.6}/src/zelium.egg-info/SOURCES.txt +0 -0
- {zelium-0.1.1 → zelium-0.1.6}/src/zelium.egg-info/dependency_links.txt +0 -0
- {zelium-0.1.1 → zelium-0.1.6}/src/zelium.egg-info/top_level.txt +0 -0
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: zelium
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: Intelligent abstraction layer over Selenium
|
|
5
5
|
Author-email: Iván <yupivangh@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
7
|
-
Project-URL: Homepage, https://github.com/yup-Ivan/
|
|
8
|
-
Project-URL: Repository, https://github.com/yup-Ivan/
|
|
7
|
+
Project-URL: Homepage, https://github.com/yup-Ivan/zelium
|
|
8
|
+
Project-URL: Repository, https://github.com/yup-Ivan/zelium
|
|
9
9
|
Requires-Python: >=3.9
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
Requires-Dist: selenium>=4.0
|
|
12
12
|
Requires-Dist: selenium-wire>=5.1.0
|
|
13
13
|
Requires-Dist: requests
|
|
14
14
|
Requires-Dist: typing-extensions
|
|
15
|
+
Requires-Dist: blinker<1.8
|
|
15
16
|
|
|
16
17
|
# ZELIUM
|
|
17
18
|
|
|
@@ -44,7 +45,7 @@ It is designed to:
|
|
|
44
45
|
## 📁 Project Structure
|
|
45
46
|
|
|
46
47
|
```text
|
|
47
|
-
|
|
48
|
+
zelium/
|
|
48
49
|
├── __init__.py # Public API of the framework (exports and aliases)
|
|
49
50
|
├── alarm.py # Handling browser alerts, confirms, and prompts
|
|
50
51
|
├── config.py # Global initialization and configuration (driver, options…)
|
|
@@ -29,7 +29,7 @@ It is designed to:
|
|
|
29
29
|
## 📁 Project Structure
|
|
30
30
|
|
|
31
31
|
```text
|
|
32
|
-
|
|
32
|
+
zelium/
|
|
33
33
|
├── __init__.py # Public API of the framework (exports and aliases)
|
|
34
34
|
├── alarm.py # Handling browser alerts, confirms, and prompts
|
|
35
35
|
├── config.py # Global initialization and configuration (driver, options…)
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "zelium"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.6"
|
|
8
8
|
description = "Intelligent abstraction layer over Selenium"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
@@ -18,12 +18,13 @@ dependencies = [
|
|
|
18
18
|
"selenium>=4.0",
|
|
19
19
|
"selenium-wire>=5.1.0",
|
|
20
20
|
"requests",
|
|
21
|
-
"typing-extensions"
|
|
21
|
+
"typing-extensions",
|
|
22
|
+
"blinker<1.8",
|
|
22
23
|
]
|
|
23
24
|
|
|
24
25
|
[project.urls]
|
|
25
|
-
Homepage = "https://github.com/yup-Ivan/
|
|
26
|
-
Repository = "https://github.com/yup-Ivan/
|
|
26
|
+
Homepage = "https://github.com/yup-Ivan/zelium"
|
|
27
|
+
Repository = "https://github.com/yup-Ivan/zelium"
|
|
27
28
|
|
|
28
29
|
[tool.setuptools]
|
|
29
30
|
package-dir = {"" = "src"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# zelium/__init__.py
|
|
2
2
|
from .js import JS
|
|
3
3
|
from .alarm import Alarm
|
|
4
4
|
from .tools import open
|
|
@@ -9,7 +9,7 @@ from .xpath import (
|
|
|
9
9
|
delDisable,
|
|
10
10
|
)
|
|
11
11
|
|
|
12
|
-
__version__ = "0.1.
|
|
12
|
+
__version__ = "0.1.6"
|
|
13
13
|
|
|
14
14
|
# ─────────────────────────────
|
|
15
15
|
# Alias (multi-idioma / semánticos)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# zelium/alarm.py
|
|
2
2
|
from selenium.common.exceptions import NoAlertPresentException
|
|
3
3
|
from selenium.webdriver.remote.webdriver import WebDriver
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ class Alarm:
|
|
|
12
12
|
@classmethod
|
|
13
13
|
def _get_alert(cls):
|
|
14
14
|
if cls._driver is None:
|
|
15
|
-
raise RuntimeError("Driver no asignado. Usa
|
|
15
|
+
raise RuntimeError("Driver no asignado. Usa zelium.alarm.set_driver(driver)")
|
|
16
16
|
try:
|
|
17
17
|
return cls._driver.switch_to.alert
|
|
18
18
|
except NoAlertPresentException:
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: zelium
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: Intelligent abstraction layer over Selenium
|
|
5
5
|
Author-email: Iván <yupivangh@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
7
|
-
Project-URL: Homepage, https://github.com/yup-Ivan/
|
|
8
|
-
Project-URL: Repository, https://github.com/yup-Ivan/
|
|
7
|
+
Project-URL: Homepage, https://github.com/yup-Ivan/zelium
|
|
8
|
+
Project-URL: Repository, https://github.com/yup-Ivan/zelium
|
|
9
9
|
Requires-Python: >=3.9
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
Requires-Dist: selenium>=4.0
|
|
12
12
|
Requires-Dist: selenium-wire>=5.1.0
|
|
13
13
|
Requires-Dist: requests
|
|
14
14
|
Requires-Dist: typing-extensions
|
|
15
|
+
Requires-Dist: blinker<1.8
|
|
15
16
|
|
|
16
17
|
# ZELIUM
|
|
17
18
|
|
|
@@ -44,7 +45,7 @@ It is designed to:
|
|
|
44
45
|
## 📁 Project Structure
|
|
45
46
|
|
|
46
47
|
```text
|
|
47
|
-
|
|
48
|
+
zelium/
|
|
48
49
|
├── __init__.py # Public API of the framework (exports and aliases)
|
|
49
50
|
├── alarm.py # Handling browser alerts, confirms, and prompts
|
|
50
51
|
├── config.py # Global initialization and configuration (driver, options…)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import zelium
|
|
2
|
+
import time
|
|
3
|
+
|
|
4
|
+
driver = zelium.start()
|
|
5
|
+
|
|
6
|
+
zelium.open("http://127.0.0.1:5000", driver)
|
|
7
|
+
time.sleep(2)
|
|
8
|
+
|
|
9
|
+
zelium.alarm.accept()
|
|
10
|
+
time.sleep(2)
|
|
11
|
+
|
|
12
|
+
zelium.js.quitar_readonly("//input[@id='fecha']")
|
|
13
|
+
time.sleep(2)
|
|
14
|
+
|
|
15
|
+
zelium.js.set_value("//input[@id='nombre']", "Iván")
|
|
16
|
+
|
|
17
|
+
zelium.js.scroll(300)
|
|
18
|
+
|
|
19
|
+
time.sleep(5)
|
|
20
|
+
|
|
21
|
+
driver.quit()
|
zelium-0.1.1/tests/test.py
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import Zelium
|
|
2
|
-
import time
|
|
3
|
-
|
|
4
|
-
driver = Zelium.start()
|
|
5
|
-
|
|
6
|
-
Zelium.open("http://127.0.0.1:5000", driver)
|
|
7
|
-
time.sleep(2)
|
|
8
|
-
|
|
9
|
-
Zelium.alarm.accept()
|
|
10
|
-
time.sleep(2)
|
|
11
|
-
|
|
12
|
-
Zelium.js.quitar_readonly("//input[@id='fecha']")
|
|
13
|
-
time.sleep(2)
|
|
14
|
-
|
|
15
|
-
Zelium.js.set_value("//input[@id='nombre']", "Iván")
|
|
16
|
-
|
|
17
|
-
Zelium.js.scroll(300)
|
|
18
|
-
|
|
19
|
-
time.sleep(5)
|
|
20
|
-
|
|
21
|
-
driver.quit()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|