Closed skibinstein closed 11 months ago
Same issue
Same issue
I too have similar issue on Windows. It was working a few days back.
[RemoteTestNG] detected TestNG version 7.4.0
[Configuration] [WARN] Detected a static method [BaseTR.TestEngineTR.startSuite()]. Static configuration methods can cause unexpected behavior.
Aug 17, 2023 3:27:12 PM BaseTR.TestEngineTR startSuite
INFO: Properties file loaded successfully
Aug 17, 2023 3:27:12 PM BaseTR.TestEngineTR startSuite
INFO: Intializing extent Reports
Aug 17, 2023 3:27:12 PM BaseTR.TestEngineTR startSuite
INFO: Extent report is available under the same directoryC:\Users\username\eclipse-workspace\DemoNewPOM\Reports\testReport.html
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.
FAILED: configureAppium
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: 'TCGCGCG', ip: 'xxx.cc.ii.oo'
Build info: version: '4.11.0', revision: '040bc5406b'
System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '18.0.1.1'
Driver info: io.appium.java_client.android.AndroidDriver
Command: [null, newSession {capabilities=[{appium:deviceName="Pixel2API33", platformName=ANDROID, appium:automationName=UIAutomator2, appium:app=C:\Users\subhashini_r\eclipse-workspace\DemoNewPOM\src\test\resources\ApiDemos-debug.apk}], desiredCapabilities=Capabilities {appium:app: C:\Users\subhashini_r\eclip..., appium:automationName: UIAutomator2, appium:deviceName: "Pixel2API33", platformName: ANDROID}}]
Capabilities {appium:app: C:\Users\subhashini_r\eclip..., appium:automationName: UIAutomator2, appium:deviceName: "Pixel2API33", platformName: ANDROID}
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:536)
at io.appium.java_client.AppiumDriver.startSession(AppiumDriver.java:274)
at org.openqa.selenium.remote.RemoteWebDriver.
java.lang.NoSuchMethodError: 'java.lang.String org.openqa.selenium.json.Json.toJson(java.lang.Object, int)'
@skibinstein please check compatibility matrix and make sure you use compatible binaries: https://github.com/appium/java-client#compatibility-matrix
@subha-glitch @skibinstein, Please try adding basepath to the builder argument. .withArgument(GeneralServerFlag.BASEPATH, "/wd/hub")
@skibinstein
Sometimes is useful to install jdk 15, please try with that.
java.lang.NullPointerException: Cannot invoke "io.appium.java_client.android.AndroidDriver.findElements(org.openqa.selenium.By)" because "this.driver" is null
Do I have the most recent component updates?
Is the component officially supported by the Appium team?
Is there an existing issue for this?
Current Behavior
Hi,
I’m trying to automate android testing with github actions. When I start appium programmatically, getting the below error, but the same code works fine when I execute it on my mac.
Expected Behavior
Appium server starts a new session.
Minimal Reproducible Example
Environment
appium --version
): 2.0.1node --version
): 18.17npm
version (output ofnpm --version
):Link to Appium Logs
No response
Futher Information
No response