def set_value(self, incluedename, inputname1, input1val, inputname2, input2val): '''新建一条记录''' btn = ButtonPhonePage(self.driver) self.click_included_btn(incluedename) btn.click_button('新建') inputtext = InputPhonePage(self.driver, inputname1) inputtext.send_keys_get_value(input1val) inputtext = InputPhonePage(self.driver, inputname2) inputtext.send_keys_get_value(input2val) btn.click_button('保存') self.wait_msg_show_then_hide() btn.click_button('返回') self.wait_Tabloading_show_then_hide() self.driver.back() self.wait_elem_show_then_hide('.weui_mask_transparent')
def test_number_case(self): '''类型数字''' name = '单行文本_类型数字' ip = InputPhonePage(self.driver, name) self.assertEqual('', ip.send_keys_get_value('aaaa'), msg=name + '检验不通过')