Skip to content

Commit

Permalink
Update gazpar.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vingerha committed May 15, 2024
1 parent 8504060 commit 6760101
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions app/gazpar.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,20 @@ def login(self,username,password, download_folder, screenshot: bool = False, ver
# Type Password #####
logging.debug("Enter Password")
el_password.send_keys(password)

time.sleep(2)

if screenshot:
self.get_screenshot("04a_screenshot_enter_password.png")

re_btn = self.__browser.find_element(
By.CLASS_NAME, "eyeicon.visibility-16.button-show"
)
logging.debug("Using show password: %s", re_btn)
re_btn.click()
time.sleep(2)

if screenshot:
self.get_screenshot("04c_screenshot_after_show_password_button.png")

re_btn = self.__browser.find_element(
By.ID, "grdfButton"
Expand All @@ -334,7 +347,7 @@ def login(self,username,password, download_folder, screenshot: bool = False, ver
time.sleep(3)

if screenshot:
self.get_screenshot("04_screenshot_after_password_button.png")
self.get_screenshot("04c_screenshot_after_password_button.png")

self.__browser.switch_to.default_content()
time.sleep(3)
Expand Down

0 comments on commit 6760101

Please sign in to comment.