菜鸟的我在学习使用python+selenium时,使用断言assertTrue,提示我Unresolved attribute reference ‘assertTrue’ for class 'HomePageTest’。一时找不到原因。
后来发现了,原来是我写的类没有继承unittest的TestCase,这样的话就没有办法使用unittest相关的组件
菜鸟的我在学习使用python+selenium时,使用断言assertTrue,提示我Unresolved attribute reference ‘assertTrue’ for class 'HomePageTest’。一时找不到原因。
后来发现了,原来是我写的类没有继承unittest的TestCase,这样的话就没有办法使用unittest相关的组件