Skip to content

Improved warnings if using Pages and input names are 'reserved/inuse' words #122

Description

@geb-bot

Originally created by Paul King.

If you have some html like this:

<form name='post' ...>
    <input type='text' name='title' />
    ...

Then trying to have a Page object with the following:

title { $("form").title() }

Will get confused by 'title' as the accessor for getting the browser title. Also, 'content' and possibly others ('at', 'url' not tested).

The workaround is to just use another name but it would be nice if you received a better error message or warning. Currently you receive:
{noformat}
groovy.lang.MissingMethodException: No signature of method: java.lang.String.value() is applicable for argument types: (java.lang.String)
{noformat}

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions