Closed algernon28 closed 5 months ago
Yes, if you set property selenide.remote
, your WebDriverProvider
will not be used.
(I agree that it's not obvious, and should be logged/documented/improved).
You need to
selenide.remote=...
from selenide.properties
, andSaucelabsAndroidProvider
:
URL sauceURL = new URL("https://ondemand.eu-central-1.saucelabs.com:443/wd/hub");
Thanks I did, but now I'm getting a new error, it's breaking when trying ti instantiate a new AndroidDriver. The URL is correct, I'm confused.
" 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: 'WEL-CPYFKX3', ip: '192.168.51.99'
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:536)
at io.appium.java_client.AppiumDriver.startSession(AppiumDriver.java:268)
at org.openqa.selenium.remote.RemoteWebDriver.
Read your stack trace carefully. You will see the reason there:
java.lang.NoSuchMethodException: org.openqa.selenium.remote.ProtocolHandshake.createSession
Usually it means that you have invalid versions of some dependencies.
Thanks, I tried to update Appium from 9.2.0 to 9.2.2 and it seems to work now
The problem
I am using Selenide + Cucumber + Appium + Saucelabs. While I'm having no issues in web tests, integrating Selenide into my Appium framework is giving me headaches. Now I am getting this error:
This is the complete stacktrace from the
@Before
:And this (but it's just a consequence) it's from the
@After
:It seems that my Webdriverprovider is not being taken in account. I attach here all the relevant files in the zip.
Details
If necessary, describe the problem you have been experiencing in more detail.
Tell us about your environment
Code To Reproduce Issue [ Good To Have ]
Please remember that with sample code it's easier to reproduce the bug. files.zip