zelium 0.1.5__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.
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zelium
3
- Version: 0.1.5
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/Zelium
8
- Project-URL: Repository, https://github.com/yup-Ivan/Zelium
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
@@ -45,7 +45,7 @@ It is designed to:
45
45
  ## 📁 Project Structure
46
46
 
47
47
  ```text
48
- Zelium/
48
+ zelium/
49
49
  ├── __init__.py # Public API of the framework (exports and aliases)
50
50
  ├── alarm.py # Handling browser alerts, confirms, and prompts
51
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
- Zelium/
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.5"
7
+ version = "0.1.6"
8
8
  description = "Intelligent abstraction layer over Selenium"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -23,8 +23,8 @@ dependencies = [
23
23
  ]
24
24
 
25
25
  [project.urls]
26
- Homepage = "https://github.com/yup-Ivan/Zelium"
27
- Repository = "https://github.com/yup-Ivan/Zelium"
26
+ Homepage = "https://github.com/yup-Ivan/zelium"
27
+ Repository = "https://github.com/yup-Ivan/zelium"
28
28
 
29
29
  [tool.setuptools]
30
30
  package-dir = {"" = "src"}
@@ -1,4 +1,4 @@
1
- # Zelium/__init__.py
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.5"
12
+ __version__ = "0.1.6"
13
13
 
14
14
  # ─────────────────────────────
15
15
  # Alias (multi-idioma / semánticos)
@@ -1,4 +1,4 @@
1
- # Zelium/alarm.py
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 Zelium.alarm.set_driver(driver)")
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,4 +1,4 @@
1
- # Zelium/config.py
1
+ # zelium/config.py
2
2
  import os
3
3
  from seleniumwire import webdriver as sw_webdriver
4
4
  from selenium import webdriver as selenium_normal
@@ -1,4 +1,4 @@
1
- # Zelium/helpers.py
1
+ # zelium/helpers.py
2
2
  from selenium.webdriver.common.by import By
3
3
  from selenium.webdriver.support.ui import WebDriverWait
4
4
  from selenium.webdriver.support import expected_conditions as EC
@@ -1,4 +1,4 @@
1
- # Zelium/js.py
1
+ # zelium/js.py
2
2
  from selenium.common.exceptions import JavascriptException, NoSuchElementException
3
3
  from selenium.webdriver.remote.webdriver import WebDriver
4
4
  from selenium.webdriver.common.by import By
@@ -1,4 +1,4 @@
1
- # Zelium/tools.py
1
+ # zelium/tools.py
2
2
  from selenium.common.exceptions import WebDriverException
3
3
 
4
4
  def open(url, driver):
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zelium
3
- Version: 0.1.5
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/Zelium
8
- Project-URL: Repository, https://github.com/yup-Ivan/Zelium
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
@@ -45,7 +45,7 @@ It is designed to:
45
45
  ## 📁 Project Structure
46
46
 
47
47
  ```text
48
- Zelium/
48
+ zelium/
49
49
  ├── __init__.py # Public API of the framework (exports and aliases)
50
50
  ├── alarm.py # Handling browser alerts, confirms, and prompts
51
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()
@@ -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