From 2f2e44493292c3cc97e9c53062be319b0ab92855 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 30 Jun 2010 16:26:41 -0400 Subject: [PATCH] Look for textarea fields as well as input fields --- sitecore/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sitecore/__init__.py b/sitecore/__init__.py index 10b3c8a..e5b6bfd 100755 --- a/sitecore/__init__.py +++ b/sitecore/__init__.py @@ -156,8 +156,10 @@ class SiteCoreConnection (object): # >>> 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('/../..') -- 2.26.2