|
|
@@ -58,6 +58,9 @@ def checkIn():
|
|
|
if pressSubmit == "y":
|
|
|
print(buttons[1].text)
|
|
|
buttons[1].click()
|
|
|
+ time.sleep(1)
|
|
|
+ print("quitting")
|
|
|
+ driver.quit()
|
|
|
elif pressSubmit == "n":
|
|
|
print("Manual mode")
|
|
|
buttons[0].click()
|
|
|
@@ -80,15 +83,44 @@ def checkOut():
|
|
|
|
|
|
whoWereYouHereFor = driver.find_element_by_css_selector(".exportTextarea")
|
|
|
whoWereYouHereFor.send_keys(whoHereFor)
|
|
|
+
|
|
|
+ # Automated click of submit
|
|
|
+ buttons = driver.find_elements_by_class_name("quantumWizButtonPaperbuttonLabel")
|
|
|
+ # find the submit button
|
|
|
+ buttonText = buttons[1].text
|
|
|
+ pressSubmit = input("Press submit? (y/n)")
|
|
|
+ if pressSubmit == "y":
|
|
|
+ print(buttons[1].text)
|
|
|
+ buttons[1].click()
|
|
|
+ time.sleep(1)
|
|
|
+ print("quitting")
|
|
|
+ driver.quit()
|
|
|
+ elif pressSubmit == "n":
|
|
|
+ print("Manual mode")
|
|
|
+ buttons[0].click()
|
|
|
+ else:
|
|
|
+ print("invalid key pressed.")
|
|
|
############################ end Check Out ##############################
|
|
|
|
|
|
def locationSelector():
|
|
|
print("Select the school: ")
|
|
|
print("1. ABM")
|
|
|
+ print("2. DTK")
|
|
|
+ print("3. LOHS")
|
|
|
+ print("4. GHL")
|
|
|
+ print("5. DDM")
|
|
|
schoolSelected = input("Select the school: ")
|
|
|
if schoolSelected == "1":
|
|
|
global URL
|
|
|
URL = "https://docs.google.com/forms/d/e/1FAIpQLSeJf3A_bADAUyaXuTEfiyU5O4V77PxcL9lYBSC3vgP4Fn4eGg/viewform"
|
|
|
+ elif schoolSelected == "2":
|
|
|
+ URL = "https://docs.google.com/forms/d/e/1FAIpQLSfIZdJoeB8MUrUSAsbKkgsrsRbXB0nUYui2Dn2weCfa5l_KIw/viewform"
|
|
|
+ elif schoolSelected == "3":
|
|
|
+ URL = "https://docs.google.com/forms/d/e/1FAIpQLSeACzhxKn6mVV0ArePRXE1qz_uojT9CT53OaXnYpEh7T4GzJg/viewform"
|
|
|
+ elif schoolSelected == "4":
|
|
|
+ URL = "https://docs.google.com/forms/d/e/1FAIpQLSdIT2XbkW4leXrQmS0rEuQ70lZoXkNG_zv7a0JOIRS4wuyxfw/viewform"
|
|
|
+ elif schoolSelected == "5":
|
|
|
+ URL = "https://docs.google.com/forms/d/e/1FAIpQLSeQJO4uzCHg-OIawaWiVcjJrhcVsFKZ-2hDF4wOaDmz9Xx86w/viewform"
|
|
|
else:
|
|
|
print("not a valid selection.")
|
|
|
locationSelector()
|