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 <[EMAIL PROTECTED]
> 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@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general