[ {
"command" : {
"applyConfigurationCommand" : {
"config" : {
"appId" : "https://maestro.mobile.dev"
},
"optional" : false
}
},
"metadata" : {
"status" : "COMPLETED",
"timestamp" : 1775307658586,
"duration" : 3,
"sequenceNumber" : 1,
"evaluatedCommand" : {
"applyConfigurationCommand" : {
"config" : {
"appId" : "https://maestro.mobile.dev"
},
"optional" : false
}
}
}
}, {
"command" : {
"defineVariablesCommand" : {
"env" : {
"MAESTRO_FILENAME" : "example",
"MAESTRO_DEVICE_UDID" : "chromium",
"MAESTRO_SHARD_ID" : "1",
"MAESTRO_SHARD_INDEX" : "0"
},
"optional" : false
}
},
"metadata" : {
"status" : "COMPLETED",
"timestamp" : 1775307658575,
"duration" : 9,
"sequenceNumber" : 0,
"evaluatedCommand" : {
"defineVariablesCommand" : {
"env" : {
"MAESTRO_FILENAME" : "example",
"MAESTRO_DEVICE_UDID" : "chromium",
"MAESTRO_SHARD_ID" : "1",
"MAESTRO_SHARD_INDEX" : "0"
},
"optional" : false
}
}
}
}, {
"command" : {
"assertConditionCommand" : {
"condition" : {
"visible" : {
"textRegex" : "Maestro Studio",
"optional" : false
}
},
"optional" : false
}
},
"metadata" : {
"status" : "FAILED",
"timestamp" : 1775307658998,
"duration" : 1854,
"error" : {
"stackTrace" : [ {
"classLoaderName" : "app",
"methodName" : "decode",
"fileName" : "ErrorCodec.java",
"lineNumber" : 169,
"className" : "org.openqa.selenium.remote.ErrorCodec",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "decode",
"fileName" : "W3CHttpResponseCodec.java",
"lineNumber" : 142,
"className" : "org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "decode",
"fileName" : "W3CHttpResponseCodec.java",
"lineNumber" : 49,
"className" : "org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "execute",
"fileName" : "HttpCommandExecutor.java",
"lineNumber" : 223,
"className" : "org.openqa.selenium.remote.HttpCommandExecutor",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "invokeExecute",
"fileName" : "DriverCommandExecutor.java",
"lineNumber" : 216,
"className" : "org.openqa.selenium.remote.service.DriverCommandExecutor",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "execute",
"fileName" : "DriverCommandExecutor.java",
"lineNumber" : 174,
"className" : "org.openqa.selenium.remote.service.DriverCommandExecutor",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "execute",
"fileName" : "RemoteWebDriver.java",
"lineNumber" : 601,
"className" : "org.openqa.selenium.remote.RemoteWebDriver",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "frame",
"fileName" : "RemoteWebDriver.java",
"lineNumber" : 1221,
"className" : "org.openqa.selenium.remote.RemoteWebDriver$RemoteTargetLocator",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "fetchCrossOriginIframeContent",
"fileName" : "CdpWebDriver.kt",
"lineNumber" : 703,
"className" : "maestro.drivers.CdpWebDriver",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "injectCrossOriginIframes",
"fileName" : "CdpWebDriver.kt",
"lineNumber" : 655,
"className" : "maestro.drivers.CdpWebDriver",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "injectCrossOriginIframes",
"fileName" : "CdpWebDriver.kt",
"lineNumber" : 662,
"className" : "maestro.drivers.CdpWebDriver",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "injectCrossOriginIframes",
"fileName" : "CdpWebDriver.kt",
"lineNumber" : 662,
"className" : "maestro.drivers.CdpWebDriver",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "injectCrossOriginIframes",
"fileName" : "CdpWebDriver.kt",
"lineNumber" : 662,
"className" : "maestro.drivers.CdpWebDriver",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "injectCrossOriginIframes",
"fileName" : "CdpWebDriver.kt",
"lineNumber" : 662,
"className" : "maestro.drivers.CdpWebDriver",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "injectCrossOriginIframes",
"fileName" : "CdpWebDriver.kt",
"lineNumber" : 662,
"className" : "maestro.drivers.CdpWebDriver",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "injectCrossOriginIframes",
"fileName" : "CdpWebDriver.kt",
"lineNumber" : 662,
"className" : "maestro.drivers.CdpWebDriver",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "injectCrossOriginIframes",
"fileName" : "CdpWebDriver.kt",
"lineNumber" : 662,
"className" : "maestro.drivers.CdpWebDriver",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "injectCrossOriginIframes",
"fileName" : "CdpWebDriver.kt",
"lineNumber" : 662,
"className" : "maestro.drivers.CdpWebDriver",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "injectCrossOriginIframes",
"fileName" : "CdpWebDriver.kt",
"lineNumber" : 662,
"className" : "maestro.drivers.CdpWebDriver",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "injectCrossOriginIframes",
"fileName" : "CdpWebDriver.kt",
"lineNumber" : 662,
"className" : "maestro.drivers.CdpWebDriver",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "injectCrossOriginIframes",
"fileName" : "CdpWebDriver.kt",
"lineNumber" : 662,
"className" : "maestro.drivers.CdpWebDriver",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "contentDescriptor",
"fileName" : "CdpWebDriver.kt",
"lineNumber" : 276,
"className" : "maestro.drivers.CdpWebDriver",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "from-8JJjmZI",
"fileName" : "ViewHierarchy.kt",
"lineNumber" : 29,
"className" : "maestro.ViewHierarchy$Companion",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "viewHierarchy-c1iYVAs",
"fileName" : "Maestro.kt",
"lineNumber" : 418,
"className" : "maestro.Maestro",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "viewHierarchy-c1iYVAs$default",
"fileName" : "Maestro.kt",
"lineNumber" : 417,
"className" : "maestro.Maestro",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "findElementWithTimeout_AE3g2Tc$lambda$9",
"fileName" : "Maestro.kt",
"lineNumber" : 428,
"className" : "maestro.Maestro",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "withTimeout",
"fileName" : "MaestroTimer.kt",
"lineNumber" : 16,
"className" : "maestro.utils.MaestroTimer",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "findElementWithTimeout-AE3g2Tc",
"fileName" : "Maestro.kt",
"lineNumber" : 427,
"className" : "maestro.Maestro",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "findElementWithTimeout-AE3g2Tc$default",
"fileName" : "Maestro.kt",
"lineNumber" : 421,
"className" : "maestro.Maestro",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "findElement",
"fileName" : "Orchestra.kt",
"lineNumber" : 1342,
"className" : "maestro.orchestra.Orchestra",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "evaluateCondition",
"fileName" : "Orchestra.kt",
"lineNumber" : 941,
"className" : "maestro.orchestra.Orchestra",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "assertConditionCommand",
"fileName" : "Orchestra.kt",
"lineNumber" : 432,
"className" : "maestro.orchestra.Orchestra",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "executeCommand",
"fileName" : "Orchestra.kt",
"lineNumber" : 353,
"className" : "maestro.orchestra.Orchestra",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "executeCommands",
"fileName" : "Orchestra.kt",
"lineNumber" : 274,
"className" : "maestro.orchestra.Orchestra",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "runFlow",
"fileName" : "Orchestra.kt",
"lineNumber" : 190,
"className" : "maestro.orchestra.Orchestra",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "runCommands",
"fileName" : "MaestroCommandRunner.kt",
"lineNumber" : 201,
"className" : "maestro.cli.runner.MaestroCommandRunner",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "invokeSuspend",
"fileName" : "TestRunner.kt",
"lineNumber" : 76,
"className" : "maestro.cli.runner.TestRunner$runSingle$result$1$1",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "resumeWith",
"fileName" : "ContinuationImpl.kt",
"lineNumber" : 34,
"className" : "kotlin.coroutines.jvm.internal.BaseContinuationImpl",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "run",
"fileName" : "DispatchedTask.kt",
"lineNumber" : 104,
"className" : "kotlinx.coroutines.DispatchedTask",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "processNextEvent",
"fileName" : "EventLoop.common.kt",
"lineNumber" : 277,
"className" : "kotlinx.coroutines.EventLoopImplBase",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "joinBlocking",
"fileName" : "Builders.kt",
"lineNumber" : 95,
"className" : "kotlinx.coroutines.BlockingCoroutine",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "runBlocking",
"fileName" : "Builders.kt",
"lineNumber" : 69,
"className" : "kotlinx.coroutines.BuildersKt__BuildersKt",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "runBlocking",
"lineNumber" : 1,
"className" : "kotlinx.coroutines.BuildersKt",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "runBlocking$default",
"fileName" : "Builders.kt",
"lineNumber" : 48,
"className" : "kotlinx.coroutines.BuildersKt__BuildersKt",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "runBlocking$default",
"lineNumber" : 1,
"className" : "kotlinx.coroutines.BuildersKt",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "runSingle$lambda$0",
"fileName" : "TestRunner.kt",
"lineNumber" : 75,
"className" : "maestro.cli.runner.TestRunner",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "runCatching-ta8aW1Q",
"fileName" : "TestRunner.kt",
"lineNumber" : 204,
"className" : "maestro.cli.runner.TestRunner",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "runSingle",
"fileName" : "TestRunner.kt",
"lineNumber" : 66,
"className" : "maestro.cli.runner.TestRunner",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "runSingleFlow",
"fileName" : "TestCommand.kt",
"lineNumber" : 561,
"className" : "maestro.cli.command.TestCommand",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "runShardSuite$lambda$10",
"fileName" : "TestCommand.kt",
"lineNumber" : 529,
"className" : "maestro.cli.command.TestCommand",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "newSession",
"fileName" : "MaestroSessionManager.kt",
"lineNumber" : 132,
"className" : "maestro.cli.session.MaestroSessionManager",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "newSession$default",
"fileName" : "MaestroSessionManager.kt",
"lineNumber" : 66,
"className" : "maestro.cli.session.MaestroSessionManager",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "runShardSuite",
"fileName" : "TestCommand.kt",
"lineNumber" : 476,
"className" : "maestro.cli.command.TestCommand",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "access$runShardSuite",
"fileName" : "TestCommand.kt",
"lineNumber" : 80,
"className" : "maestro.cli.command.TestCommand",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "invokeSuspend",
"fileName" : "TestCommand.kt",
"lineNumber" : 435,
"className" : "maestro.cli.command.TestCommand$handleSessions$1$results$1$1",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "resumeWith",
"fileName" : "ContinuationImpl.kt",
"lineNumber" : 34,
"className" : "kotlin.coroutines.jvm.internal.BaseContinuationImpl",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "run",
"fileName" : "DispatchedTask.kt",
"lineNumber" : 104,
"className" : "kotlinx.coroutines.DispatchedTask",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "run",
"fileName" : "LimitedDispatcher.kt",
"lineNumber" : 111,
"className" : "kotlinx.coroutines.internal.LimitedDispatcher$Worker",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "run",
"fileName" : "Tasks.kt",
"lineNumber" : 99,
"className" : "kotlinx.coroutines.scheduling.TaskImpl",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "runSafely",
"fileName" : "CoroutineScheduler.kt",
"lineNumber" : 585,
"className" : "kotlinx.coroutines.scheduling.CoroutineScheduler",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "executeTask",
"fileName" : "CoroutineScheduler.kt",
"lineNumber" : 802,
"className" : "kotlinx.coroutines.scheduling.CoroutineScheduler$Worker",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "runWorker",
"fileName" : "CoroutineScheduler.kt",
"lineNumber" : 706,
"className" : "kotlinx.coroutines.scheduling.CoroutineScheduler$Worker",
"nativeMethod" : false
}, {
"classLoaderName" : "app",
"methodName" : "run",
"fileName" : "CoroutineScheduler.kt",
"lineNumber" : 693,
"className" : "kotlinx.coroutines.scheduling.CoroutineScheduler$Worker",
"nativeMethod" : false
} ],
"supportUrl" : "https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#staleelementreferenceexception",
"message" : "stale element reference: stale element not found in the current frame\n (Session info: chrome=146.0.7680.178)\nFor documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#staleelementreferenceexception\nBuild info: version: '4.40.0', revision: 'b3333f1'\nSystem info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '25'\nDriver info: org.openqa.selenium.chrome.ChromeDriver\nCommand: [a072ab435cee6bfcbdd1773e6c6a9e81, switchToFrame {id={element-6066-11e4-a52e-4f735466cecf=f.CC6D55CAB2C51CD2511E9EC0F4133A8A.d.B70F1D33C235EA31D3D5DBBC70501C82.e.31}}]\nCapabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 146.0.7680.178, chrome: {chromedriverVersion: 146.0.7680.165 (4b989da09e1..., userDataDir: C:\\Users\\N5330~1.AVA\\AppDat...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:62828}, goog:processID: 7032, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: windows, proxy: Proxy(), se:cdp: ws://localhost:62828/devtoo..., se:cdpVersion: 146.0.7680.178, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}\nSession ID: a072ab435cee6bfcbdd1773e6c6a9e81",
"additionalInformation" : "Driver info: org.openqa.selenium.chrome.ChromeDriver\nCommand: [a072ab435cee6bfcbdd1773e6c6a9e81, switchToFrame {id={element-6066-11e4-a52e-4f735466cecf=f.CC6D55CAB2C51CD2511E9EC0F4133A8A.d.B70F1D33C235EA31D3D5DBBC70501C82.e.31}}]\nCapabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 146.0.7680.178, chrome: {chromedriverVersion: 146.0.7680.165 (4b989da09e1..., userDataDir: C:\\Users\\N5330~1.AVA\\AppDat...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:62828}, goog:processID: 7032, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: windows, proxy: Proxy(), se:cdp: ws://localhost:62828/devtoo..., se:cdpVersion: 146.0.7680.178, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}\nSession ID: a072ab435cee6bfcbdd1773e6c6a9e81",
"systemInformation" : "System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '25'",
"rawMessage" : "stale element reference: stale element not found in the current frame\n (Session info: chrome=146.0.7680.178)",
"buildInformation" : {
"buildRevision" : "b3333f1",
"releaseLabel" : "4.40.0"
},
"localizedMessage" : "stale element reference: stale element not found in the current frame\n (Session info: chrome=146.0.7680.178)\nFor documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#staleelementreferenceexception\nBuild info: version: '4.40.0', revision: 'b3333f1'\nSystem info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '25'\nDriver info: org.openqa.selenium.chrome.ChromeDriver\nCommand: [a072ab435cee6bfcbdd1773e6c6a9e81, switchToFrame {id={element-6066-11e4-a52e-4f735466cecf=f.CC6D55CAB2C51CD2511E9EC0F4133A8A.d.B70F1D33C235EA31D3D5DBBC70501C82.e.31}}]\nCapabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 146.0.7680.178, chrome: {chromedriverVersion: 146.0.7680.165 (4b989da09e1..., userDataDir: C:\\Users\\N5330~1.AVA\\AppDat...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:62828}, goog:processID: 7032, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: windows, proxy: Proxy(), se:cdp: ws://localhost:62828/devtoo..., se:cdpVersion: 146.0.7680.178, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}\nSession ID: a072ab435cee6bfcbdd1773e6c6a9e81"
},
"sequenceNumber" : 3,
"evaluatedCommand" : {
"assertConditionCommand" : {
"condition" : {
"visible" : {
"textRegex" : "Maestro Studio",
"optional" : false
}
},
"optional" : false
}
}
}
}, {
"command" : {
"launchAppCommand" : {
"appId" : "https://maestro.mobile.dev",
"clearState" : true,
"optional" : false
}
},
"metadata" : {
"status" : "COMPLETED",
"timestamp" : 1775307658592,
"duration" : 404,
"sequenceNumber" : 2,
"evaluatedCommand" : {
"launchAppCommand" : {
"appId" : "https://maestro.mobile.dev",
"clearState" : true,
"optional" : false
}
}
}
} ]
Is there an existing issue for this?
Steps to reproduce
maestro test .\example.yaml --headlessActual results
Fail occur on
assertVisibleExpected results
Assertion expected to be true
About app
Web application
About environment
OS
OS: Windows 11
OS version: 10.0
Architecture: amd64
Java
java version "25" 2025-09-16 LTS
Java(TM) SE Runtime Environment (build 25+37-LTS-3491)
Java HotSpot(TM) 64-Bit Server VM (build 25+37-LTS-3491, mixed mode, sharing)
Logs
Logs
Maestro version
2.4.0
How did you install Maestro?
install script (https://get.maestro.mobile.dev)
Anything else?
Screenshot of failing test