[Wtr-general] RegEx && 151.1054
David Schmidt
davids at tower-mt.com
Wed Aug 23 12:31:27 EDT 2006
Watir 1.5.1.1079 should fix this problem. A patch of mine improperly
allowed a Regexp to be passed to DOM's getElementById() call.
David
Adrian Lewis wrote:
> I think we got a problem with RegEx && watir 151.1054
>
> this'll work fine
>
> def password_field;$ie.text_field(:name, 'password');end
>
> this
>
> def password_field;$ie.text_field(:name, /password/);end
>
> rurturned on error of
>
> "test failed: \n OLE error code:0 in <Unknown>\n <No Description>\n
> HRESULT error code:0x80010108\n The object invoked has disconnected
> from its clients."
> ["c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1054/./watir.rb:3863:in
> `method_missing'", "c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1054
> /./watir.rb:3863:in `doKeyPress'", "
>
> Why am I using RegEx? Cos in different environments my objects may have
> different prefixes or suffixes
>
> Cheers
>
> aidy
>
More information about the Wtr-general
mailing list