Repository navigation
Open
Description
I'm using pytest-html to report on my test runs. For the iOS tests particularly I'm getting failures since upgrading my xcuitest and Appium. These failures aren't generating screenshots for my tests either:
raise exception_class(message, screen, stacktrace)
E selenium.common.exceptions.SessionNotCreatedException: Message: Could not start a new session. Could not start a new session. Error while creating session with the service http://localhost:4726. Could not start a new session. Response code 500. Message: Waited 10000ms but the MJPEG server never sent any images
E Host info: host: 'XD99WFXHKN', ip: '10.63.15.144'
E Build info: version: '4.38.0', revision: '6b412e825c'
E System info: os.name: 'Mac OS X', os.arch: 'aarch64', os.version: '26.2', java.version: '17.0.19'
E Driver info: driver.version: unknown
E Build info: version: '4.38.0', revision: '6b412e825c'
E System info: os.name: 'Mac OS X', os.arch: 'aarch64', os.version: '26.2', java.version: '17.0.19'
E Driver info: driver.version: unknown
E Build info: version: '4.38.0', revision: '6b412e825c'
E System info: os.name: 'Mac OS X', os.arch: 'aarch64', os.version: '26.4.1', java.version: '17.0.17'
E Driver info: driver.version: unknown
E Stacktrace:
E at org.openqa.selenium.grid.node.remote.RemoteNode.newSession (RemoteNode.java:167)
E at org.openqa.selenium.grid.distributor.local.LocalDistributor.startSession (LocalDistributor.java:427)
E at org.openqa.selenium.grid.distributor.local.LocalDistributor.newSession (LocalDistributor.java:346)
E at org.openqa.selenium.grid.distributor.local.LocalDistributor$NewSessionRunnable.handleNewSessionRequest (LocalDistributor.java:601)
E at org.openqa.selenium.grid.distributor.local.LocalDistributor$NewSessionRunnable.lambda$run$1 (LocalDistributor.java:551)
E at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1136)
E at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635)
E at java.lang.Thread.run (Thread.java:840)
_env/lib/python3.14/site-packages/selenium/webdriver/remote/errorhandler.py:232: SessionNotCreatedException
Metadata
Metadata
Assignees
Labels
No labels
Activity
KazuCocoa commentedon Jun 18, 2026
It looks like the environment failed to take a screenshot, as there was no response from the underlying XCTest API.
WebDriverAgent/WebDriverAgentLib/Utilities/FBScreenshot.m
Lines 110 to 132 in 417db80
What was printed in the device log?
Also, what version was working? The latest version's changes were log messages/docstring #1154