回答編集履歴
3
誤記訂正
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
```Python
|
10
10
|
|
11
|
-
found = driver.find_element
|
11
|
+
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']")
|
12
12
|
|
13
13
|
|
14
14
|
|
2
誤記訂正
test
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
-
toppost = found.find_element_by_xpath("//*[contains(text(),'APPLE')])
|
15
|
+
toppost = found.find_element_by_xpath("//*[contains(text(),'APPLE')]")
|
16
16
|
|
17
17
|
```
|
18
18
|
|
1
誤記訂正
test
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
```Python
|
22
22
|
|
23
|
-
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')])
|
23
|
+
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')]")
|
24
24
|
|
25
25
|
```
|
26
26
|
|