|
|
@@ -96,21 +96,21 @@ def checkOut():
|
|
|
except NoSuchElementException:
|
|
|
print("no text area to enter")
|
|
|
# Automated click of submit
|
|
|
- submitButton = driver.find_elements_by_xpath("//div[@class='uArJ5e UQuaGc Y5sE8d VkkpIf NqnGTe M9Bg4d']")
|
|
|
+ submitButton = driver.find_elements_by_xpath("//div[@role='button']")
|
|
|
# find the submit button
|
|
|
- # buttonText = submitButton[0].innerText
|
|
|
+ buttonText = submitButton[1].text
|
|
|
pressSubmit = input("Press submit? (y/n)")
|
|
|
if pressSubmit == "y":
|
|
|
- #print(buttonText)
|
|
|
+ print(buttonText + " clicked!")
|
|
|
submitButton[0].click()
|
|
|
time.sleep(1)
|
|
|
print("quitting")
|
|
|
driver.quit()
|
|
|
elif pressSubmit == "n":
|
|
|
- print("Manual mode")
|
|
|
+ print("Manual mode engaged.")
|
|
|
# find the back button
|
|
|
backButton = driver.find_elements_by_xpath("//div[@role='button']")
|
|
|
- #print(backButton[0].innerText)
|
|
|
+ print(backButton[0].text+ " clicked!")
|
|
|
backButton[0].click()
|
|
|
else:
|
|
|
print("invalid key pressed.")
|