AttributeError:' FeeSchedulePage'对象没有属性'创建'

时间:2016-11-11 18:53:05

标签: python

当我尝试拨打feeSchedulePage.create()时,我收到错误 AttributeError: 'FeeSchedulePage' object has no attribute 'create'

fee_schedule_page.py

class FeeSchedulePage(Page):

  def enter_name(self, name):

      self.find_element(*FeeScheduleLocators.NAME).send_keys(name)


  def create(self):

      self.enter_name("a")

test_create_fee_schedule.py

class TestCreateFeeSchedule:

  def test_03_CreateFeeSchedule(self):

      feeSchedulePage = FeeSchedulePage(self.driver)
      feeSchedulePage.create()

对此有何看法?

0 个答案:

没有答案