setup-selenium-testing 0.1.6__py3-none-any.whl → 0.1.7__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -279,6 +279,9 @@ class SetupSelenium:
279
279
  options.set_preference("app.update.enabled", False)
280
280
  options.set_preference("network.prefetch-next", False)
281
281
  options.set_preference("network.dns.disablePrefetch", True)
282
+ options.set_preference(
283
+ "extensions.formautofill.addresses.capture.enabled", False
284
+ )
282
285
  return options
283
286
 
284
287
  @staticmethod
@@ -351,9 +354,11 @@ class SetupSelenium:
351
354
  # it's possible we no longer need to do these
352
355
  "--disable-gpu", # https://stackoverflow.com/q/51959986/2532408
353
356
  )
357
+ exp_prefs = {"autofill.profile_enabled": False}
354
358
  options = webdriver.ChromeOptions()
355
359
  for opt in opts:
356
360
  options.add_argument(opt)
361
+ options.add_experimental_option("prefs", exp_prefs)
357
362
  return options
358
363
 
359
364
  @staticmethod
@@ -484,9 +489,11 @@ class SetupSelenium:
484
489
  "--no-sandbox",
485
490
  "--disable-dev-shm-usage",
486
491
  )
492
+ exp_prefs = {"autofill.profile_enabled": False}
487
493
  options = webdriver.EdgeOptions()
488
494
  for opt in opts:
489
495
  options.add_argument(opt)
496
+ options.add_experimental_option("prefs", exp_prefs)
490
497
  return options
491
498
 
492
499
  @staticmethod
@@ -587,7 +594,7 @@ class SetupSelenium:
587
594
 
588
595
  def set_main_window_handle(self, window: str | None = None) -> str:
589
596
  """
590
- maintains the initial window handle as an attribute
597
+ Maintains the initial window handle as an attribute
591
598
 
592
599
  Most users will never utilize this. It's part of a legacy requirement for
593
600
  an old test suite
@@ -599,7 +606,7 @@ class SetupSelenium:
599
606
  except NoSuchWindowException:
600
607
  try:
601
608
  window = self.driver.window_handles[0]
602
- except WebDriverException: # noqa: TRY302
609
+ except WebDriverException: # noqa: TRY203
603
610
  # Have we closed all the windows?
604
611
  raise
605
612
  if window:
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: setup-selenium-testing
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: Setup Selenium for automation testing
5
5
  Home-page: https://github.com/bandophahita/setup_selenium
6
6
  License: MIT
@@ -17,13 +17,14 @@ Classifier: Programming Language :: Python :: 3.9
17
17
  Classifier: Programming Language :: Python :: 3.10
18
18
  Classifier: Programming Language :: Python :: 3.11
19
19
  Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
20
21
  Classifier: Programming Language :: Python :: 3 :: Only
21
22
  Provides-Extra: dev
22
23
  Provides-Extra: test
23
24
  Requires-Dist: black ; extra == "dev"
24
25
  Requires-Dist: mypy ; extra == "dev"
25
26
  Requires-Dist: pytest ; extra == "dev" or extra == "test"
26
- Requires-Dist: ruff (>=0.2.0) ; extra == "dev"
27
+ Requires-Dist: ruff (>=0.8.0) ; extra == "dev"
27
28
  Requires-Dist: selenium (>=4.7.0)
28
29
  Requires-Dist: semantic-version
29
30
  Requires-Dist: tox ; extra == "dev" or extra == "test"
@@ -0,0 +1,7 @@
1
+ setup_selenium/__init__.py,sha256=-w9Vvo72ZLaEyIEfc_Nh0bDDJz9W0pOy4rkRXurIJHI,63
2
+ setup_selenium/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ setup_selenium/setup_selenium.py,sha256=asqQhE6fXcivb2MK3PL90TcQcCBVr_2Mgx-_CULxfUk,21921
4
+ setup_selenium_testing-0.1.7.dist-info/LICENSE,sha256=KGdE-1D1chm3UNFtfE8x-EpVxhmv2zFx8oltbO8M1qE,1070
5
+ setup_selenium_testing-0.1.7.dist-info/METADATA,sha256=nKPKfJ3LRA3t7XBoipB0wnjlA7DEhfpzDewY88g9dy4,5408
6
+ setup_selenium_testing-0.1.7.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
7
+ setup_selenium_testing-0.1.7.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.0
2
+ Generator: poetry-core 2.0.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,7 +0,0 @@
1
- setup_selenium/__init__.py,sha256=-w9Vvo72ZLaEyIEfc_Nh0bDDJz9W0pOy4rkRXurIJHI,63
2
- setup_selenium/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- setup_selenium/setup_selenium.py,sha256=Gt4KKP1s-ADqvJY-FRvLGK3bX3nMXKQ8booLnKaTc3U,21576
4
- setup_selenium_testing-0.1.6.dist-info/LICENSE,sha256=KGdE-1D1chm3UNFtfE8x-EpVxhmv2zFx8oltbO8M1qE,1070
5
- setup_selenium_testing-0.1.6.dist-info/METADATA,sha256=mxSK2mKqxISsVvH24MK86OHLqxRYceV2YyYV0GrAxj8,5357
6
- setup_selenium_testing-0.1.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
7
- setup_selenium_testing-0.1.6.dist-info/RECORD,,