Skip to content

Commit

Permalink
update v3 [new interface]
Browse files Browse the repository at this point in the history
  • Loading branch information
mrk-qa committed Mar 9, 2024
1 parent 418e8e4 commit cfdac53
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
6 changes: 5 additions & 1 deletion calculadora.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@
estimate_page.resources_alb()
estimate_page.environments(sigla)
estimate_page.shared(sigla)


browser.close()

estimate_page.link()

except TargetClosedError:
show_error_message("Error", f"A página foi encerrada pelo usuário")
sys.exit(1)
Binary file modified dados_servidores_teste.xlsx
Binary file not shown.
Binary file modified data/processing/data_sigla.xlsx
Binary file not shown.
9 changes: 7 additions & 2 deletions pages/estimate.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ def resources_ec2(self):

environment.click()

notification = self.page.locator("//button[@aria-label='Close notification']")
if notification.is_visible():
notification.click()

preferences = self.page.locator("//button[@aria-label='Preferences']")
preferences.click()

Expand Down Expand Up @@ -320,11 +324,12 @@ def shared(self, sigla):
iagree.click()

self.page.wait_for_timeout(7000)

global link
copy_link = self.page.locator(".save-share-clipboard-wrapper div:first-child input").get_attribute("value")
link = copy_link

print(f"Calculadora da sigla {sigla}: " + link)
print("\n ------------------------------------------------------------ \n")

show_information_message_with_link("Aviso", f"Calculadora da sigla {sigla} gerada com sucesso\n\nClique no botão abaixo para copiar o link gerado\n", f"{link}")
def link(self):
show_information_message_with_link(f"Calculadora Sigla {sigla}", f"Calculadora da sigla {sigla} gerada com sucesso\n\nClique no botão abaixo para copiar o link gerado\n", f"{link}")
Binary file modified siglas/M1_AWS.xlsx
Binary file not shown.
Binary file modified siglas/M2_AWS.xlsx
Binary file not shown.

0 comments on commit cfdac53

Please sign in to comment.