# Path: conf/remote_credentials.py
# REMOTE_BROWSER_PLATFORM = "BS"
# USERNAME = "Enter your username"
# ACCESS_KEY = "Enter your access key"


from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from conf import remote_credentials
from datetime import datetime
import os
import requests
import json

        return desired_capabilities

    @staticmethod
    def remote_build_name(desired_capabilities, remote_build_name):
        """Set remote build name for browserstack."""
        desired_capabilities['build'] = remote_build_name+"_"+str(datetime.now().strftime("%c"))

        return desired_capabilities

    @staticmethod
    def saucelab_platform(desired_capabilities, os_name, os_version):
        """Set platform for saucelab."""
        desired_capabilities['platform'] = os_name + ' '+os_version

        return desired_capabilities

    @staticmethod
    def set_mobile_device(mobile_os_name, mobile_os_version, device_name):
        """Setup the mobile device."""
        desired_capabilities = {}
        desired_capabilities['platformName'] = mobile_os_name
        desired_capabilities['platformVersion'] = mobile_os_version
        desired_capabilities['deviceName'] = device_name

        return desired_capabilities

    @staticmethod
    def sauce_upload(app_path, app_name):
        """Upload the apk to the sauce temperory storage."""

# Path: conf/remote_credentials.py
# REMOTE_BROWSER_PLATFORM = "BS"
# USERNAME = "Enter your username"
# ACCESS_KEY = "Enter your access key"


# Path: page_objects/drivers/remote_options.py
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from conf import remote_credentials
from datetime import datetime
import os
import requests
import json


        return desired_capabilities

    @staticmethod
    def remote_build_name(desired_capabilities, remote_build_name):
        """Set remote build name for browserstack."""
        desired_capabilities['build'] = remote_build_name+"_"+str(datetime.now().strftime("%c"))

        return desired_capabilities

    @staticmethod
    def saucelab_platform(desired_capabilities, os_name, os_version):
        """Set platform for saucelab."""
        desired_capabilities['platform'] = os_name + ' '+os_version

        return desired_capabilities

    @staticmethod
    def set_mobile_device(mobile_os_name, mobile_os_version, device_name):
        """Setup the mobile device."""
        desired_capabilities = {}
        desired_capabilities['platformName'] = mobile_os_name
        desired_capabilities['platformVersion'] = mobile_os_version
        desired_capabilities['deviceName'] = device_name

        return desired_capabilities

    @staticmethod
    def sauce_upload(app_path, app_name):
        """Upload the apk to the sauce temperory storage."""

        username = remote_credentials.USERNAME