Prema Arya
Mon, 29 Jan 2007 00:20:02 -0800
Hi Paul, You can use xpath to address the elements having custom attributes. For example, to access the following input tag <input type="text" name="aa" mytag="paul"> using xpath the code would look like this: inText = ie.text_field(:xpath , "//[EMAIL PROTECTED]'paul']/") puts inText Regards, Prema On 1/29/07, Paul Rogers <[EMAIL PROTECTED]> wrote:
Some one asked me off list if they could access the mytag part of some html like the following <input type = text name = aa mytag=paul> With the 1.5.1-1145 gem you can do this: puts ie.text_field(:index,1).ole_object.mytag returns 'paul' this doesnt seem to work though: ie.text_field(:mytag ,/p/).flash causes a MissingWayOfFindingObjectException Hope that helps others too. Paul _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
-- Prema Arya
_______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
- [Wtr-general] custom attributes Paul Rogers
Re: [Wtr-general] custom attributes Prema Arya
- Re: [Wtr-general] custom attributes Prema Arya
- Re: [Wtr-general] custom attributes Ċ½eljko Filipin
- Re: [Wtr-general] custom attributes Paul Rogers
- Re: [Wtr-general] custom attributes Prema Arya
- Re: [Wtr-general] custom attributes Prema Arya
- Re: [Wtr-general] custom attributes Bret Pettichord
- Re: [Wtr-general] custom attributes Prema Arya