def input_text_into_flex_element(self, locator, text):
"""Types `text` into the display object found by the locator lookup.
"""
return self._do_command("fp_type({%s, text:'%s'});", locator, text)
def _do_command(self, command, locator=None, *args):
self.s2l._debug("Executing command '%s' for application '%s' with options '%s'"
% (command, self._flex_app, args))
params = [self._split_flex_locator(locator)]
params.extend(args)
js = self.js_header + (command % tuple(params))
return self.s2l.execute_javascript(js)
请帮助我。出现错误“ str对象没有属性”