[Wtr-general] custom attributes
Prema Arya
prema.arya at gmail.com
Tue Jan 30 01:19:56 EST 2007
Yes we can do it in FireWatir also, there are two ways you can do:
require 'firewatir'
include FireWatir
ff = Firefox.new(5)
ff.goto("file:///F:/extras/firewatir/custom.html")
puts ff.text_field(:custom, "custom").value
puts ff.text_field(:id, "id").attribute_value("custom")
ff.close
html code
--------------
<html>
<body>
<form>
<input id="id" value="Prema" custom="custom">
</form>
</body>
</html>
ouput is:
------------
Prema
On 1/29/07, Paul Rogers <paul.rogers at shaw.ca> wrote:
>
> I really only p[osted this for information to others who want to search
> the archives. If its something that occurs a lot, it may be possible to add
> it to watir directly, but Ive never seen these things used.
>
> And does firefox support them? Allow you to access them?
>
>
> Paul
>
>
> On 1/29/07, Prema Arya <prema.arya at gmail.com> wrote:
> >
> > ie.text_field(:xpath , "//input[@mytag='paul']/")
> >
> >
>
> This is so cool.
> --
> Zeljko Filipin
> zeljkofilipin.com
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
--
Prema Arya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070130/43a597f3/attachment.html
More information about the Wtr-general
mailing list