Hi everybody,

I'm trying to write functional test for a form in my symfony (1.4)
application.

...and I am strugling to test the values of forms. :-(

How can I test if the "response" contains the right values pre-set in
the formfields.

I tried the following, but it doesn't work:

$browser->
with('response')->begin()->
        checkElement('#sf_guard_user_last_name[value="expectedValue"]', true)-
>
end();

to check the field in the response that is defined as follows:

<input type="text" name="sf_guard_user[last_name]"
value="expectedValue" id="sf_guard_user_last_name" />

I would expect this test to pass, but it doesn't.

Can anybody help me? What's wrong? Or where do I find a good
documentation on how to test things with CSS selectors?!

Thanx for you help,
dominik

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to