def page_factory(self):
     name_list = ['choose_upload_file', 'import_success']
     ele_dic = page_element_factory(__file__, name_list)
     self.choose_upload_file_locator = ele_dic['choose_upload_file']
     self.import_success_locator = ele_dic['import_success']
     print(self.choose_upload_file_locator, self.import_success_locator)
     pass
Esempio n. 2
0
 def page_factory(self):
     name_list = ['team3', 'Main_Forecast_review_button']
     ele_dic = page_element_factory(__file__, name_list)
     self.team3_locator = ele_dic['team3']
     self.Main_Forecast_review_button_element = get_element(
         self.driver, ele_dic['Main_Forecast_review_button'])  # 主页面预测审核按钮
     pass
 def page_factory(self):
     name_list = ['province', 'city', 'county']
     ele_dic = page_element_factory(__file__, name_list)
     self.province_locator = ele_dic['province']  # 省
     self.city_locator = ele_dic['city']  # 市
     self.county_locator = ele_dic['county']  # 县
     pass
Esempio n. 4
0
    def page_factory(self):

        name_list = ['Closesy_Button']
        element_metadata_dict = page_element_factory(__file__, name_list)
        self.Closesy_Button_element = get_element(
            self.driver, element_metadata_dict['Closesy_Button'])

        pass
Esempio n. 5
0
    def page_factory(self):

        name_list = ['TrunOnClick_button']
        element_metadata_dict = page_element_factory(__file__, name_list)

        print(element_metadata_dict)

        self.TrunOnClick_button_element = get_element(
            self.driver, element_metadata_dict['TrunOnClick_button'])
        pass
Esempio n. 6
0
 def page_factory(self):
     name_list = ['Refresh', 'ReleaseLaborDemand', 'StorageUnloading', 'StorageHanDove', 'StoragePoint', 'StorageInventory']
     ele_dic = page_element_factory(__file__, name_list)
     self.refresh_locator = ele_dic['Refresh']
     self.releaselabordemand_locator = ele_dic['ReleaseLaborDemand']
     self.storageunloading_locator = ele_dic['StorageUnloading']
     self.storagehandove_locator = ele_dic['StorageHanDove']
     self.storagepoint_locator = ele_dic['StoragePoint']
     self.storageinventory_locator = ele_dic['StorageInventory']
     pass
Esempio n. 7
0
    def page_factory(self):

        name_list = ['icon_back']
        element_metadata_dict = page_element_factory(__file__, name_list)

        print(element_metadata_dict)

        self.icon_back_element = get_element(self.driver, element_metadata_dict['icon_back'])

        pass
Esempio n. 8
0
 def page_factory(self):
     namelist = [
         'AssetsTypeTitleText', 'AssetsOneBox', 'AssetsTwoBox',
         'AssetsButton', 'AssetsThreeBox'
     ]
     ele_dic = page_element_factory(__file__, namelist)
     self.assets_type_title_text_locator = ele_dic[
         'AssetsTypeTitleText']  # 选择类别框
     self.assets_one_box_locator = ele_dic['AssetsOneBox']
     self.assets_two_box_locator = ele_dic['AssetsTwoBox']
     self.assets_three_box_locator = ele_dic['AssetsThreeBox']
     self.assets_button_locator = ele_dic['AssetsButton']
Esempio n. 9
0
 def page_factory(self):
     name_list = [
         'c_name', 'phone', 'address', 'sddress_detail', 'zip_code',
         'order_no', 'submit', 'blank', 'card_type', 'task_create_time'
     ]
     ele_dic = page_element_factory(__file__, name_list)
     self.c_name_locator = ele_dic['c_name']  # 名字
     self.phone_locator = ele_dic['phone']  # 电话
     self.address_locator = ele_dic['address']  # 地址
     self.sddress_detail_locator = ele_dic['sddress_detail']  # 详细地址
     self.zip_code_locator = ele_dic['zip_code']  # 邮编
     self.order_no_locator = ele_dic['order_no']  # 订单号
     self.submit_locator = ele_dic['submit']  # 提交
     self.blank_locator = ele_dic['blank']  # 空白
     self.card_type_locator = ele_dic['card_type']  # 卡片类型
     self.task_create_time_locator = ele_dic['task_create_time']  # 任务创建时间
     pass
Esempio n. 10
0
    def page_factory(self):
        name_list = [
            'ip_address', 'port', 'print_type', 'type_to_print', 'location',
            'submit'
        ]
        element_metadata_dict = page_element_factory(__file__, name_list)
        self.ip_address_input_box_element = get_element(
            self.driver, element_metadata_dict['ip_address'])
        self.port_input_box_element = get_element(
            self.driver, element_metadata_dict['port'])
        self.choose_priter_type_element = get_element(
            self.driver, element_metadata_dict['print_type'])
        self.choose_to_print_type_element = get_element(
            self.driver, element_metadata_dict['type_to_print'])
        self.choose_location_element = get_element(
            self.driver, element_metadata_dict['location'])
        self.submit_element = get_element(self.driver,
                                          element_metadata_dict['submit'])

        pass
Esempio n. 11
0
 def page_factory(self):
     namelist = ('serveTypeTitleText', 'serveOneBox', 'serveTwoBox',
                 'serveButton', 'serveThreeBox', 'serveFourBox',
                 'serveFiveBox', 'serveSixBox', 'serveSevenBox',
                 'serveEightBox', 'serveNineBox', 'serveTenBox',
                 'warehouse', 'labourService', 'notService')
     ele_dic = page_element_factory(__file__, namelist)
     self.serve_type_title_text_locator = ele_dic[
         'serveTypeTitleText']  # 选择类别框
     self.serve_one_box_locator = ele_dic['serveOneBox']
     self.serve_two_box_locator = ele_dic['serveTwoBox']
     self.serve_three_locator = ele_dic['serveThreeBox']
     self.serve_four_locator = ele_dic['serveFourBox']
     self.serve_five_locator = ele_dic['serveFiveBox']
     self.serve_six_locator = ele_dic['serveSixBox']
     self.serve_seven_locator = ele_dic['serveSevenBox']
     self.serve_eight_locator = ele_dic['serveEightBox']
     self.serve_nine_locator = ele_dic['serveNineBox']
     self.serve_ten_locator = ele_dic['serveTenBox']
     self.serve_button_locator = ele_dic['serveButton']
     self.warehouse_locator = ele_dic['warehouse']
     self.labour_service_locator = ele_dic['labourService']
     self.not_service_locator = ele_dic['notService']
Esempio n. 12
0
 def page_factory(self):
     name_list = ['Forecast_review_button']
     ele_dic = page_element_factory(__file__, name_list)
     self.Forecast_review_button_element = get_element(
         self.driver, ele_dic['Forecast_review_button'])  # 预测审核按钮
     pass