# >>> a = s.w.switch_to_active_element()
# >>> a.get_attribute('id')
# FIELD*, but the number * changes between sessions/versions
- fields = [f for f in self.w.find_elements_by_tag_name('input')
- if f.get_attribute('id').startswith('FIELD')]
+ fields = []
+ for tag in ['input', 'textarea']:
+ fields.extend([f for f in self.w.find_elements_by_tag_name(tag)
+ if f.get_attribute('id').startswith('FIELD')])
match = False
for f in fields:
granddad = f.find_element_by_xpath('/../..')