unbound method func() must be called with Login instance as first argument (got WebDriver instance instead)错误解决方法

unbound method func() must be called with Login instance as first argument (got WebDriver instance instead)

中文:func()绑定方法调用必须登录实例作为第一个参数(有WebDriver实例代替)

 

调用类时,少输了一个括号

 

正确调用方法是

1 Login().func(driver)

因为Login是个类对象

 

posted @ 2016-11-08 11:56  jovi_3y  阅读(1518)  评论(0)    收藏  举报