Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b961097

Browse files
Merge pull request #987 from whyadiwhy/main
AutoFill Google Forms #960
2 parents 16aaa9c + fe6300d commit b961097

File tree

5 files changed

+64
-0
lines changed

5 files changed

+64
-0
lines changed
140 KB
Loading[フレーム]
126 KB
Loading[フレーム]
132 KB
Loading[フレーム]
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# ✔ AUTOFILL GOOGLE FORM
2+
- ### We will look at Web Automation using Python in detail. We will be using the Webdriver and Selenium Libraries to do our coding, and we will be filling out an attendance form.
3+
- ### Auto fill in your form using your saved information.
4+
- ### This will Reduce your time in filling the form.
5+
6+
****
7+
8+
# REQUIREMENTS :
9+
- ### python 3
10+
- ### Selenium
11+
- ### Webdriver
12+
13+
****
14+
# SCREENSHOTS :
15+
****
16+
17+
<p align="center">
18+
<img width = 1000 src="Images/1.png" /><br>
19+
<p>After 3 sec the form will be filled automatically</p>
20+
<img width = 1000 src="Images/2.png" /><br>
21+
<p>Google form will be also Submit automatically</p>
22+
<img width = 1000 src="Images/3.png" /><br>
23+
24+
</p>
25+
26+
# Purpose :
27+
- ### This scripts helps user to easily to fill Form automatically.
28+
29+
# Compilation Steps :
30+
- ### Install Selenium, Webdriver, webbrowser.
31+
- ### Note that this script works only on chrome broweser v-93
32+
- ### You can change code according to your need
33+
****
34+
35+
# Name :
36+
- ### Aditya Gupta
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
from selenium import webdriver
2+
import time
3+
4+
web = webdriver.Chrome()
5+
web.get('https://docs.google.com/forms/d/e/1FAIpQLSek4lvyKCkjeKHJwRRSUdsNb4WCIohFNlog7YjeWVzmEr3DQQ/viewform')
6+
7+
time.sleep(3)
8+
9+
LastName = "Aditya"
10+
last = web.find_element_by_xpath('//*[@id="mG61Hd"]/div[2]/div/div[2]/div[1]/div/div/div[2]/div/div[1]/div/div[1]/input')
11+
last.send_keys(LastName)
12+
13+
FirstName = "Gupta"
14+
first = web.find_element_by_xpath('//*[@id="mG61Hd"]/div[2]/div/div[2]/div[2]/div/div/div[2]/div/div[1]/div/div[1]/input')
15+
first.send_keys(FirstName)
16+
17+
RadioButtonPeriod = web.find_element_by_xpath('//*[@id="mG61Hd"]/div[2]/div/div[2]/div[3]/div/div/div[2]/div[1]/div/span/div/div[2]/label/div/div[1]/div/div[3]/div')
18+
RadioButtonPeriod.click()
19+
20+
Submit = web.find_element_by_xpath('//*[@id="mG61Hd"]/div[2]/div/div[3]/div[1]/div/div/span')
21+
Submit.click()
22+
23+
get_confirmation_div_text = web.find_element_by_css_selector('.freebirdFormviewerViewResponseConfirmationMessage')
24+
print(get_confirmation_div_text.text)
25+
if ((get_confirmation_div_text.text) == "Thank you for attending"):
26+
print ("Test Was Successful")
27+
else:
28+
print("Test Was Not Successful")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /