def initial_driver(self,platform,captureScreenShot="False",device="common"):
        Util.platform=platform.lower()
        Util.device=device
        Util.captureScreenShot=captureScreenShot
        if os.environ.get('ANYWHERE_LIBRARY_CONFIGURATION_FILE')!=None:
            configuration_file_path=os.environ['ANYWHERE_LIBRARY_CONFIGURATION_FILE']
        else:
            file_path=os.path.join(os.path.dirname(AnywhereLibrary.__file__),"cfg/configuration.xml")
            configuration_file_path=os.path.abspath(file_path)
        self._loadConfigFile(configuration_file_path)
        if Util.platform=='iphone':
            Util.driver = appiumdriver.Remote(
                                           command_executor=self._getPara('remote_server'),
                                           desired_capabilities={
                                           'deviceName':self._getPara('deviceName'),
                                           'platformName':self._getPara('platformName'),
                                           'platformVersion':self._getPara('platformVersion'),
                                           'app': self._getPara('app')
                                           })        
        elif Util.platform=='ipad':
            Util.driver = appiumdriver.Remote(
                                           command_executor=self._getPara('remote_server'),
                                           desired_capabilities={
                                           'deviceName': self._getPara('deviceName'),
                                           'platformName':self._getPara('platformName'),
                                           'platformVersion':self._getPara('platformVersion'),
                                           'app': self._getPara('app')
                                           })
        elif Util.platform=='android':
            Util.driver = appiumdriver.Remote(command_executor=self._getPara('remote_server'),
                                           desired_capabilities={
                                           'deviceName': self._getPara('deviceName'),
                                           'platformName':self._getPara('platformName'),
                                           'app': os.path.abspath(self._getPara('app')),
                                           'appPackage': self._getPara('appPackage'),
                                           'appActivity': self._getPara('appActivity')
                                           })
        elif Util.platform =='selendroid':
            Util.driver = appiumdriver.Remote(command_executor=self._getPara('remote_server'),
                                           desired_capabilities={
                                           'deviceName': self._getPara('deviceName'),
                                           'platformName':self._getPara('platformName'),
                                           'automationName': os.path.abspath(self._getPara('automationName')),
                                           'app': os.path.abspath(self._getPara('app')),
                                           'appPackage': self._getPara('appPackage'),
                                           'appActivity': self._getPara('appActivity')
                                           })

        elif Util.platform=='chrome':
            Util.driver=webdriver.Chrome()
            Util.driver.maximize_window()
            self.navigate_to_url(self._getPara('url'))
        elif Util.platform=='firefox':
            Util.driver=webdriver.Firefox()
            Util.driver.maximize_window()
            self.navigate_to_url(self._getPara('url'))
        elif Util.platform=='ie':
	    caps = DesiredCapabilities.INTERNETEXPLORER
            caps['ignoreProtectedModeSettings'] = True
            Util.driver=webdriver.Ie(capabilities=caps)
            Util.driver.maximize_window()
            self.navigate_to_url(self._getPara('url'))
Initial Driver for specific platform according to the platform which you input.
dataset/ETHPy150Open luisxiaomai/robotframework-anywherelibrary/src/AnywhereLibrary/base/util.py/Util.initial_driver