cucu 1.2.5__py3-none-any.whl → 1.2.7__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/cli/core.py CHANGED
@@ -303,8 +303,6 @@ def run(
303
303
  if not dry_run:
304
304
  create_run(results, filepath)
305
305
 
306
- CONFIG.snapshot("core_run")
307
-
308
306
  try:
309
307
  if workers is None or workers == 1:
310
308
  if runtime_timeout:
@@ -491,8 +489,6 @@ def run(
491
489
  "there are failures, see above for details"
492
490
  )
493
491
  finally:
494
- CONFIG.restore(with_pop=True)
495
-
496
492
  if dumper is not None:
497
493
  dumper.stop()
498
494
 
@@ -163,6 +163,16 @@ def navigate_to_the_url(ctx, url):
163
163
  ctx.browser.navigate(url)
164
164
 
165
165
 
166
+ @step('I save the current browser url to the variable "{variable}"')
167
+ def save_current_browser_url_to_variable(ctx, variable):
168
+ ctx.check_browser_initialized()
169
+ current_url = ctx.browser.get_current_url()
170
+ config.CONFIG[variable] = current_url
171
+ logger.debug(
172
+ f"saved current browser url {current_url} to variable {variable}"
173
+ )
174
+
175
+
166
176
  @step("I switch to the previous browser")
167
177
  def switch_to_previous_browser(ctx):
168
178
  browser_index = ctx.browsers.index(ctx.browser)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: cucu
3
- Version: 1.2.5
3
+ Version: 1.2.7
4
4
  Summary: Easy BDD web testing
5
5
  Keywords: cucumber,selenium,behave
6
6
  Author: Domino Data Lab, Rodney Gomes, Cedric Young, Xin Dong, Kavya, Kevin Garton, Joy Liao
@@ -7,7 +7,7 @@ cucu/browser/frames.py,sha256=216ee4cd1267e4f91b31aa2f21e94078258ef93fb6b0e4f0a9
7
7
  cucu/browser/selenium.py,sha256=7940b60d9921508662ef4b154da344ff40216a719371ecb1fe908b213ecf37aa,13299
8
8
  cucu/browser/selenium_tweaks.py,sha256=a1422159584165b73daac99050932922bf6e5162b1b60641727c92594e98b6d9,879
9
9
  cucu/cli/__init__.py,sha256=b975f9c951b59289c9fc835d96b71f320f93b7fe7f712c76f4477c47cbfdd3c0,62
10
- cucu/cli/core.py,sha256=23014432183140fe2f1adfe644205151f8d367a0b6e2dd0ee18800c9aad9d8a7,27151
10
+ cucu/cli/core.py,sha256=b9b81e658d6a3eda8048ca4a2e3db3c5a76b22b76b231960fb08b2533347825d,27079
11
11
  cucu/cli/run.py,sha256=9e30943b42f71c2f16113ffb913ce07d36a721938420b30c28cd9d08ea7dae42,5713
12
12
  cucu/cli/steps.py,sha256=960e62b551ff0bed3fdd17a5597bfd5f6a90507820771bb12c21b01f99756dfe,4210
13
13
  cucu/cli/thread_dumper.py,sha256=6775e7612c62771ea9aa3950ef3bbe4ca3086195a4e33f5ce582dd3e471e9a25,1593
@@ -62,7 +62,7 @@ cucu/reporter/templates/layout.html,sha256=da20d16e6f1ab4ef268075a08a322f0c2ac13
62
62
  cucu/reporter/templates/scenario.html,sha256=bd30c10d37ed146a1db4da337d5b7b3a5f9fa694ea3e1d5b5b7d7f10d7350964,10115
63
63
  cucu/steps/__init__.py,sha256=b1e4a60120655aeebeeb06c56ef11b3f08a005c4578983f5f02e17ff6716f0d8,753
64
64
  cucu/steps/base_steps.py,sha256=d1f3ef75a2a86a7f253002ab0e72b4fb3ac02e9c66d753f5cd5018e4237b8970,1893
65
- cucu/steps/browser_steps.py,sha256=5e583f93bde8b1563918f158fcd063d922f6e4635cd5e319423b6711341d052d,12335
65
+ cucu/steps/browser_steps.py,sha256=893465e5f7e97f662b164e6a87ae795851c07923b0a04dc7161997863b19b5aa,12687
66
66
  cucu/steps/button_steps.py,sha256=7a3deead66dd7df8bb1e29a63dbadd50191d2c803fc5871f2e5b2a385fb9ff9b,2713
67
67
  cucu/steps/checkbox_steps.py,sha256=0761ca140faec2cac26b50e6cd2eeed68d571f5d9be41ccb3e0e6a635738e391,3386
68
68
  cucu/steps/command_steps.py,sha256=9d509cf3e4c48ad7ad93ece1938cf5c1ad28c2a2d0c87790547e531e2a14c3e9,5094
@@ -86,7 +86,7 @@ cucu/steps/text_steps.py,sha256=263fc61e81de7a637055d50e76a71e840acda7b58cf96323
86
86
  cucu/steps/variable_steps.py,sha256=59272d1f7ff17318e28c63d8665c69f9fa02fd220000ab45fffb1a36d81925b9,2966
87
87
  cucu/steps/webserver_steps.py,sha256=c169294af71231d8ac90f921e1caa57a95b1d6792f1294d4dad4574263c36f2a,1410
88
88
  cucu/utils.py,sha256=a79b12b89cc67409bda959310a384cacbe13f87e54241720f88bf303b7fcb9bb,10939
89
- cucu-1.2.5.dist-info/WHEEL,sha256=03f80d698bb4300c27bcafc3987ea73ef427fcb365e59e808e50d041a7f87b89,78
90
- cucu-1.2.5.dist-info/entry_points.txt,sha256=d7559122140cecbb949d0835940a1942836fbc1bd834dd666838104b8763c09a,40
91
- cucu-1.2.5.dist-info/METADATA,sha256=2d068e4f9b75fafa2cdae5f25a4bb612e24fce621847dfeef55eac3bc73c3924,16675
92
- cucu-1.2.5.dist-info/RECORD,,
89
+ cucu-1.2.7.dist-info/WHEEL,sha256=b70116f4076fa664af162441d2ba3754dbb4ec63e09d563bdc1e9ab023cce400,78
90
+ cucu-1.2.7.dist-info/entry_points.txt,sha256=d7559122140cecbb949d0835940a1942836fbc1bd834dd666838104b8763c09a,40
91
+ cucu-1.2.7.dist-info/METADATA,sha256=93fd25ede0d3e3ef27580b7e45cedde94f22eec76eb33f87fd6606c597bb9597,16675
92
+ cucu-1.2.7.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: uv 0.8.2
2
+ Generator: uv 0.8.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any