Бот-автозаполнение Python [закрыто]Python

Программы на Python
Гость
Бот-автозаполнение Python [закрыто]

Сообщение Гость »

Код: Выделить всё

if inputchoice == '2':
file = open('info.txt')
\# read the content of the file opened
content = file.readlines()

Phoneinput = (content[0])
FirstNameinput = (content[1])
LastNameinput = (content[2])
Addyinput = (content[3])
Cityinput = (content[4])
Stateinput = (content[5])
Stateinput2 = (content[6])
Zipinput = (content[7])
Emailinput1 = (content[8])
Phone1 = web.find_element("xpath",'/html/body/div/div[2]/div[2]/div[1]/form/div[1]/div[2]/input[1]')
Phone1.send_keys(str(Phoneinput))
I am coding a auto fill bot with Python.
My problem is I have the 2nd option set to read from a file to gather the clients details.
I'm having issues getting Python's send-keys option to display my the content code in the boxes of the web browser.
I also have no else statement because i don't want it to close after this content is input-ed, it will open the web browser and auto-fill.
When it enters the data in the box it says "none".


Источник: https://stackoverflow.com/questions/781 ... bot-python

Вернуться в «Python»