bcpkgfox 0.16.64__py3-none-any.whl → 0.16.66__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/__init__.py CHANGED
@@ -225,7 +225,7 @@ def wait_for_element_disappear(object, type, timeout=10):
225
225
 
226
226
  return find_elements.backcode__dont_use__wait_for_d(driver, object, type, timeout=tempo)
227
227
 
228
- def selectfox(elemento, method, key, pure = None):
228
+ def selectfox(elemento, method, key, relative = None):
229
229
  """
230
230
  Seleciona uma opção em um elemento <select>.
231
231
 
@@ -233,6 +233,7 @@ def selectfox(elemento, method, key, pure = None):
233
233
  - elemento: Elemento <select> encontrado pelo Selenium.
234
234
  - method: Método de seleção ('index', 'text' ou 'value').
235
235
  - key: Valor usado na seleção (índice, texto visível ou valor do atributo 'value').
236
+ - relative: Ao invés de selecionar um elemento identico, seleciona um elemento que apenas contém a 'key'
236
237
 
237
238
  - Exemplo:
238
239
  elemento_select = bc.find_element_with_wait("xpath", '//select[@value="VALUE_DO_PRIMEIRO_SELECT"]')
@@ -264,12 +265,12 @@ def selectfox(elemento, method, key, pure = None):
264
265
  if method == "text":
265
266
  elements = select.options
266
267
  for elm in elements:
267
- if pure:
268
- if key == elm.text:
268
+ if relative:
269
+ if key.lower().strip() in elm.text.lower().strip():
269
270
  select.select_by_visible_text(elm.text)
270
271
  return
271
272
  else:
272
- if key.lower().strip() in elm.text.lower().strip():
273
+ if key == elm.text:
273
274
  select.select_by_visible_text(elm.text)
274
275
  return
275
276
 
bcpkgfox/invoke_api.py CHANGED
@@ -426,7 +426,7 @@ def login_2fac(driver, certificate, system, token, code_timeout=60):
426
426
  self.driver.get("https://chromewebstore.google.com/detail/whom-gerenciador-de-certi/lnidijeaekolpfeckelhkomndglcglhh")
427
427
 
428
428
  try:
429
- tools.find_element_with_wait(By.XPATH, "//span[contains(text(), 'Instalar') or contains(text(), 'Obter') or contains(text(), 'Add to Chrome')]").click()
429
+ tools.find_element_with_wait(By.XPATH, "//span[contains(text(), 'no Chrome') or contains(text(), 'Usar') or contains(text(), 'Add to Chrome')]").click()
430
430
  except Exception as e:
431
431
  return
432
432
  time.sleep(5)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bcpkgfox
3
- Version: 0.16.64
3
+ Version: 0.16.66
4
4
  Summary: Biblioteca BCFOX
5
5
  Home-page: https://github.com/robotsbcfox/PacotePythonBCFOX
6
6
  Author: Guilherme Neri
@@ -1,13 +1,13 @@
1
- bcpkgfox/__init__.py,sha256=dJ6w1Lmpf7Xvp1JCSYWGFCexvz4DsqUggLPk8jey9Ds,16416
1
+ bcpkgfox/__init__.py,sha256=49TPbTUNI6xKcYk4blwseUZQTgHtRcNI1AFEqxSQ3wY,16540
2
2
  bcpkgfox/clean.py,sha256=80pJDTGmKmPiq73uL1IWopuxqVJF_bj_RVv-njkpl-A,8946
3
3
  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=1NC5vAOPBeILfRBTzfqkTQ0Y6FSSV2IWIeWj4zMXNMk,16904
7
+ bcpkgfox/invoke_api.py,sha256=94BAkIPdcX5EF2xem1s3cUBsMLVdM-pSYksVr0onCMg,16904
8
8
  bcpkgfox/system.py,sha256=3lyOWx893T6KiAI-jDv7zAo3oKPf0Q5CLgZ8TeFd0Do,7901
9
- bcpkgfox-0.16.64.dist-info/METADATA,sha256=CEBNy4-FWWYV-APj4Mx6tZ71hKgqtceXeBVPThxv0pw,1912
10
- bcpkgfox-0.16.64.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
11
- bcpkgfox-0.16.64.dist-info/entry_points.txt,sha256=qmaEg6K7Y0HOeaFo-G6lf44InGkeVI4I6hqobcY_nns,653
12
- bcpkgfox-0.16.64.dist-info/top_level.txt,sha256=h01SqyYBEfS72vkRFOlEDZBUSu9pzU0bdX4m9hWNNmw,9
13
- bcpkgfox-0.16.64.dist-info/RECORD,,
9
+ bcpkgfox-0.16.66.dist-info/METADATA,sha256=H2LthzRuLogLcUC8an6LtVnOMC3g60W3oBA9PalUyKc,1912
10
+ bcpkgfox-0.16.66.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
11
+ bcpkgfox-0.16.66.dist-info/entry_points.txt,sha256=qmaEg6K7Y0HOeaFo-G6lf44InGkeVI4I6hqobcY_nns,653
12
+ bcpkgfox-0.16.66.dist-info/top_level.txt,sha256=h01SqyYBEfS72vkRFOlEDZBUSu9pzU0bdX4m9hWNNmw,9
13
+ bcpkgfox-0.16.66.dist-info/RECORD,,