Menu

#42 exceptions when calling `Tag.click()`

open
nobody
None
5
2010-07-15
2010-07-15
Anonymous
No

Sorry, I've only been using Watij for about an hour so hopefully this bug is valid :)

PRODUCT: webspec_1.0.1_beta build
OS: OSX10.6.4
JVM: 1.5/1.6

I kept getting exceptions every time a call to `Tag.click()` was called (The exception referred to a Spec being cast to a Tag)
In the Base.java class the `pauseUntilReady()` returns a `Spec.java` instance and not a `Base.java`
The `Tag.java` implementation was `return (Tag) super.pauseUntilReady()` which is where the exception was being thrown.

If I updated the `pauseUntilReady` function to return a Spec instead of a Tag then everything works as expected.

Discussion


Log in to post a comment.

Auth0 Logo