Typeerror: find_element_by_name() отсутствует 1 обязательный позиционный аргумент: 'name'
from selenium import webdriver import time browser=webdriver.Edge("C:/Users/senem/Desktop/selenium/msedgedriver.exe") browser.get("https://www.instagram.com/") time.sleep(13) username=webdriver.Edge.find_element_by_name("username") password=webdriver.Edge.find_element_by_name("password") username.send_keys("user") password.send_keys("password") time.sleep(10) browser.close()
Что я уже пробовал:
Hello to everyone. This is error message. Can you help me about it?
Traceback (most recent call last): File "C:/Users/senem/PycharmProjects/denemefibo/instagram.py", line 8, in <module> username=webdriver.Edge.find_element_by_name("name=username") TypeError: find_element_by_name() missing 1 required positional argument: 'name'