質問編集履歴
2
コード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -3,6 +3,14 @@
|
|
3
3
|
chromeのバージョンを最新にして再度パソコンを再起動したり、chromeを再起動したのですが、
|
4
4
|
|
5
5
|
エラーが再度出てしまいます。
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
GoogleChrome バージョン: 85.0.4183.83(Official Build) (64 ビット)
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
6
14
|
|
7
15
|
|
8
16
|
|
1
コード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -41,3 +41,87 @@
|
|
41
41
|
|
42
42
|
|
43
43
|
```
|
44
|
+
|
45
|
+
エラー内容
|
46
|
+
|
47
|
+
```jupyterlab
|
48
|
+
|
49
|
+
NoSuchElementException Traceback (most recent call last)
|
50
|
+
|
51
|
+
<ipython-input-5-623121a9e63f> in <module>
|
52
|
+
|
53
|
+
----> 1 elem = browser.find_element_by_id('swpm_user_name')
|
54
|
+
|
55
|
+
2 elem.clear()
|
56
|
+
|
57
|
+
3 elem.send_keys(USER)
|
58
|
+
|
59
|
+
4 elem = browser.find_element_by_id('swpm_pasword')
|
60
|
+
|
61
|
+
5 elem.clear()
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
~/.pyenv/versions/3.8.0/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py in find_element_by_id(self, id_)
|
66
|
+
|
67
|
+
358 element = driver.find_element_by_id('foo')
|
68
|
+
|
69
|
+
359 """
|
70
|
+
|
71
|
+
--> 360 return self.find_element(by=By.ID, value=id_)
|
72
|
+
|
73
|
+
361
|
74
|
+
|
75
|
+
362 def find_elements_by_id(self, id_):
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
~/.pyenv/versions/3.8.0/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py in find_element(self, by, value)
|
80
|
+
|
81
|
+
974 by = By.CSS_SELECTOR
|
82
|
+
|
83
|
+
975 value = '[name="%s"]' % value
|
84
|
+
|
85
|
+
--> 976 return self.execute(Command.FIND_ELEMENT, {
|
86
|
+
|
87
|
+
977 'using': by,
|
88
|
+
|
89
|
+
978 'value': value})['value']
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
~/.pyenv/versions/3.8.0/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py in execute(self, driver_command, params)
|
94
|
+
|
95
|
+
319 response = self.command_executor.execute(driver_command, params)
|
96
|
+
|
97
|
+
320 if response:
|
98
|
+
|
99
|
+
--> 321 self.error_handler.check_response(response)
|
100
|
+
|
101
|
+
322 response['value'] = self._unwrap_value(
|
102
|
+
|
103
|
+
323 response.get('value', None))
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
~/.pyenv/versions/3.8.0/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py in check_response(self, response)
|
108
|
+
|
109
|
+
240 alert_text = value['alert'].get('text')
|
110
|
+
|
111
|
+
241 raise exception_class(message, screen, stacktrace, alert_text)
|
112
|
+
|
113
|
+
--> 242 raise exception_class(message, screen, stacktrace)
|
114
|
+
|
115
|
+
243
|
116
|
+
|
117
|
+
244 def _value_or_default(self, obj, key, default):
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="swpm_user_name"]"}
|
122
|
+
|
123
|
+
(Session info: chrome=85.0.4183.83)
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
```
|