def get_driver_platform(self):
        """
        Get driver platform where tests are running
        :return: platform name
        """
        platform = ''
        if 'platform' in self.driver.desired_capabilities:
            platform = self.driver.desired_capabilities['platform']
        elif 'platformName' in self.driver.desired_capabilities:
            platform = self.driver.desired_capabilities['platformName']
        return platform
def get_driver_platform ( self ) : platform = '' if 'platform' in self . driver . desired_capabilities : platform = self . driver . desired_capabilities [ 'platform' ] elif 'platformName' in self . driver . desired_capabilities : platform = self . driver . desired_capabilities [ 'platformName' ] return platform
Get driver platform where tests are running
        :return: platform name