def set_location_by_address(self, address, result_index=0): set(self.ID.txtSearchAddress, address) elems = finds(self.ID.lblSearchAddressResults, condition=count_non_zero_and_clickable) assert len(elems) != 0, "No search results found" elems[result_index].click() text = get(self.ID.txtSearchAddress) click(self.ID.btnPickAddress) return text
def get_error_pop_up_message(self): return get(self.ID.errPopUp)
def get_password_error_message(self): return get(self.ID.errLblPassword)
def get_user_name_error_message(self): return get(self.ID.errLblUsername)
def get_complaint_date(self): return get(self.ID.lblComplaintDate, context=self.container)
def get_complaint_no(self): return get(self.ID.lblComplaintNo, context=self.container)
def get_complaint_header(self): return get(self.ID.lblComplaintHeader, context=self.container)
def get_complaint_status(self): return get(self.ID.lblComplaintStatus, context=self.container)
def invalid_otp(self): return get(self.ID.lblErrorMsg)
def otp_has_resent(self): return get(self.ID.lblResentOTPMsg)
def otp_required(self): return get(self.ID.lblErrorMsg)
def otp_sent_to(self): return get(self.ID.lblOTPSentTo)
def user_not_found(self): return get(self.ID.lblUserNameValidation)
def get_citizen_login_id(self): return get(self.ID.lblMobileNumber)
def get_mobileno_error_message(self): required = get(self.ID.lblMobileNumberErrrorMessage) return required