If it's absolutely needed then you can also add a monkeypatch for
yourself:
require "watir"
module Watir
class Link
attr_ole :name
end
end
Jarmo
On Mar 28, 6:51 pm, hillary <[email protected]> wrote:
> i was getting the number in the #page_25 out of a database, so i just added
> a line to get the value from the db that equals the link text. it's working
> out.
>
>
>
>
>
>
>
> On Tuesday, March 27, 2012 8:38:01 PM UTC-7, Anthony Hallett wrote:
>
> > why not try something simple like
> > browser.link(:xpath, "//a[@name ='#page_25']").click
>
> > On Thursday, 22 March 2012 09:23:31 UTC+11, hillary wrote:
>
> >> I had been identifying some links by name. I upgraded to rc3 and now i
> >> get an error.
>
> >> browser.link(:name, "#page_25").click
>
> >> Watir::Exception::MissingWayOfFindingObjectException: name is an unknown
> >> way of finding a <a> element (#page_25)
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]