# import pymysql
from selenium import webdriver
import time
options = webdriver.ChromeOptions()
options.binary_location = "C:\DK\Software\Chrome\App\chrome.exe"
tc = webdriver.Chrome(executable_path="C:\DK\Software\Chrome\chromedriver.exe",options=options)
tc.get("https://www.baidu.com")
time.sleep(10)
print('打开网页成功')
tc.find_element_by_xpath('//*[@id="username"]').send_keys('3<PASSWORD> <EMAIL>')
print('输入测试成功')
time.sleep(2)
print('间歇性休眠成功')
# tc.find_element_by_id('su').click()
# print('点击搜索成功')
# time.sleep(2)
tc.close()



# db = pymysql.connect(
#     host='rm-uf6155459cp80g165.mysql.rds.aliyuncs.com',
#     port=3306,
#     user='fuman',
#     passwd='<PASSWORD>',
#     db='fuman_group_apply'
# )
#
# dblink = db.cursor()
#
# sql = "SELECT order_no,order_step,order_status,self_opt_start_time,self_opt_end_time,request_no  " \
#       "from `t_group_order` WHERE id = '412b9ef7d59447a49f825ad4ceb125dd';"
#
# dblink.execute(sql)
#
# results = dblink.fetchall()
#
# print(results)

# import pymysql
from selenium import webdriver
import time
options = webdriver.ChromeOptions()
options.binary_location = "C:\DK\Software\Chrome\App\chrome.exe"
tc = webdriver.Chrome(executable_path="C:\DK\Software\Chrome\chromedriver.exe",options=options)
tc.get("https://www.baidu.com")
time.sleep(10)
print('打开网页成功')
tc.find_element_by_xpath('//*[@id="username"]').send_keys('3<PASSWORD> <EMAIL>')
print('输入测试成功')
time.sleep(2)
print('间歇性休眠成功')
# tc.find_element_by_id('su').click()
# print('点击搜索成功')
# time.sleep(2)
tc.close()



# db = pymysql.connect(
#     host='rm-uf6155459cp80g165.mysql.rds.aliyuncs.com',
#     port=3306,
#     user='fuman',
#     passwd='<PASSWORD>',
#     db='fuman_group_apply'
# )
#
# dblink = db.cursor()
#
# sql = "SELECT order_no,order_step,order_status,self_opt_start_time,self_opt_end_time,request_no  " \
#       "from `t_group_order` WHERE id = '412b9ef7d59447a49f825ad4ceb125dd';"
#
# dblink.execute(sql)
#
# results = dblink.fetchall()
#
# print(results)

# import pymysql # tc.find_element_by_id('su').click() # print('点击搜索成功') # time.sleep(2) # db = pymysql.connect( #     host='rm-uf6155459cp80g165.mysql.rds.aliyuncs.com', #     port=3306, #     user='fuman', #     passwd='<PASSWORD>', #     db='fuman_group_apply' # ) # # dblink = db.cursor() # # sql = "SELECT order_no,order_step,order_status,self_opt_start_time,self_opt_end_time,request_no  " \ #       "from `t_group_order` WHERE id = '412b9ef7d59447a49f825ad4ceb125dd';" # # dblink.execute(sql) # # results = dblink.fetchall() # # print(results)