def controls_setup(self): """Dashboard Repair controls""" self.list = element.Link(self, alias="Manage Repairs", angular=True, css_selector='.dashboard-menu:nth-child(2) .list-group > a:nth-of-type(1)') self.new = element.Link(self, alias="Add New Repair", angular=True, css_selector='.dashboard-menu:nth-child(2) .list-group > a:nth-of-type(2)')
def controls_setup(self): """Admin Supervisor List Item controls""" self.supervisor_name = element.Link(self, css_selector='th:nth-child(1) > a', alias="Admin Supervisor Name Link") self.username = element.Caption(self, css_selector='td:nth-child(2)', alias="Username") self.email = element.Caption(self, css_selector='td:nth-child(3)', alias="Email") self.active_start_date = element.Link(self, css_selector='td:nth-child(4)', alias="Active Start Date Text") self.active_end_date = element.Link(self, css_selector='td:nth-child(5)', alias="Active End Date Text")
def controls_setup(self): """Dashboard Job controls""" self.list = element.Link(self, alias="Manage Jobs", angular=True, css_selector='.dashboard-menu:nth-child(1) .list-group > a:nth-of-type(1)') self.slab = element.Link(self, alias="Slab Schedule", angular=True, css_selector='.dashboard-menu:nth-child(1) .list-group > a:nth-of-type(2)') self.new = element.Link(self, alias="Add New Job", angular=True, css_selector='.dashboard-menu:nth-child(1) .list-group > a:nth-of-type(3)')
def form_setup(self): super(AdminSupervisorListPage, self).form_setup() self.supervisor_name = element.Link(self, css_selector='#result_list th:nth-child(1) a', alias="Supervisor Name Sort Link") self.username = element.Link(self, css_selector='#result_list th:nth-child(2) a', alias="Username Sort Link") self.email = element.Link(self, css_selector='#result_list th:nth-child(3) a', alias="Email Sort Link") self.active_start_date = element.Link(self, css_selector='#result_list th:nth-child(4) a', alias="Active Start Date Sort Link") self.active_end_date = element.Link(self, css_selector='#result_list th:nth-child(5) a', alias="Active End Date Sort Link") self.supervisors = []
def controls_setup(self): """Admin Client List Item controls""" self.client_name = element.Link(self, css_selector='th:nth-child(1) > a', alias="Admin Client Name Link") self.xero_customer = element.Caption(self, css_selector='td:nth-child(2)', alias="Xero Customer") self.send_invoices = element.Image(self, css_selector='td:nth-child(3) img', alias="Send Invoices Check Mark") self.part_a_required = element.Image(self, css_selector='td:nth-child(4) img', alias="Part A Required Check Mark") self.they_supply_pump = element.Image(self, css_selector='td:nth-child(5) img', alias="They Supply Pump Check Mark") self.active_start_date = element.Link(self, css_selector='td:nth-child(6)', alias="Active Start Date Text") self.active_end_date = element.Link(self, css_selector='td:nth-child(6)', alias="Active End Date Text")
def controls_setup(self): """Client List Item controls""" self.date_received = element.Link(self, alias="Date Received", css_selector='td:nth-child(1) > a', angular=True) self.job_type = element.Caption(self, alias="Job Type", css_selector='td:nth-child(2)', angular=True) self.description = element.Caption(self, alias="Client Name", css_selector='td:nth-child(3)', angular=True) self.address = element.Caption(self, alias="Address", css_selector='td:nth-child(4)', angular=True) self.suburb = element.Caption(self, alias="Suburb", css_selector='td:nth-child(5)', angular=True) self.client = element.Caption(self, alias="Client", css_selector='td:nth-child(6)', angular=True)
def form_setup(self): super(AdminSupervisorAddPage, self).form_setup() self.supervisor_name = element.TextBox(self, dom_id='id_name', alias="Supervisor Name") self.account_collapser = element.Link(self, dom_id='fieldsetcollapser0', alias="Account Collapser Link") self.username = element.TextBox(self, dom_id='id_username', alias="Username") self.password = element.TextBox(self, dom_id='id_password', alias="Password") self.confirm_password = element.TextBox(self, dom_id='id_confirm_password', alias="Confirm Password") self.email = element.TextBox(self, dom_id='id_email', alias="Email") self.phone_number = element.TextBox(self, dom_id='id_phone_number', alias="Phone Number") self.enabled = element.CheckBox(self, dom_id='id_enabled', alias="Enabled")
def form_setup(self): super(AdminSubbieAddPage, self).form_setup() self.subbie_name = element.TextBox(self, dom_id='id_name', alias="Subbie Name") self.type = element.DropDown(self, dom_id='id_type', alias="Subbie Type") self.xero_supplier = element.DropDown(self, dom_id='id_xero_supplier', alias="Xero Supplier") self.rate_per_meter = element.TextBox(self, dom_id='id_rate_per_m', alias="Rate per meter") self.jobs_per_day = element.TextBox(self, dom_id='id_jobs_per_day', alias="Jobs per day") self.can_see_plans_before_accept = element.CheckBox(self, dom_id='id_can_see_plans_before_accept', alias="Can See Plans Before Accept Checkbox") self.account_collapser = element.Link(self, dom_id='fieldsetcollapser0', alias="Account Collapser Link") self.username = element.TextBox(self, dom_id='id_username', alias="Username") self.password = element.TextBox(self, dom_id='id_password', alias="Password") self.confirm_password = element.TextBox(self, dom_id='id_confirm_password', alias="Confirm Password") self.email = element.TextBox(self, dom_id='id_email', alias="Email") self.enabled = element.CheckBox(self, dom_id='id_enabled', alias="Enabled")
def form_setup(self): super(AdminSubbieListPage, self).form_setup() self.subbie_name = element.Link(self, css_selector='#result_list th:nth-child(1) a', alias="Subbie Name Sort Link") self.type = element.Link(self, css_selector='#result_list th:nth-child(2) a', alias="Subbie Type Sort Link") self.has_xero = element.Caption(self, css_selector='#result_list th:nth-child(3) span', alias="Has Xero Text") self.username = element.Link(self, css_selector='#result_list th:nth-child(4) a', alias="Username Sort Link") self.email = element.Link(self, css_selector='#result_list th:nth-child(5) a', alias="Email Sort Link") self.active_start_date = element.Link(self, css_selector='#result_list th:nth-child(6) a', alias="Active Start Date Sort Link") self.active_end_date = element.Link(self, css_selector='#result_list th:nth-child(7) a', alias="Active End Date Sort Link") self.subbies = []
def form_setup(self): super(AdminClientListPage, self).form_setup() self.client_name = element.Link(self, css_selector='#result_list th:nth-child(1) a', alias="Client Name Sort Link") self.xero_customer = element.Link(self, css_selector='#result_list th:nth-child(2) span', alias="Xero Customer Sort Link") self.send_invoices = element.Link(self, css_selector='#result_list th:nth-child(3) a', alias="Send Invoices Sort Link") self.part_a_required = element.Link(self, css_selector='#result_list th:nth-child(4) a', alias="Part A Required Sort Link") self.they_supply_pump = element.Link(self, css_selector='#result_list th:nth-child(5) a', alias="They Supply Pump Sort Link") self.active_start_date = element.Link(self, css_selector='#result_list th:nth-child(6) a', alias="Active Start Date Sort Link") self.active_end_date = element.Link(self, css_selector='#result_list th:nth-child(7) a', alias="Active End Date Sort Link") self.clients = []
def controls_setup(self): """Admin Client List Item controls""" self.history = element.Link(self, css_selector='li:nth-child(1) > a', alias="Item History") self.add = element.Link(self, css_selector='li:nth-child(2) > a', alias="Add Item")