org.openqa.selenium.SessionNotCreatedException

I’ve created an Appium Maven project with Java17 and testng and I’m trying to run my tests on an Azure Devops pipeline but I’m getting this error that’s preventing from executing my tests,

SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
[ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 2.074 s <<< FAILURE! - in TestSuite
[ERROR] org.example.formTesting.AppiumTest Time elapsed: 1.723 s <<< FAILURE!
** org.openqa.selenium.SessionNotCreatedException: **
** Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.**
Host info: host: ‘Mac-1684922893293.local’, ip: ‘10.79.15.88’
Caused by: org.openqa.selenium.WebDriverException:
java.lang.reflect.InvocationTargetException
Build info: version: ‘4.9.1’, revision: ‘eb2032df7f’
System info: os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘12.6.5’, java.version: ‘1.8.0_372’
Driver info: driver.version: AndroidDriver
Caused by: java.lang.reflect.InvocationTargetException
Caused by: java.io.UncheckedIOException: java.net.ConnectException: not an SSL/TLS record: 485454502f312e31203430302042616420526571756573740d0a436f6e6e656374696f6e3a20636c6f73650d0a0d0a
Caused by: java.net.ConnectException: not an SSL/TLS record: 485454502f312e31203430302042616420526571756573740d0a436f6e6e656374696f6e3a20636c6f73650d0a0d0a
Caused by: io.netty.handler.ssl.NotSslRecordException: not an SSL/TLS record: 485454502f312e31203430302042616420526571756573740d0a436f6e6e656374696f6e3a20636c6f73650d0a0d0a

I’m not sure what’s causing that and how I can fix it,

I’ll share my pom.xml, the configuration file and my Azure Pipeline :slight_smile: pipeline.txt (4.4 KB) Configuration.txt (1.2 KB) pom.txt (2.8 KB)

driver = new AndroidDriver(new URL("https://127.0.0.1:4723"), options);

start from checking this e.g. try with simple http instead of https

1 Like

Thank you so much, it works now :smiley: