質問編集履歴
1
記入漏れのあったコードを記載
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,8 +4,26 @@
|
|
4
4
|
|
5
5
|
|
6
6
|
|
7
|
+
【コード】
|
8
|
+
|
9
|
+
from selenium import webdriver
|
10
|
+
|
11
|
+
browser = webdriver.Firefox()
|
12
|
+
|
13
|
+
browser.get('https://twitter.com')
|
7
14
|
|
8
15
|
|
9
16
|
|
17
|
+
link_elem = browser.find_element_by_link_text('ログイン')
|
18
|
+
|
19
|
+
link_elem.click()
|
20
|
+
|
21
|
+
email_elem = browser.find_element_by_class_name('text-input')
|
22
|
+
|
23
|
+
email_elem.send_keys('example.mail.com')
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
【実行結果】
|
10
28
|
|
11
29
|
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
|