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
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