wtr-general  

[Wtr-general] custom attributes

Paul Rogers
Sun, 28 Jan 2007 21:00:19 -0800


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