bcpkgfox 0.16.59__tar.gz → 0.16.61__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bcpkgfox
3
- Version: 0.16.59
3
+ Version: 0.16.61
4
4
  Summary: Biblioteca BCFOX
5
5
  Home-page: https://github.com/robotsbcfox/PacotePythonBCFOX
6
6
  Author: Guilherme Neri
@@ -287,7 +287,12 @@ def login_2fac(driver, certificate, system, token, code_timeout=60):
287
287
  ID = response['ID']
288
288
 
289
289
  tools.find_element_with_wait(By.XPATH, '//input[@type="password"]').send_keys(CODE)
290
- tools.find_element_with_wait(By.XPATH, '//div/div[2]/button').click()
290
+ for _ in range(10):
291
+ try:
292
+ tools.find_element_with_wait(By.XPATH, '//div/div[2]/button', timeout=2).click()
293
+ time.sleep(1)
294
+ except:
295
+ break
291
296
 
292
297
  # Check the code result
293
298
  for _ in range(7):
@@ -387,6 +392,12 @@ def login_2fac(driver, certificate, system, token, code_timeout=60):
387
392
  else:
388
393
  break
389
394
 
395
+ # Fecha todas as janelas, exceto a última
396
+ for window in self.driver.window_handles[:-1]:
397
+ self.driver.switch_to.window(window)
398
+ self.driver.close()
399
+ self.driver.switch_to.window(self.driver.window_handles[-1])
400
+
390
401
  def extension_check(self):
391
402
 
392
403
  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.59
3
+ Version: 0.16.61
4
4
  Summary: Biblioteca BCFOX
5
5
  Home-page: https://github.com/robotsbcfox/PacotePythonBCFOX
6
6
  Author: Guilherme Neri
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="bcpkgfox",
5
- version="0.16.59",
5
+ version="0.16.61",
6
6
  author="Guilherme Neri",
7
7
  author_email="guilherme.neri@bcfox.com.br",
8
8
  description="Biblioteca BCFOX",
File without changes
File without changes
File without changes
File without changes