Here is the code I'm using:
location = block.xpath("*/img")
puts location
And it gives out:
<img src="/images/p.gif" height="1" width="0">
What I want to do is get the width attribute from html, but I can't get it to work. I think I need to post ['width']somewhere in my code, and I tried several examples on the Internet, but couldn't get it to work.
source
share