bcpkgfox 0.16.74__py3-none-any.whl → 0.16.76__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.

Potentially problematic release.


This version of bcpkgfox might be problematic. Click here for more details.

bcpkgfox/invoke_api.py CHANGED
@@ -187,12 +187,17 @@ def login_2fac(driver, certificate, system, token, code_timeout=60):
187
187
 
188
188
  def __monitor(self):
189
189
  while self.status:
190
- self.driver = bot.driver
190
+
191
+ handles = self.driver.window_handles
192
+ if len(handles) > 1:
193
+ self.driver.switch_to.window(self.driver.window_handles[-1])
194
+
191
195
  try:
192
196
  alert = self.driver.switch_to.alert
193
197
  alert.accept()
194
198
  except:
195
199
  pass
200
+
196
201
  time.sleep(0.1)
197
202
 
198
203
  def start(self):
@@ -480,6 +485,7 @@ def login_2fac(driver, certificate, system, token, code_timeout=60):
480
485
  handles = self.driver.window_handles
481
486
  self.driver.switch_to.window(handles[-1])
482
487
  if len(handles) > 1:
488
+ protection.stop()
483
489
  self.driver.switch_to.window(handles[0])
484
490
  self.driver.close()
485
491
  self.driver.switch_to.window(handles[-1])
@@ -494,4 +500,3 @@ def login_2fac(driver, certificate, system, token, code_timeout=60):
494
500
  bot.extension_check()
495
501
  protection.start()
496
502
  bot.codes_2_fac()
497
- protection.stop()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bcpkgfox
3
- Version: 0.16.74
3
+ Version: 0.16.76
4
4
  Summary: Biblioteca BCFOX
5
5
  Home-page: https://github.com/robotsbcfox/PacotePythonBCFOX
6
6
  Author: Guilherme Neri
@@ -4,10 +4,10 @@ bcpkgfox/cli.py,sha256=E1Yahd8jIjUwxM6EMHveDDne5-fh8QeAvAhyATNatEo,33541
4
4
  bcpkgfox/exec_file.py,sha256=fl_Do2SlF7JuXazpNTod-e_0WZUk355fbd7ustQvi40,3728
5
5
  bcpkgfox/find_elements.py,sha256=oeB-73LqMLoKchozPXuxRkThBju9IgUKqbgU-2AAq0s,23027
6
6
  bcpkgfox/get_driver.py,sha256=ohimk9E2hL6T35IXv0XX0uvWDGCUZvZDlPMnuRjV1R0,30490
7
- bcpkgfox/invoke_api.py,sha256=qFGwzP_zp31UXHB-qkXji0r27Iui4p93gRROlgfwQ1E,18535
7
+ bcpkgfox/invoke_api.py,sha256=eaSCj-uOC4otpmr86fL16_nsvdMBW865bT6XlFmhUBs,18685
8
8
  bcpkgfox/system.py,sha256=3lyOWx893T6KiAI-jDv7zAo3oKPf0Q5CLgZ8TeFd0Do,7901
9
- bcpkgfox-0.16.74.dist-info/METADATA,sha256=yDIMM9cQmvzuUJXSDN445uRkf8DjE0n8l7tmaVz2Gmc,1912
10
- bcpkgfox-0.16.74.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
11
- bcpkgfox-0.16.74.dist-info/entry_points.txt,sha256=qmaEg6K7Y0HOeaFo-G6lf44InGkeVI4I6hqobcY_nns,653
12
- bcpkgfox-0.16.74.dist-info/top_level.txt,sha256=h01SqyYBEfS72vkRFOlEDZBUSu9pzU0bdX4m9hWNNmw,9
13
- bcpkgfox-0.16.74.dist-info/RECORD,,
9
+ bcpkgfox-0.16.76.dist-info/METADATA,sha256=UlRZzr0Szij111Jj4wZKjTi7fy1hEhAFAiiIwJSsyzc,1912
10
+ bcpkgfox-0.16.76.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
11
+ bcpkgfox-0.16.76.dist-info/entry_points.txt,sha256=qmaEg6K7Y0HOeaFo-G6lf44InGkeVI4I6hqobcY_nns,653
12
+ bcpkgfox-0.16.76.dist-info/top_level.txt,sha256=h01SqyYBEfS72vkRFOlEDZBUSu9pzU0bdX4m9hWNNmw,9
13
+ bcpkgfox-0.16.76.dist-info/RECORD,,