# Path: tests/functional/tests/helpers.py
# class DesktopTestCase(BaseTestCase):
#     def __new__(cls, *args, **kwargs):
#         if not cls.desired_capabilities or getattr(Config, 'browser', '') == 'chrome':
#             cls.desired_capabilities = DesiredCapabilities.CHROME.copy()
# 
#         if getattr(Config, 'browser', '') == 'firefox':
#             cls.desired_capabilities.update(DesiredCapabilities.FIREFOX.copy())
# 
#         if getattr(Config, 'browser', '') == 'chrome':
#             cls.desired_capabilities["chromeOptions"] = {
#                 "args": [
#                     "--use-gl",
#                     "--ignore-gpu-blacklist"
#                 ],
#                 "extensions": []
#             }
# 
#         if hasattr(Config, 'version'):
#             cls.desired_capabilities["version"] = getattr(Config, 'version', 'ANY')
# 
#         cls.desired_capabilities["takeScreenshot"] = getattr(Config, "take_screenshot", True)
#         cls.desired_capabilities["takeScreencast"] = getattr(Config, "take_screencast", False)
# 
#         return super(DesktopTestCase, cls).__new__(cls)
# 
# class AndroidTestCase(BaseTestCase):
#     def __new__(cls, *args, **kwargs):
#         if not cls.desired_capabilities:
#             cls.desired_capabilities = DesiredCapabilities.ANDROID.copy()
# 
#         return super(AndroidTestCase, cls).__new__(cls)


import os
from tests.functional.tests.helpers import DesktopTestCase, AndroidTestCase
            "STF_CONNECT_SPEC": "{\"serial\":\"YT9118JM3A\"}",
        },
    }

    def test_open_url_in_browser(self):
        self.driver.get(self.micro_app_address)
        go_button = self.driver.find_element_by_xpath("//input[2]")
        go_button.click()


class TestAndroidNativeTestCase(AndroidTestCase):
    desired_capabilities = {
        "platformName": "ANDROID",
        "deviceName": "ANY",
        "browserName": "ANY",
        "unicodeKeyboard": True,
        "resetKeyboard": True,
        "noSign": True,
        "disableAndroidWatchers": True,
        "appPackage": "com.android.calculator2",
        "appActivity": ".Calculator",
        "environmentVars": {
            "STF_CONNECT_SPEC": "{\"model\":\" SDK built for x86\"}",
        },
    }

    def test_open_mobile_application(self):
        raise Exception('application was opened')



# Path: tests/functional/tests/helpers.py
# class DesktopTestCase(BaseTestCase):
#     def __new__(cls, *args, **kwargs):
#         if not cls.desired_capabilities or getattr(Config, 'browser', '') == 'chrome':
#             cls.desired_capabilities = DesiredCapabilities.CHROME.copy()
# 
#         if getattr(Config, 'browser', '') == 'firefox':
#             cls.desired_capabilities.update(DesiredCapabilities.FIREFOX.copy())
# 
#         if getattr(Config, 'browser', '') == 'chrome':
#             cls.desired_capabilities["chromeOptions"] = {
#                 "args": [
#                     "--use-gl",
#                     "--ignore-gpu-blacklist"
#                 ],
#                 "extensions": []
#             }
# 
#         if hasattr(Config, 'version'):
#             cls.desired_capabilities["version"] = getattr(Config, 'version', 'ANY')
# 
#         cls.desired_capabilities["takeScreenshot"] = getattr(Config, "take_screenshot", True)
#         cls.desired_capabilities["takeScreencast"] = getattr(Config, "take_screencast", False)
# 
#         return super(DesktopTestCase, cls).__new__(cls)
# 
# class AndroidTestCase(BaseTestCase):
#     def __new__(cls, *args, **kwargs):
#         if not cls.desired_capabilities:
#             cls.desired_capabilities = DesiredCapabilities.ANDROID.copy()
# 
#         return super(AndroidTestCase, cls).__new__(cls)


# Path: tests/functional/tests/test_normal.py
import os
from tests.functional.tests.helpers import DesktopTestCase, AndroidTestCase

            "STF_CONNECT_SPEC": "{\"serial\":\"YT9118JM3A\"}",
        },
    }

    def test_open_url_in_browser(self):
        self.driver.get(self.micro_app_address)
        go_button = self.driver.find_element_by_xpath("//input[2]")
        go_button.click()


class TestAndroidNativeTestCase(AndroidTestCase):
    desired_capabilities = {
        "platformName": "ANDROID",
        "deviceName": "ANY",
        "browserName": "ANY",
        "unicodeKeyboard": True,
        "resetKeyboard": True,
        "noSign": True,
        "disableAndroidWatchers": True,
        "appPackage": "com.android.calculator2",
        "appActivity": ".Calculator",
        "environmentVars": {
            "STF_CONNECT_SPEC": "{\"model\":\" SDK built for x86\"}",
        },
    }

    def test_open_mobile_application(self):
        raise Exception('application was opened')



class TestPositiveCase(DesktopTestCase):