From 1c28e0f9d819516c5a24112d15f66dd85d7aa1aa Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 30 Jun 2010 12:15:07 -0400 Subject: [PATCH] Ignore editor text fields for now --- sitecore/prof/import.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sitecore/prof/import.py b/sitecore/prof/import.py index 128db24..9f998b6 100644 --- a/sitecore/prof/import.py +++ b/sitecore/prof/import.py @@ -79,8 +79,12 @@ class ProfessorAdder (object): if value == None: value = '' granddad,field = self.s.find_field(field_name) - field.clear() - field.send_keys(value) + try: + editor_link = granddad.find_element_by_link_text('Edit Html') + self.set_editor_field(editor_link, value) + except NoSuchElementException: # basic text field + field.clear() + field.send_keys(value) #granddad,field = self.s.find_field('Headshot:') #granddad.find_element_by_link_text('Properties') # TODO, set width/height @@ -118,6 +122,9 @@ class ProfessorAdder (object): except NoSuchElementException, e: self.s.logger.info("can't lock %s (already locked?), skipping" % name) + def set_editor_field(self, editor_link, value): + pass # TODO + def main(argv): import optparse -- 2.26.2