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

Finding form by name doesn't work #73

Open
viraptor opened this issue May 27, 2017 · 2 comments
Open

Finding form by name doesn't work #73

viraptor opened this issue May 27, 2017 · 2 comments

Comments

@viraptor
Copy link

I'm trying to find a form by name rather than other attributes. Guessing from documentation / examples, I expected this to work:

browser.get_form(name='some_name')

But that explodes with:

  File ".../lib/python3.6/site-packages/robobrowser/browser.py", line 293, in get_form
    form = self.find(_form_ptn, *args, **kwargs)
TypeError: find() got multiple values for argument 'name'
@ghost
Copy link

ghost commented Jun 23, 2017

You can find them by action, like this;
login_form = browser.get_form(action='/login')
where action is the action of the form.

@imarat88
Copy link

imarat88 commented Aug 4, 2017

form = browser.get_form(action='/search')
Also doesn't work. Is it a bug or what?

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

2 participants