teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

修正

2019/12/01 13:19

投稿

john_doe_
john_doe_

スコア354

title CHANGED
File without changes
body CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
 
10
10
  # 下記ではエラーとなってしまう
11
- if len(driver.find_element_by_class_name("last")) > 0:
11
+ if len(driver.find_element_by_class_name("bonus")) > 0:
12
12
  print("Yes")
13
13
  TypeError: object of type 'WebElement' has no len()
14
14