Автозаполнение бота PythonPython

Программы на 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])` 
Hello everyone i am coding a auto fill bot with python my problem is i have the 2nd option set to read from a file in gather the clients details im having issues getting pythons sendkeys option to display my code in the boxes

i also have no else statement because i don't want it to close after this content is inputed it will open the web browser and autofill

send keys line of code for example for first input

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))

went it enters the data in the box it says "none"

what i stated above.


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

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