getting the css href links

M

Mario Ruiz

Using watir, how can I get the href links of the CSS in my pages:

<link rel="stylesheet"
href="http://estaticos01.cache.el-mundo.net/elmundo/estilos/v4.x/v4.07/comun.css"
type="text/css" media="all" />
<link rel="stylesheet"
href="http://estaticos02.cache.el-mundo.net/elmundo/estilos/v4.x/v4.07/portada.css"
type="text/css" media="all" />

These links are not among the results if I do something like:

require 'watir'
ie=Watir::IE.new()

ie.goto("http://www.elmundo.es")
ie.links.each {|link|
puts link
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top