|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
How to read value from an HTML element?I've bunch of tests where I get a page which is usually populated with default values for even visible input elements. I just need to submit these values back to the form poster after changing 1 or 2 values. While there is a httpUtilities.valueFromHiddenInput that helps in getting hidden values, I couldn't find anything to read input values. valueFromBodyURI doesn't work since it seems to be looking into name=value pairs only which is of use only with query string.
I solved it by writing my own regex function to get my value (don't ask, but what I am testing has non-standard HTML that even BeautifulSoup couldn't parse properly :-)) Am I missing some stuff or there is a reason why Grinder doesn't have read from input values? I'd imagine that this is a common requirement.
For most purpose, if type=hidden is removed from the regex in httputilities implementation class should be good enough.
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ grinder-use mailing list grinder-use@... https://lists.sourceforge.net/lists/listinfo/grinder-use |
|
|
Re: How to read value from an HTML element?You have a good point. Please open a feature request on the sourceforge
site. - Phil Satheesh Babu Vattekkat wrote: > I've bunch of tests where I get a page which is usually populated with > default values for even visible input elements. I just need to submit > these values back to the form poster after changing 1 or 2 values. > While there is a httpUtilities.valueFromHiddenInput that helps in > getting hidden values, I couldn't find anything to read input values. > valueFromBodyURI doesn't work since it seems to be looking into > name=value pairs only which is of use only with query string. > > I solved it by writing my own regex function to get my value (don't > ask, but what I am testing has non-standard HTML that even > BeautifulSoup couldn't parse properly :-)) > > Am I missing some stuff or there is a reason why Grinder doesn't have > read from input values? I'd imagine that this is a common requirement. > > For most purpose, if type=hidden is removed from the regex in > httputilities implementation class should be good enough. > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ grinder-use mailing list grinder-use@... https://lists.sourceforge.net/lists/listinfo/grinder-use |
| Free embeddable forum powered by Nabble | Forum Help |