cucu 1.0.8__py3-none-any.whl → 1.0.10__py3-none-any.whl

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.
cucu/browser/selenium.py CHANGED
@@ -1,4 +1,5 @@
1
1
  import logging
2
+ import os
2
3
 
3
4
  import chromedriver_autoinstaller
4
5
  import geckodriver_autoinstaller
@@ -8,7 +9,6 @@ from selenium.webdriver.chrome.options import Options as ChromeOptions
8
9
  from selenium.webdriver.common.by import By
9
10
  from selenium.webdriver.edge.options import Options as EdgeOptions
10
11
  from selenium.webdriver.firefox.options import Options as FirefoxOptions
11
- from selenium.webdriver.remote.remote_connection import RemoteConnection
12
12
 
13
13
  from cucu import config, edgedriver_autoinstaller, logger
14
14
  from cucu.browser.core import Browser
@@ -55,7 +55,7 @@ class Selenium(Browser):
55
55
  init()
56
56
 
57
57
  timeout = float(config.CONFIG["CUCU_SELENIUM_DEFAULT_TIMEOUT_S"])
58
- RemoteConnection.set_timeout(timeout)
58
+ os.environ["GLOBAL_DEFAULT_TIMEOUT"] = str(timeout)
59
59
 
60
60
  height = config.CONFIG["CUCU_BROWSER_WINDOW_HEIGHT"]
61
61
  width = config.CONFIG["CUCU_BROWSER_WINDOW_WIDTH"]
@@ -293,7 +293,7 @@ class Selenium(Browser):
293
293
 
294
294
  mht_data = None
295
295
  if self.driver._is_remote:
296
- cdp_url = f"{self.driver.command_executor._url}/session/{self.driver.session_id}/chromium/send_command_and_get_result"
296
+ cdp_url = f"{self.driver.command_executor._client_config.remote_server_addr}/session/{self.driver.session_id}/chromium/send_command_and_get_result"
297
297
  cdp_request_body = '{"cmd": "Page.captureSnapshot", "params": {}}'
298
298
  cdp_response = self.driver.command_executor._request(
299
299
  "POST", cdp_url, cdp_request_body
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cucu
3
- Version: 1.0.8
3
+ Version: 1.0.10
4
4
  Summary: Easy BDD web testing
5
- Project-URL: Homepage, https://github.com/dominodatalab/cucu
5
+ Project-URL: Homepage, https://github.com/dominodatalab/cucu/wiki
6
6
  Project-URL: Download, https://pypi.org/project/cucu/
7
7
  Project-URL: Source Code, https://github.com/dominodatalab/cucu
8
8
  Author-email: Domino Data Lab <open-source@dominodatalab.com>, Rodney Gomes <107359+rlgomes@users.noreply.github.com>, Cedric Young <4129217+ccedricyoung@users.noreply.github.com>, Xin Dong <104880864+ddl-xin@users.noreply.github.com>, Kavya <91882851+ddl-kavya@users.noreply.github.com>, Kevin Garton <71028750+ddl-kgarton@users.noreply.github.com>, Joy Liao <107583686+ddl-joy-liao@users.noreply.github.com>
@@ -42,7 +42,7 @@ Requires-Dist: psutil~=6.0.0
42
42
  Requires-Dist: pygls~=1.3.1
43
43
  Requires-Dist: pyyaml~=6.0.1
44
44
  Requires-Dist: requests<3.0.0,>=2.31.0
45
- Requires-Dist: selenium~=4.15
45
+ Requires-Dist: selenium~=4.28
46
46
  Requires-Dist: tabulate~=0.9.0
47
47
  Requires-Dist: tenacity~=9.0.0
48
48
  Description-Content-Type: text/markdown
@@ -11,7 +11,7 @@ cucu/utils.py,sha256=608b28WVWgzmFMAMLXpFWeXe3NjRZEhpEfcTnYy2JRM,8611
11
11
  cucu/browser/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  cucu/browser/core.py,sha256=YAHhj6AMf7kpZR57thQaPHVHVHwnMBzCI0yofIYtfaY,2355
13
13
  cucu/browser/frames.py,sha256=IW7kzRJn5PkbMaovIelAeCWO-T-2sOTwqaYBw-0-LKU,3545
14
- cucu/browser/selenium.py,sha256=c3B6IShD8Es-TGW-dxxNibGItJ4WEQI_xJpgc6uL6-E,11613
14
+ cucu/browser/selenium.py,sha256=FQBjOgUWmMqKyV8-OMJTuAgpwkpHUVJv0-o20dfJYQw,11593
15
15
  cucu/browser/selenium_tweaks.py,sha256=oUIhWVhBZbc9qsmQUJMpIr9uUWKxtgZBcnySWU6Yttk,879
16
16
  cucu/cli/__init__.py,sha256=uXX5yVG1konJ_INdlrcfMg-Tt_5_cSx29Ed8R8v908A,62
17
17
  cucu/cli/core.py,sha256=qFEEmTrj2avKoyYtPqQjd-tgvHp8R21NCtP_pknwEos,24225
@@ -76,8 +76,8 @@ cucu/steps/tables.js,sha256=Os2a7Fo-cg03XVli7USvcnBVad4N7idXr-HBuzdLvVQ,945
76
76
  cucu/steps/text_steps.py,sha256=Jj_GHoHeemNwVdUOdqcehArNp7WM-WMjljA4w0pLXuw,2576
77
77
  cucu/steps/variable_steps.py,sha256=WSctH3_xcxjijGPYZlxp-foC_SIAAKtF__saNtgZJbk,2966
78
78
  cucu/steps/webserver_steps.py,sha256=wWkpSvcSMdiskPkh4cqlepWx1nkvEpTU2tRXQmPDbyo,1410
79
- cucu-1.0.8.dist-info/METADATA,sha256=lqaL6ahZ-Hv_yHDHKscIqmmY9CEPqToCRW4jdU-lf-I,16245
80
- cucu-1.0.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
81
- cucu-1.0.8.dist-info/entry_points.txt,sha256=YEXTyEfIZbcV0GJ9R3Gfu3j6DcOJJK7_XHkJqE3Yiao,39
82
- cucu-1.0.8.dist-info/licenses/LICENSE,sha256=WfgJYF9EaQoL_OeWr2Qd0MxhhFegDfzWSUmvDTwFxis,1721
83
- cucu-1.0.8.dist-info/RECORD,,
79
+ cucu-1.0.10.dist-info/METADATA,sha256=VJAlhPK4Ca_0KXSgVq6cZR96QxgGaDfwWHAaq8V1ofI,16251
80
+ cucu-1.0.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
81
+ cucu-1.0.10.dist-info/entry_points.txt,sha256=YEXTyEfIZbcV0GJ9R3Gfu3j6DcOJJK7_XHkJqE3Yiao,39
82
+ cucu-1.0.10.dist-info/licenses/LICENSE,sha256=WfgJYF9EaQoL_OeWr2Qd0MxhhFegDfzWSUmvDTwFxis,1721
83
+ cucu-1.0.10.dist-info/RECORD,,
File without changes