回答編集履歴

2

改修

2019/11/30 16:08

投稿

shirai
shirai

スコア1290

test CHANGED
@@ -1,5 +1,5 @@
1
1
  ```python
2
2
 
3
- driver.find_elements_by_xpath("//*[contains(text(), '" + age + "')]")[0].click()
3
+ driver.find_elements_by_xpath("//*[contains(text(), '" + str(age) + "')]")[0].click()
4
4
 
5
5
  ```

1

ミス

2019/11/30 16:08

投稿

shirai
shirai

スコア1290

test CHANGED
@@ -1,5 +1,5 @@
1
1
  ```python
2
2
 
3
- driver.find_elements_by_xpath("//*[contains(text(), " + age + ")]")[0].click()
3
+ driver.find_elements_by_xpath("//*[contains(text(), '" + age + "')]")[0].click()
4
4
 
5
5
  ```