Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix error when filling fields and there is no field class.

  • Loading branch information...
commit 4776b5c306447631d3294bbc39429f28a1c3cb6d 1 parent af8ce53
@jone jone authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  ftw/testing/
3  ftw/testing/
@@ -307,7 +307,8 @@ def fill_field(self, label, value):
'Ambiguous matches for fields with labels "%s": %s' % (
label, str(map(lambda item: item.outer_html, fields)))
- if 'mce_editable' in fields.first['class'].split(' ') and \
+ if 'class' in fields.first and \
+ 'mce_editable' in fields.first['class'].split(' ') and \
# Typing in the iframe does not work with PhantomJS.
Please sign in to comment.
Something went wrong with that request. Please try again.