[Wtr-general] Setting Textbox throws unknown

Charley Baker charley.baker at gmail.com
Tue Aug 22 13:42:34 EDT 2006


  Actually I can tell you why this is happening, it's related to the issue I
was looking at yesterday, ie.element(:id, 'foo') actually searches by Name:
http://jira.openqa.org/browse/WTR-77

  Both are failing in the locate_input_element method. In the case of the
Jira issue mentioned above
getElementById() isn't working as it should be. In the case of regular
expressions, it's simply sending the regular expression into getElementById
or getElementsByName, straight ole_methods which causes problems for ie. We
don't currently seem to have any regex searches on the input elements I've
been looking at which is why they don't show up, regexs do work for non
input elements which uses a different locator. Once we figure out how to
handle this I'll add more unit tests.

  This is also related to the other issue you mentioned:
WIN32OLERuntimeError: Unknown property or method `scrollIntoView'
    HRESULT error code:0x80010004
      The caller is dispatching an asynchronous call and cannot make an
outgoing
 call on behalf of this call.

Somehow after the call gets screwed up there seems to be a hung connection
to ie or something so that further calls to connect to other elements can
cause this error. I've gotten it as well.

 As a temporary hack you can open watir.rb, go to the locate_input_element
method, delete the whole begin/rescue/end block at the beginning and replace
it with
elements = ole_inner_elements

-Charley

On 8/21/06, Bret Pettichord <bret at pettichord.com> wrote:
>
> James wrote:
> > I have no trouble reproducing this.
> > Also...Doing so, crashes IE
> >
> I believe you. But we don't yet have a good description of the problem.
> Before we can start to fix the problem we need to be able to have other
> people reproduce the problem.
>
> You've said that any use of Regexps leads to trouble, but we have lots
> of unit tests for Regexps in our test suite and they all pass with the
> 1.5. So there must be something else, as yet unidentified, that is an
> important part of your problem.
>
> It could be something in your environment. If you run the unit tests
> (run the core-tests.rb) what happens?
>
> It could also be something specific to the web pages that you are
> testing. Would it be possible to send us a page that we can test against?
>
> Bret
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060822/58b5b031/attachment.html 


More information about the Wtr-general mailing list