#!/usr/bin/env python
# This application opens firefox browser and keeps you login : raghuramgreddy@gmail.com
# Note: Before running this application please provide username,password credentials : raghuramgreddy@gmail.com
import SendKeys
import time
import os
import subprocess
FFPATH = os.environ["PROGRAMFILES"] + '\mozilla firefox/firefox.exe'
url = "http://gmail.com"
subprocess.Popen([FFPATH,url])
time.sleep(3)
username = """ grramreddy """
SendKeys.SendKeys(username)
time.sleep(2)
SendKeys.SendKeys('{TAB}')
password = """password """
SendKeys.SendKeys(password)
time.sleep(2)
SendKeys.SendKeys('{TAB 2}')
time.sleep(2)
SendKeys.SendKeys('{ENTER}')
time.sleep(5)
SendKeys.SendKeys('%{SPACE}n')
Comming Soon.......Python::pyWinAuto control applications
Friday, June 18, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment