def check_settings_changes(self, expected_first_name, expected_last_name, expected_age): s(SettingsPageLocators.FIRST_NAME).should( have.value(expected_first_name)) s(SettingsPageLocators.LAST_NAME).should( have.value(expected_last_name)) s(SettingsPageLocators.AGE).should(have.value(expected_age))
def _steps_for_creating_item_in_driver_table(self, item): # steps for creating new driver move_to_element(self.main.add_link) self.main.add_link.should(be.visible).click() self.main.add_online_drive_link.should(be.visible).click() # work with dialog alert self.main.modal_name_input.set_value(item) # verify that input contain expected test self.main.modal_name_input.should(have.value(item)) self.main.modal_save_button.should(be.visible).click()
def select_by_value(self, value): self._options().element_by(have.value(value)).click()
def populate_none_exist_organization(self, value): self.populate_field(self.organizationField, value, False) self.title.click() self.organizationField.s('input').should(have.value(''))