utils-seleniumxp 1.2.0__tar.gz → 1.3.0__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.
Files changed (21) hide show
  1. {utils_seleniumxp-1.2.0 → utils_seleniumxp-1.3.0}/PKG-INFO +11 -6
  2. {utils_seleniumxp-1.2.0 → utils_seleniumxp-1.3.0}/README.md +9 -4
  3. {utils_seleniumxp-1.2.0 → utils_seleniumxp-1.3.0}/pyproject.toml +15 -3
  4. {utils_seleniumxp-1.2.0 → utils_seleniumxp-1.3.0}/utils_seleniumxp/__init__.py +3 -1
  5. utils_seleniumxp-1.3.0/utils_seleniumxp/webdriver_addon.py +771 -0
  6. utils_seleniumxp-1.3.0/utils_seleniumxp/webdriver_addons/__init__.py +4 -0
  7. utils_seleniumxp-1.3.0/utils_seleniumxp/webdriver_addons/close_popups.py +350 -0
  8. utils_seleniumxp-1.3.0/utils_seleniumxp/webdriver_addons/shadow_dom.py +388 -0
  9. utils_seleniumxp-1.3.0/utils_seleniumxp/webdriver_addons/smartwait.py +0 -0
  10. utils_seleniumxp-1.3.0/utils_seleniumxp/webdriver_addons/windowopen_logger.py +195 -0
  11. utils_seleniumxp-1.2.0/utils_seleniumxp/webdriver_addon.py +0 -1415
  12. {utils_seleniumxp-1.2.0 → utils_seleniumxp-1.3.0}/.gitignore +0 -0
  13. {utils_seleniumxp-1.2.0 → utils_seleniumxp-1.3.0}/AUTHORS.md +0 -0
  14. {utils_seleniumxp-1.2.0 → utils_seleniumxp-1.3.0}/LICENSE.txt +0 -0
  15. {utils_seleniumxp-1.2.0 → utils_seleniumxp-1.3.0}/utils_seleniumxp/SeleniumPythonUtils.ini +0 -0
  16. {utils_seleniumxp-1.2.0 → utils_seleniumxp-1.3.0}/utils_seleniumxp/eventfiring_addon.py +0 -0
  17. {utils_seleniumxp-1.2.0 → utils_seleniumxp-1.3.0}/utils_seleniumxp/eventlistener.py +0 -0
  18. {utils_seleniumxp-1.2.0 → utils_seleniumxp-1.3.0}/utils_seleniumxp/locatorutils.py +0 -0
  19. {utils_seleniumxp-1.2.0 → utils_seleniumxp-1.3.0}/utils_seleniumxp/sessionhandling.py +0 -0
  20. {utils_seleniumxp-1.2.0 → utils_seleniumxp-1.3.0}/utils_seleniumxp/version.py +0 -0
  21. {utils_seleniumxp-1.2.0 → utils_seleniumxp-1.3.0}/utils_seleniumxp/webelement_addon.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: utils-seleniumxp
3
- Version: 1.2.0
3
+ Version: 1.3.0
4
4
  Summary: Package with utilities and functional extensions for Selenium webdriver Python language bindings
5
5
  Project-URL: Documentation, https://dornech.github.io/utils-seleniumxp
6
6
  Project-URL: Source, https://github.com/dornech/utils-seleniumxp
@@ -10,7 +10,7 @@ Author-email: dornech <dornech@gmx.de>
10
10
  License: GPL-3.0-only
11
11
  License-File: AUTHORS.md
12
12
  License-File: LICENSE.txt
13
- Keywords: Chrome,FireFox,Selenium,close popup,event-firing webdriver,factory function,parsel,requests,stealth-selenium,waitless,webdriver
13
+ Keywords: Chrome,FireFox,Selenium,close popup,event-firing webdriver,factory function,parsel,requests,shadow DOM,stealth-selenium,waitless,webdriver
14
14
  Classifier: Programming Language :: Python
15
15
  Classifier: Programming Language :: Python :: 3.11
16
16
  Classifier: Programming Language :: Python :: 3.12
@@ -48,12 +48,17 @@ The package consist of various helpers and extensions to the Selenium webdriver:
48
48
 
49
49
  Different from other packages extending the Selenium webdriver class this package does not work with
50
50
  wrapping the original webdriver but providing a mixin class or alternatively directly setting
51
- additional methods via 'setattr' in the original webdriver class. This is done and controlled
52
- via a pretty versatile custom factory function initializing the webdriver.
51
+ additional methods via 'setattr' in the original webdriver class (monkey patching). This is done
52
+ and controlled via a pretty versatile custom factory function initializing the webdriver.
53
+ The factory function includes stealthenizing mechanism. Beside typical script injection techniques
54
+ and for this reason to use pre-patched webdriver classes like "undetected chromedriver"
55
+ or other pre-patched webdriver classes. However, using pre-patched webdriver classes is not limited
56
+ to "undetected chromedriver"or patched classes for stealthenizing even the use of such functional enriched
57
+ wrappers contradict to the choosen monkey patching approach of SeleniumXP.
53
58
 
54
59
  The webelement extensions are done via setattr only. Implementing a mixin class would require
55
- to modify webdriver methods to return the new class with the mixin. So benefit of the
56
- settattr approach is that extending the webelement class is independent from changes to the
60
+ to modify webdriver methods to return the new class with the mixin. So benefit of the monkey patching
61
+ approach with setattr is that extending the webelement class is independent from changes to the
57
62
  webdriver class.
58
63
 
59
64
  Note: as I am coming from camel case notation I was struggling a little bit with the Python naming conventions.
@@ -15,12 +15,17 @@ The package consist of various helpers and extensions to the Selenium webdriver:
15
15
 
16
16
  Different from other packages extending the Selenium webdriver class this package does not work with
17
17
  wrapping the original webdriver but providing a mixin class or alternatively directly setting
18
- additional methods via 'setattr' in the original webdriver class. This is done and controlled
19
- via a pretty versatile custom factory function initializing the webdriver.
18
+ additional methods via 'setattr' in the original webdriver class (monkey patching). This is done
19
+ and controlled via a pretty versatile custom factory function initializing the webdriver.
20
+ The factory function includes stealthenizing mechanism. Beside typical script injection techniques
21
+ and for this reason to use pre-patched webdriver classes like "undetected chromedriver"
22
+ or other pre-patched webdriver classes. However, using pre-patched webdriver classes is not limited
23
+ to "undetected chromedriver"or patched classes for stealthenizing even the use of such functional enriched
24
+ wrappers contradict to the choosen monkey patching approach of SeleniumXP.
20
25
 
21
26
  The webelement extensions are done via setattr only. Implementing a mixin class would require
22
- to modify webdriver methods to return the new class with the mixin. So benefit of the
23
- settattr approach is that extending the webelement class is independent from changes to the
27
+ to modify webdriver methods to return the new class with the mixin. So benefit of the monkey patching
28
+ approach with setattr is that extending the webelement class is independent from changes to the
24
29
  webdriver class.
25
30
 
26
31
  Note: as I am coming from camel case notation I was struggling a little bit with the Python naming conventions.
@@ -22,7 +22,7 @@ license = { text = "GPL-3.0-only" }
22
22
  keywords = [
23
23
  "Selenium", "webdriver", "Chrome", "FireFox",
24
24
  "factory function", "event-firing webdriver", "close popup",
25
- "parsel", "requests", "stealth-selenium", "waitless"
25
+ "parsel", "requests", "shadow DOM", "stealth-selenium", "waitless"
26
26
  ]
27
27
  authors = [
28
28
  { name = "dornech", email = "dornech@gmx.de" },
@@ -96,7 +96,7 @@ exclude = [
96
96
  [tool.commitizen]
97
97
  name = "cz_customize"
98
98
  version_scheme = "pep440"
99
- version = "1.2.0"
99
+ version = "1.3.0"
100
100
  version_files = ["pyproject.toml:version"]
101
101
  tag_format = "v$version"
102
102
  # retry_after_failure = false
@@ -247,7 +247,8 @@ ignore_missing_imports = true
247
247
  pretty = true
248
248
  show_column_numbers = true
249
249
  warn_no_return = false
250
- warn_unused_ignores = true
250
+ # warn_unused_ignores = true
251
+ warn_unused_ignores = false
251
252
  warn_return_any = true
252
253
  warn_unused_configs = true
253
254
 
@@ -259,7 +260,18 @@ github_output = true
259
260
  github_warning_errors = ["DEP003"]
260
261
 
261
262
  [tool.deptry.package_module_name_map]
263
+ mkdocs-gen-files = "mkdocs_gen_files"
264
+ cssify = "cssify"
265
+ hatchling = "hatchling"
266
+ parsel = "parsel"
267
+ psutil = "psutil"
268
+ requests = "requests"
269
+ selenium = "selenium"
270
+ selenium-autowait = "selenium_autowait"
262
271
  selenium-requests = "seleniumrequests"
272
+ stealthenium = "stealthenium"
273
+ utils-mystuff = "utils_mystuff"
274
+ waitless = "waitless"
263
275
 
264
276
  [tool.cruft]
265
277
  skip = ["README.md", "CHANGELOG.MD", "src/", "tests/", "docs/", "notebooks/"]
@@ -119,7 +119,9 @@ from utils_seleniumxp.locatorutils import SeleniumLocatorXPATH as SeleniumLocato
119
119
  from utils_seleniumxp.locatorutils import SeleniumLocatorCSS as SeleniumLocatorCSS
120
120
  from utils_seleniumxp.locatorutils import parameterizedSeleniumLocator as parameterizedSeleniumLocator
121
121
  from utils_seleniumxp.locatorutils import parselSelectorExtension as parselSelectorExtension
122
+ from utils_seleniumxp.eventlistener import SimpleEventListener
123
+
124
+ # import modules to execute code
122
125
  import utils_seleniumxp.webdriver_addon as WebdriverAddOn
123
126
  import utils_seleniumxp.webelement_addon as WebelementAddOn
124
127
  import utils_seleniumxp.eventfiring_addon as EventFiringAddon
125
- from utils_seleniumxp.eventlistener import SimpleEventListener