質問編集履歴

2

エラー文の追記

2022/06/15 09:39

投稿

fukushima_ekubo
fukushima_ekubo

スコア24

test CHANGED
File without changes
test CHANGED
@@ -22,7 +22,8 @@
22
22
  </table>
23
23
  ```
24
24
 
25
- 検索をしたところ、以下のような記述で取得ができるという記事があったのですが、せん
25
+ 検索をしたところ、以下のような記述で取得ができるという記事があったのですが、実行するとエラーが出てしまいま
26
+
26
27
  ```Python
27
28
  list = []
28
29
 
@@ -33,6 +34,13 @@
33
34
 
34
35
  print(list)
35
36
  ```
37
+ **エラー文**
38
+ ```
39
+ Traceback (most recent call last):
40
+ File "〜〜.py", line 60, in <module>
41
+ elements = pickup.find_elements(By.TAG_NAME,'td')
42
+ AttributeError: 'list' object has no attribute 'find_elements'
43
+ ```
36
44
 
37
45
  お手数ですが、誤っている部分などございましたらご教示頂けますと幸いです。
38
46
 

1

誤字

2022/06/15 08:43

投稿

fukushima_ekubo
fukushima_ekubo

スコア24

test CHANGED
File without changes
test CHANGED
@@ -3,7 +3,7 @@
3
3
  以下のような構造の<tabel>から、<tabel id="table1">に含まれる<td>のみを取得したいと考えています。
4
4
 
5
5
  ```Python
6
- <tabel id="table1">
6
+ <table id="table1">
7
7
    <tbody>
8
8
      <tr>
9
9
        <td>
@@ -12,7 +12,7 @@
12
12
    </tbody>
13
13
  </table>
14
14
 
15
- <tabel id="table2">
15
+ <table id="table2">
16
16
    <tbody>
17
17
      <tr>
18
18
        <td>