def locate_gmail():
#Sleep for a while and wait for Firefox to open
time.sleep(2)
# Printing message
msg(1,'Opening Gmail...')
# Typing the website on the browser
pyautogui.keyDown('ctrlleft'); pyautogui.typewrite('a'); pyautogui.keyUp('ctrlleft')
pyautogui.typewrite('https://accounts.google.com/SignUp?service=mail&continue=https%3A%2F%2Fmail.google.com%2Fmail%2F<mpl=default')
pyautogui.typewrite('\n')
# Wait for a while until the website responds
time.sleep(3)
# Print a simple message
msg(1,'Locating the form...')
# Locate the form
_gmail_=pyautogui.locateOnScreen('images/gmail_form.png')
_form_=pyautogui.center(_gmail_)
# Check and print message
if not pyautogui.click(_form_):
msg(1,'Located the form.')
else:
msg(3,'Failed to locate the form.')
ext()
# Function used to randomize credentials
评论列表
文章目录