Ejemplo n.º 1
0
    def set_wireless(self):
        """
        Index: 0
        """
        self.set_callback_fail([
            'enable_wired', 'del_wireless_profile_from_reg',
            'close_wireless_callback'
        ])
        SwitchThinProMode("admin")

        Network.wired_wireless_switch_off()
        Network.disabled_wired()
        self.network.close()
        self.network.open()
        self.network.wireless.click()
        self.network.add.click()
        self.network.ssid.send_keys(self.ap_name)
        ssid_hidden = self.network.ssid_hidden
        ssid_hidden.global_unselected_checkbox.click()

        # check ssid hidden can be enabled
        check_box = self.network.ssid_hidden.global_selected_checkbox

        self.network.security.click()
        self.network.authentication.click()
        self.network.wpa2_psk.click()
        self.network.preshared_key.send_keys(self.password)

        self.network.wireless_apply.click()
        self.network.wireless_ok.click()

        self.network.apply.click()
Ejemplo n.º 2
0
    def set_wireless(self):
        """
        Index: 0
        """
        self.set_callback_fail([
            'close_Cert_Window', 'enable_wired',
            'del_wireless_profile_from_reg', 'close_wireless_callback'
        ])
        SwitchThinProMode("admin")

        cert_path = search_file_from_usb(self.cert_name)
        self.cert_util.import_cert(file_path=cert_path)
        Network.wired_wireless_switch_off()
        Network.disabled_wired()
        self.network.close()
        self.network.open()
        self.network.wireless.click()
        self.network.add.click()
        self.network.ssid.send_keys(self.ap_name)
        self.network.security.click()
        self.network.authentication.click()
        self.network.wpa2_peap.click()
        cert_row = self.network.wpa2_peap_ca_cert
        cert_row.wpa2_peap_ca_cert_open.click()
        self.network.wpa2_peap_cert_thinpro_store.click()
        self.network.wpa2_cert_rootca_pem.click()
        self.network.wpa2_peap_cert_open.click()
        self.network.wpa2_username.send_keys(self.username)
        self.network.wpa2_password.send_keys(self.password)

        self.network.wireless_apply.click()
        self.network.wireless_ok.click()

        self.network.apply.click()
Ejemplo n.º 3
0
    def set_wireless(self):
        """
        Index: 0
        """
        self.set_callback_fail([
            'enable_wired', 'del_wireless_profile_from_reg',
            'close_wireless_callback'
        ])
        SwitchThinProMode("admin")

        Network.wired_wireless_switch_off()
        Network.disabled_wired()
        self.network.close()
        self.network.open()
        self.network.wireless.click()
        self.network.add.click()
        self.network.ssid.send_keys(self.ap_name)
        self.network.security.click()
        self.network.authentication.click()
        self.network.wpa2_eap.click()

        self.network.wpa2_username.send_keys(self.username)
        self.network.wpa2_password.send_keys(self.password)
        self.network.wpa2_eap_fast_provisioning.click()
        self.network.wpa2_eap_allow_auth.click()

        self.network.wireless_apply.click()
        self.network.wireless_ok.click()

        self.network.apply.click()
Ejemplo n.º 4
0
    def set_wireless(self):

        self.set_callback_fail([
            'enable_wired', 'del_wireless_profile_from_reg',
            'close_wireless_callback'
        ])
        SwitchThinProMode("admin")

        Network.wired_wireless_switch_off()
        Network.disabled_wired()
        self.network.close()
        self.network.open()
        self.network.wireless.click()
        self.network.add.click()
        self.network.scan_ap.click()
        ap = self.__wait_until_ap_appear()
        ap.click()
        self.network.R1_Linux_Roaming.click()
        self.network.wireless_band.click()
        self.network.GHZ24.click()
        self.network.security.click()
        self.network.authentication.click()
        self.network.wpa2_psk.click()
        self.network.preshared_key.send_keys(self.password)
        self.network.wireless_apply.click()
        self.network.wireless_ok.click()

        self.network.apply.click()
 def set_wireless(self):
     """
     Index: 0
     """
     self.set_callback_fail(['enable_wired',
                             'del_wireless_profile_from_reg',
                             'close_ssid_windows'])
     SwitchThinProMode("admin")
     Network.wired_wireless_switch_off()
     Network.disabled_wired()
     time.sleep(5)
     disconnected_wireless = self.network.wireless_tray_disconnected
     disconnected_wireless.click()
     self.network.scan_ap.click()
     disconnected_wireless.click()
     self.network.R1TC24GaxWPA2P.click()
     time.sleep(5)
     self.ssid_panel.password.send_keys(self.password)
     self.ssid_panel.ssid_ok.click()
Ejemplo n.º 6
0
 def disable_wired_and_ping(self):
     self.set_callback_fail(
         ['close_network_panel_callback', 'enable_wired_callback'])
     Network.disabled_wired()
     self.network.wait_until_network_disconnected()
     self.__ping_method(expectation=False)