当我尝试拨打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()
对此有何看法?