Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
ChatBot/CallingAMechanic
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
27 lines (26 sloc)
1.22 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This code will Book You A Mechanic and have you called/emailed. | |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.support.ui import Select | |
browser=webdriver.Chrome('C:/Users/Acer/Desktop/New folder (2)/chromedriver') | |
browser.get('https://docs.google.com/forms/d/e/1FAIpQLSfwm-zzPi8Cv8jwsQ9G8whWVL6uEPH6UPBdfv5FsuXLOpdTgw/viewform') | |
name=browser.find_element_by_name('entry.903722920') | |
namekey=input("Please Enter a Name") | |
name.send_keys(namekey) | |
email=browser.find_element_by_name('entry.181354507') | |
emailkey=input("Enter your Email) | |
email.send_keys(emailkey) | |
number=browser.find_element_by_name('entry.1384446626') | |
numberkeys=input("Enter your number") | |
number.send_keys('numberkeys') | |
postcode=browser.find_element_by_name('entry.59934193') | |
postcodekeys=input("Enter a postcode") | |
postcode.send_keys('postcodekeys') | |
reg=browser.find_element_by_name('entry.1243460365') | |
regkeys=input("Enter you Vehicle Registration number") | |
reg.send_keys("regkeys") | |
Problem=browser.find_element_by_name("entry.1747051028") | |
problemkeys=input("Please explain your problem") | |
Problem.send_keys("problemkeys") | |
submit=browser.find_element_by_xpath('//*[@id="mG61Hd"]/div/div[2]/div[3]/div[1]/div[1]/div') | |
submit.click() |