回答編集履歴
1
コメントを受けてコードを変更
test
CHANGED
@@ -2,7 +2,9 @@
|
|
2
2
|
|
3
3
|
```
|
4
4
|
elem_urls = []
|
5
|
-
elems =
|
5
|
+
elems = driver.find_elements(By.CSS_SELECTOR, '.Horse06.fc')
|
6
6
|
for elem in elems:
|
7
|
-
|
7
|
+
type04 = elem.find_elements(By.CSS_SELECTOR, 'div.Type.Type04')
|
8
|
+
if len(type04) > 0:
|
9
|
+
elem_urls.append(type04)
|
8
10
|
```
|