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}
Originally created by Paul King.
If you have some html like this:
Then trying to have a Page object with the following:
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}