#119 awaiting-patch
Daniel Lucraft

Form dom's should be scoped by the 'within' blocks

Reported by Daniel Lucraft | January 12th, 2009 @ 10:10 AM | in 0.4.2

I scoped the document with a 'within' block and then pressed a button, and there was an error because the Form#dom was returning nil, even though the Form had an element that was correct.

Eventually tracked this down to the Form#path being scoped from the small sub-document, but Form#dom using @session.dom, which is the complete document. So Form#dom was returning nil.

The commit http://github.com/songkick/webrat/commit/67c9a3827bca63d38a19b45fbc...

fixes this. All webrat specs still pass, but I confess this is a slightly superstitious patch.


Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket

Referenced by