回答編集履歴

1

質問に合わせて修正

2018/01/10 13:07

投稿

otn
otn

スコア84555

test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ```Ruby
4
4
 
5
- page.xpath('//dt[text()="内容量"]/following-sibling::dd[position()=1]')
5
+ serving_size = page.at('//dt[text()="内容量"]/following-sibling::dd[position()=1]').inner_text
6
6
 
7
7
  ```
8
8