seleniumを使用してテキストを入力フィールドに入力しようとしていますが、エラーが発生しています。コードは次のとおりです。Selenium - WebElementオブジェクトに 'sendKeys'属性がありません
input1 = browser.find_element_by_xpath('//*[@id="login-dialog dialog"]/div[2]/div[2]/div[2]/form/div[1]/input')
input1.sendKeys("myusername")
は、しかし、それは方法がないのSendKeysこのエラーに
Traceback (most recent call last):
File "C:\Users\Bradley Jo\Desktop\Project\app.py", line 14, in
<module>
input1.sendKeys("hello")
AttributeError: 'WebElement' object has no attribute 'sendKeys'