質問編集履歴
1
記入漏れのあったコードを記載
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -1,6 +1,15 @@ | |
| 1 1 | 
             
            seleniumを使ってtwitterに自動ログインしたいのですが、下記のようなエラーが出ます。
         | 
| 2 2 | 
             
            どのようにすれば自動ログインを実装できますでしょうか?
         | 
| 3 3 |  | 
| 4 | 
            +
            【コード】
         | 
| 5 | 
            +
            from selenium import webdriver
         | 
| 6 | 
            +
            browser = webdriver.Firefox()
         | 
| 7 | 
            +
            browser.get('https://twitter.com')
         | 
| 4 8 |  | 
| 9 | 
            +
            link_elem = browser.find_element_by_link_text('ログイン')
         | 
| 10 | 
            +
            link_elem.click()
         | 
| 11 | 
            +
            email_elem = browser.find_element_by_class_name('text-input')
         | 
| 12 | 
            +
            email_elem.send_keys('example.mail.com')
         | 
| 5 13 |  | 
| 14 | 
            +
            【実行結果】
         | 
| 6 15 | 
             
            selenium.common.exceptions.ElementNotInteractableException: Message: Element <input class="text-input email-input js-signin-email" name="session[username_or_email]" type="text"> is not reachable by keyboard
         | 
