[wtr-general] Getting style attribute of HTML element

2009-07-27 Thread Aaron MacDonald
I have an element with a style attribute I need to access, like this: ... Note that I am only able to see the style attribute using Firebug; it doesn't show up when I view the page source. Is it possible though to examine the style attribute through Watir? --~--~-~--~~-

[wtr-general] Getting text between two tags

2009-07-29 Thread Aaron MacDonald
There is a line of text that I want to extract. It is found in some HTML that follows this pattern: Some text Another link (variable text) Text I want to extract. Updated by name (variable) X hours ago [Comment] I have the impression that I'd use XPath somehow, but am unsure how t

[wtr-general] Re: Getting text between two tags

2009-07-30 Thread Aaron MacDonald
Thank you. I'm now using this regular expression: \s*.*\s+\s+\s+\s+(.*)\s+ This matches the first two links, the text between the first two links, the text I'm after, and the tag after it. One note though: it seems Watir takes out the forward slashes in the tags. My real code uses " in plac