Skip to content

Commit

Permalink
Allow any button that submits, not just <input>
Browse files Browse the repository at this point in the history
I have a custom login form that is styled with `<button type="submit">` and it would be nice if I could use that without creating my own copy of `authorize`.
  • Loading branch information
gaqzi committed Jul 11, 2013
1 parent 7d8363a commit 77e80d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_selenium/testcases.py
Expand Up @@ -92,7 +92,7 @@ def authorize(self, username, password):
self.open_url(reverse('login'))
self.type_in("#id_username", username)
self.type_in("#id_password", password)
self.click("#login-form input[type='submit']")
self.click("#login-form [type='submit']")

def update_text(self):
"""
Expand Down

0 comments on commit 77e80d2

Please sign in to comment.