bcpkgfox 0.16.63__tar.gz → 0.16.65__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.
Potentially problematic release.
This version of bcpkgfox might be problematic. Click here for more details.
- {bcpkgfox-0.16.63 → bcpkgfox-0.16.65}/PKG-INFO +1 -1
- {bcpkgfox-0.16.63 → bcpkgfox-0.16.65}/bcpkgfox/invoke_api.py +9 -6
- {bcpkgfox-0.16.63 → bcpkgfox-0.16.65}/bcpkgfox.egg-info/PKG-INFO +1 -1
- {bcpkgfox-0.16.63 → bcpkgfox-0.16.65}/setup.py +1 -1
- {bcpkgfox-0.16.63 → bcpkgfox-0.16.65}/README.md +0 -0
- {bcpkgfox-0.16.63 → bcpkgfox-0.16.65}/bcpkgfox/__init__.py +0 -0
- {bcpkgfox-0.16.63 → bcpkgfox-0.16.65}/bcpkgfox/clean.py +0 -0
- {bcpkgfox-0.16.63 → bcpkgfox-0.16.65}/bcpkgfox/cli.py +0 -0
- {bcpkgfox-0.16.63 → bcpkgfox-0.16.65}/bcpkgfox/find_elements.py +0 -0
- {bcpkgfox-0.16.63 → bcpkgfox-0.16.65}/bcpkgfox/get_driver.py +0 -0
- {bcpkgfox-0.16.63 → bcpkgfox-0.16.65}/bcpkgfox/system.py +0 -0
- {bcpkgfox-0.16.63 → bcpkgfox-0.16.65}/bcpkgfox.egg-info/SOURCES.txt +0 -0
- {bcpkgfox-0.16.63 → bcpkgfox-0.16.65}/bcpkgfox.egg-info/dependency_links.txt +0 -0
- {bcpkgfox-0.16.63 → bcpkgfox-0.16.65}/bcpkgfox.egg-info/entry_points.txt +0 -0
- {bcpkgfox-0.16.63 → bcpkgfox-0.16.65}/bcpkgfox.egg-info/requires.txt +0 -0
- {bcpkgfox-0.16.63 → bcpkgfox-0.16.65}/bcpkgfox.egg-info/top_level.txt +0 -0
- {bcpkgfox-0.16.63 → bcpkgfox-0.16.65}/setup.cfg +0 -0
|
@@ -179,7 +179,7 @@ def login_2fac(driver, certificate, system, token, code_timeout=60):
|
|
|
179
179
|
self.code_timeout = code_timeout
|
|
180
180
|
self.driver = driver
|
|
181
181
|
|
|
182
|
-
class
|
|
182
|
+
class tool(login_2fac):
|
|
183
183
|
def find_element_with_wait(self, by, value, timeout=10):
|
|
184
184
|
global driver
|
|
185
185
|
return WebDriverWait(
|
|
@@ -255,10 +255,9 @@ def login_2fac(driver, certificate, system, token, code_timeout=60):
|
|
|
255
255
|
def codes_2_fac(self):
|
|
256
256
|
|
|
257
257
|
self.extension_check()
|
|
258
|
-
time.sleep(3)
|
|
259
258
|
|
|
260
259
|
try:
|
|
261
|
-
tools.find_element_with_wait(By.XPATH, '//input[@placeholder="Digite ou selecione um sistema pra acessar"]', timeout=
|
|
260
|
+
tools.find_element_with_wait(By.XPATH, '//input[@placeholder="Digite ou selecione um sistema pra acessar"]', timeout=2).send_keys(self.system)
|
|
262
261
|
code_insertion = True
|
|
263
262
|
|
|
264
263
|
except:
|
|
@@ -268,7 +267,7 @@ def login_2fac(driver, certificate, system, token, code_timeout=60):
|
|
|
268
267
|
|
|
269
268
|
try:
|
|
270
269
|
tools.find_element_with_wait(By.XPATH, '//*[@id="root"]/div/div[1]/div//div//input', timeout=1).send_keys('eliezer@bcfox.com.br')
|
|
271
|
-
|
|
270
|
+
time.sleep(1)
|
|
272
271
|
break
|
|
273
272
|
except:
|
|
274
273
|
self.driver.get('chrome-extension://lnidijeaekolpfeckelhkomndglcglhh/index.html')
|
|
@@ -409,6 +408,10 @@ def login_2fac(driver, certificate, system, token, code_timeout=60):
|
|
|
409
408
|
|
|
410
409
|
except Exception as e:
|
|
411
410
|
|
|
411
|
+
if 'eliezer@bcfox.com.br' in self.driver.page_source:
|
|
412
|
+
tools.find_element_with_wait(By.XPATH, "//span[text()='alterar']").click()
|
|
413
|
+
return
|
|
414
|
+
|
|
412
415
|
# Abrir uma nova aba
|
|
413
416
|
self.driver.execute_script("window.open('');")
|
|
414
417
|
|
|
@@ -423,7 +426,7 @@ def login_2fac(driver, certificate, system, token, code_timeout=60):
|
|
|
423
426
|
self.driver.get("https://chromewebstore.google.com/detail/whom-gerenciador-de-certi/lnidijeaekolpfeckelhkomndglcglhh")
|
|
424
427
|
|
|
425
428
|
try:
|
|
426
|
-
tools.find_element_with_wait(By.XPATH, "//span[contains(text(), '
|
|
429
|
+
tools.find_element_with_wait(By.XPATH, "//span[contains(text(), 'no Chrome') or contains(text(), 'Usar') or contains(text(), 'Add to Chrome')]").click()
|
|
427
430
|
except Exception as e:
|
|
428
431
|
return
|
|
429
432
|
time.sleep(5)
|
|
@@ -436,7 +439,7 @@ def login_2fac(driver, certificate, system, token, code_timeout=60):
|
|
|
436
439
|
|
|
437
440
|
self.driver.get('chrome-extension://lnidijeaekolpfeckelhkomndglcglhh/index.html')
|
|
438
441
|
|
|
439
|
-
tools =
|
|
442
|
+
tools = tool()
|
|
440
443
|
api = invokes_whoom()
|
|
441
444
|
bot = whoom_codes()
|
|
442
445
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|