bcpkgfox 0.16.60__py3-none-any.whl → 0.16.62__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
@@ -388,10 +388,19 @@ def login_2fac(driver, certificate, system, token, code_timeout=60):
388
388
  for _ in range(5):
389
389
  time.sleep(1)
390
390
  if len(self.driver.window_handles) == num_windows:
391
- tools.find_element_with_wait(By.XPATH, "//button[text()='Acessar']").click()
391
+ try:
392
+ tools.find_element_with_wait(By.XPATH, "//button[text()='Acessar']").click()
393
+ except:
394
+ break
392
395
  else:
393
396
  break
394
397
 
398
+ # Fecha todas as janelas, exceto a última
399
+ for window in self.driver.window_handles[:-1]:
400
+ self.driver.switch_to.window(window)
401
+ self.driver.close()
402
+ self.driver.switch_to.window(self.driver.window_handles[-1])
403
+
395
404
  def extension_check(self):
396
405
 
397
406
  self.driver.get('chrome-extension://lnidijeaekolpfeckelhkomndglcglhh/index.html')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bcpkgfox
3
- Version: 0.16.60
3
+ Version: 0.16.62
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=6k4GNZimGKKkntuzy54EDKuvc_N0XKWr2N_Ho7nINxw,33497
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=YzS-LaSX-RUqPIUtaDK1xs9RHV-lEh57mgJopoWTol4,16428
7
+ bcpkgfox/invoke_api.py,sha256=c80s0-iB0I_HoaIJwlS5m4mx0FRooeAxPAUWVRrLXfE,16801
8
8
  bcpkgfox/system.py,sha256=3lyOWx893T6KiAI-jDv7zAo3oKPf0Q5CLgZ8TeFd0Do,7901
9
- bcpkgfox-0.16.60.dist-info/METADATA,sha256=hZHo1K2scJ5hek6uu_WuoSz2PdLkxo36xpibsZ-wqnQ,1912
10
- bcpkgfox-0.16.60.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
11
- bcpkgfox-0.16.60.dist-info/entry_points.txt,sha256=qmaEg6K7Y0HOeaFo-G6lf44InGkeVI4I6hqobcY_nns,653
12
- bcpkgfox-0.16.60.dist-info/top_level.txt,sha256=h01SqyYBEfS72vkRFOlEDZBUSu9pzU0bdX4m9hWNNmw,9
13
- bcpkgfox-0.16.60.dist-info/RECORD,,
9
+ bcpkgfox-0.16.62.dist-info/METADATA,sha256=2S3xtrKySh-4YYvFxpBC2mLTa4_qa7IuFxvXe0oMRVA,1912
10
+ bcpkgfox-0.16.62.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
11
+ bcpkgfox-0.16.62.dist-info/entry_points.txt,sha256=qmaEg6K7Y0HOeaFo-G6lf44InGkeVI4I6hqobcY_nns,653
12
+ bcpkgfox-0.16.62.dist-info/top_level.txt,sha256=h01SqyYBEfS72vkRFOlEDZBUSu9pzU0bdX4m9hWNNmw,9
13
+ bcpkgfox-0.16.62.dist-info/RECORD,,