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

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

[wtr-general] Getting text between two br / 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: a href=...img src=...//abr/ !-- An image link -- Some text br/ a href=...Another link (variable text)/a br/ Text I want to extract. br/ Updated by a href=...name (variable)/a X hours ago

[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: div id=search class=absolute hide style=display: block; ... /div 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