在执行以下python代码时,我遇到以下错误“ Str对象没有属性_do_command”错误

时间:2018-06-20 19:53:39

标签: python

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对象没有属性”

0 个答案:

没有答案