Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submit and cookies #10

Open
msgre opened this issue Aug 31, 2010 · 0 comments
Open

Submit and cookies #10

msgre opened this issue Aug 31, 2010 · 0 comments

Comments

@msgre
Copy link

msgre commented Aug 31, 2010

Hello Eric,
I try using twill to my tests but I am unable to successfully submit form via POST as logged user. Look at this code:

login(username="myusername", password="mypassword")
go('/myurl/')
fv(2, 'continue', '')
submit()

problem

logout()

If I print show_cookies() I get different value before and after submit. On this test I want to check, if application return the same page with form together with error messages due to mandatory form fields. But all I get is login page (because POST don't set cookies, and my code put redirection to login page).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant