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

Cannot easily submit forms after filling them due to missing handle to the form #269

Open
muelli opened this issue Dec 3, 2013 · 4 comments

Comments

@muelli
Copy link
Contributor

muelli commented Dec 3, 2013

I have a simple login page and I do

    b.fill('login', self.username)
    b.fill('password', self.password)

In order to submit that form I need to know details I don't care about, such as the button's name or the fact which button to click in case there are a few.

I expected to get a handle to the underlying form, maybe like this:

    b.fill_form({'login': self.username, 'password', self.password}).submit()
@andrewsmedina
Copy link
Member

Hi @muelli, already exisits an issue related to submit (#107). I like the @fsouza proposal: #107 (comment)

What do you think about it?

@muelli
Copy link
Contributor Author

muelli commented Dec 3, 2013

yeah, it looks good. But I would still need to know the form's name.
if we could browse elements freely, just like the DOM, we could potentially navigate from an element to its form and submit it.

@andrewsmedina
Copy link
Member

Can you make a example?

@drernie
Copy link

drernie commented Feb 29, 2016

+1 Seems related to my problems with #471.

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

3 participants