bcpkgfox 0.16.59__py3-none-any.whl → 0.16.61__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.
- bcpkgfox/invoke_api.py +12 -1
- {bcpkgfox-0.16.59.dist-info → bcpkgfox-0.16.61.dist-info}/METADATA +1 -1
- {bcpkgfox-0.16.59.dist-info → bcpkgfox-0.16.61.dist-info}/RECORD +6 -6
- {bcpkgfox-0.16.59.dist-info → bcpkgfox-0.16.61.dist-info}/WHEEL +0 -0
- {bcpkgfox-0.16.59.dist-info → bcpkgfox-0.16.61.dist-info}/entry_points.txt +0 -0
- {bcpkgfox-0.16.59.dist-info → bcpkgfox-0.16.61.dist-info}/top_level.txt +0 -0
bcpkgfox/invoke_api.py
CHANGED
|
@@ -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
|
-
|
|
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')
|
|
@@ -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=
|
|
7
|
+
bcpkgfox/invoke_api.py,sha256=wyImK-dmOGQDGHykkvCfF7q6Jx1bNka_ae9zJ0P8gMY,16711
|
|
8
8
|
bcpkgfox/system.py,sha256=3lyOWx893T6KiAI-jDv7zAo3oKPf0Q5CLgZ8TeFd0Do,7901
|
|
9
|
-
bcpkgfox-0.16.
|
|
10
|
-
bcpkgfox-0.16.
|
|
11
|
-
bcpkgfox-0.16.
|
|
12
|
-
bcpkgfox-0.16.
|
|
13
|
-
bcpkgfox-0.16.
|
|
9
|
+
bcpkgfox-0.16.61.dist-info/METADATA,sha256=CjGhi6xPjCjY4MtDYdLy5LWcCoqEHLXP3Q2URbGIuTA,1912
|
|
10
|
+
bcpkgfox-0.16.61.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
11
|
+
bcpkgfox-0.16.61.dist-info/entry_points.txt,sha256=qmaEg6K7Y0HOeaFo-G6lf44InGkeVI4I6hqobcY_nns,653
|
|
12
|
+
bcpkgfox-0.16.61.dist-info/top_level.txt,sha256=h01SqyYBEfS72vkRFOlEDZBUSu9pzU0bdX4m9hWNNmw,9
|
|
13
|
+
bcpkgfox-0.16.61.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|