[wtr-general] how to read the meta content

2014-12-16 Thread c w
Hi,

meta name=description content=this is variable

Hi Please can one help me an tell how can I read the Content

for meta tag.


I have to check many websites and check that the seo has a specific value.

Kind regards,
Cristina

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[wtr-general] Re: how to read the meta content

2014-12-16 Thread Justin Ko
You can use the `content` method to return the value of the content 
attribute:

p browser.meta.content
#= this is variable

Justin


On Tuesday, December 16, 2014 11:41:23 AM UTC-5, christina wrote:

 Hi,

 meta name=description content=this is variable

 Hi Please can one help me an tell how can I read the Content

 for meta tag.


 I have to check many websites and check that the seo has a specific value.

 Kind regards,
 Cristina 


-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.