Skip to content

Added configurable noReset appium capability flag with explicit true state#118

Merged
alvarolaserna merged 1 commit intotestdevlab:masterfrom
ErnestsS-TDL:explicit-noReset-driver-fix
Mar 19, 2026
Merged

Added configurable noReset appium capability flag with explicit true state#118
alvarolaserna merged 1 commit intotestdevlab:masterfrom
ErnestsS-TDL:explicit-noReset-driver-fix

Conversation

@ErnestsS-TDL
Copy link
Contributor

Problem:

def __set_common_caps(self):
    ...

    if self.__full_reset:
        self.__desired_capabilities["appium:enforceAppInstall"] = True
    else:
        # ← always hits this
        self.__desired_capabilities["appium:noReset"] = True


def set_appium_driver(self):
    self.__set_android_caps()   # runs first
    self.__set_common_caps()    # runs last — overwrites everything

    self.__driver = start_driver(
        self.__desired_capabilities,
        ...
    )

Added def set_no_reset function to handle noReset state caps. Added to driver by .set_no_reset(bool) and defaults to true, which will not break existing projects using this code.

@alvarolaserna alvarolaserna merged commit b2266bd into testdevlab:master Mar 19, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants