回答編集履歴
3
誤記訂正
answer
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
BeautifulSoupを使わず、
|
5
5
|
```Python
|
6
|
-
found = driver.
|
6
|
+
found = driver.find_element_by_xpath("//*[@class='selectable msg-text-box _compile ng-scope' or @class='message-input-inner comment-input trigger-input ng-binding ng-scope']")
|
7
7
|
|
8
8
|
toppost = found.find_element_by_xpath("//*[contains(text(),'APPLE')]")
|
9
9
|
```
|
2
誤記訂正
answer
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
```Python
|
6
6
|
found = driver.find_elements_by_xpath("//*[@class='selectable msg-text-box _compile ng-scope' or @class='message-input-inner comment-input trigger-input ng-binding ng-scope']")
|
7
7
|
|
8
|
-
toppost = found.find_element_by_xpath("//*[contains(text(),'APPLE')])
|
8
|
+
toppost = found.find_element_by_xpath("//*[contains(text(),'APPLE')]")
|
9
9
|
```
|
10
10
|
ただ、HTMLを見ると、そもそもこれでは駄目で、
|
11
11
|
```Python
|
1
誤記訂正
answer
CHANGED
@@ -9,6 +9,6 @@
|
|
9
9
|
```
|
10
10
|
ただ、HTMLを見ると、そもそもこれでは駄目で、
|
11
11
|
```Python
|
12
|
-
found = driver.find_elements_by_xpath("//*[(@class='selectable msg-text-box _compile ng-scope' or @class='message-input-inner comment-input trigger-input ng-binding ng-scope') and contains(text(),'APPLE')])
|
12
|
+
found = driver.find_elements_by_xpath("//*[(@class='selectable msg-text-box _compile ng-scope' or @class='message-input-inner comment-input trigger-input ng-binding ng-scope') and contains(text(),'APPLE')]")
|
13
13
|
```
|
14
14
|
でしょうか。
|