Skip to content
Browse files

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

  • Loading branch information...
1 parent af8ce53 commit 4776b5c306447631d3294bbc39429f28a1c3cb6d @jone jone committed Apr 8, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 ftw/testing/pages.py
View
3 ftw/testing/pages.py
@@ -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 \
self.javascript_supported:
# Typing in the iframe does not work with PhantomJS.

0 comments on commit 4776b5c

Please sign in to comment.
Something went wrong with that request. Please try again.