refactoring

This commit is contained in:
frankknoll
2023-01-18 00:45:52 +01:00
parent 07027a3f45
commit a873d3d692

View File

@@ -16,7 +16,7 @@ from zipUtils import unzipAndRemove
def solveCaptchaAndStartFileDownload(driver, captchaImageFile):
saveCaptchaImageAs(driver, captchaImageFile)
textInCaptchaImage = getTextInCaptchaImage(captchaImageFile)
display('textInCaptchaImage: ', textInCaptchaImage)
print('textInCaptchaImage:', textInCaptchaImage)
driver.find_element(By.ID, "verificationCode").send_keys(textInCaptchaImage)
driver.find_element(By.CSS_SELECTOR, '[name="downloadbut"]').click()