On Wednesday, May 9, 2012 5:33:11 AM UTC-7, cassiano wrote: > > Got it to work! > > I had forgotten to take away the constructors of my original page classes, > so the PageOpbject's was never being called. :)
Glad to hear you got it working. Stuff like this is always frustrating and I know I want to kick myself when I find where I went wrong. When something works in individual pieces, but not in some object I'm trying to define, I find it's usually my fault, something I constructed wrong in my object, or didn't initialize correctly or somesuch, and not a problem with watir. If it works in the pieces from IRB but not with the very same commands in a script, it's usually timing or syncing due to ajax or a lot of client side magic happening after a page loads or after specific actions. Not sure how much we were able to help you other than perhaps in the process of trying to explain it to us, you realized where the problem was (e.g. the rubber plant effect) > > On 9 May 2012 07:33, Željko Filipin <[email protected]> wrote: > >> On Wed, May 9, 2012 at 3:40 AM, Cassiano Leal <[email protected]> >> wrote: >> > page-object didn't work for this website >> >> If you share an example, maybe we could help. I do not see how it would >> not work for any site. >> >> Željko >> >> -- >> 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] >> > > -- 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]
