PO模式封装 提示'WebElement' object has no attribute 'sendkeys'

用户名函数封装时 提示没有'sendkeys'方法


def type_username(self,username):

    self.find_element(*self.username_loc).sendkeys(username)


sendkeys语法错误,应为send_keys()

你可能感兴趣的:(PO模式封装 提示'WebElement' object has no attribute 'sendkeys')