zebrunner / mcloud-ios-connector

0 stars 0 forks source link

unable to execute mobile web (safari) test #11

Closed vdelendik closed 3 months ago

vdelendik commented 3 months ago

safari can't be started by appium

org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: An unknown server-side error occurred while processing the command. Original error: Could not navigate to webview; there are none![[[--udid e18f63dd2e441bea17f95a50b1073bbbdeaddba8 --name iPhone_8 --sessionId 97f97621-2c8d-45ce-9e2a-bf2501ceb534]]]
Host info: host: 'a8907189a825', ip: '172.18.0.28'
Build info: version: '4.13.0', revision: 'ba948ece5b*'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-142-generic', java.version: '17.0.9'
Driver info: io.appium.java_client.ios.IOSDriver
Command: [null, newSession {capabilities=[{appium:udid=e18f63dd2e441bea17f95a50b1073bbbdeaddba8, appium:locale=en_US, browserName=safari, appium:language=en, platformName=IOS, appium:automationName=XCuiTest}], desiredCapabilities=Capabilities {appium:automationName: XCuiTest, appium:language: en, appium:locale: en_US, appium:udid: e18f63dd2e441bea17f95a50b10..., browserName: safari, platformName: IOS}}]
Capabilities {appium:automationName: XCuiTest, appium:language: en, appium:locale: en_US, appium:udid: e18f63dd2e441bea17f95a50b10..., browserName: safari, platformName: IOS}
 at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:140)
 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.base/java.lang.reflect.Method.invoke(Method.java:568)
 at io.appium.java_client.remote.AppiumProtocolHandshake.createSession(AppiumProtocolHandshake.java:133)
 at io.appium.java_client.remote.AppiumProtocolHandshake.createSession(AppiumProtocolHandshake.java:102)
 at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:182)
 at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:250)
 at com.zebrunner.carina.webdriver.listener.EventFiringAppiumCommandExecutor.execute(EventFiringAppiumCommandExecutor.java:109)
 at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:602)
 at io.appium.java_client.AppiumDriver.startSession$original$IUYXy8Q8(AppiumDriver.java:274)
 at io.appium.java_client.AppiumDriver.startSession$original$IUYXy8Q8$accessor$zxp3ythr(AppiumDriver.java)
 at io.appium.java_client.AppiumDriver$auxiliary$DjEW6xRL.run(Unknown Source)
 at com.zebrunner.agent.core.webdriver.StartSessionInterceptor.onSessionStart(StartSessionInterceptor.java:42)
 at io.appium.java_client.AppiumDriver.startSession(AppiumDriver.java)
 at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:163)
 at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:89)
 at io.appium.java_client.ios.IOSDriver.<init>(IOSDriver.java:94)
 at com.zebrunner.carina.webdriver.core.factory.impl.MobileFactory.create(MobileFactory.java:116)
 at com.zebrunner.carina.webdriver.core.factory.DriverFactory.create(DriverFactory.java:89)
 at com.zebrunner.carina.webdriver.IDriverPool.createDriver(IDriverPool.java:376)
 at com.zebrunner.carina.webdriver.IDriverPool.getDriver(IDriverPool.java:122)
 at com.zebrunner.carina.webdriver.IDriverPool.getDriver(IDriverPool.java:85)
 at com.zebrunner.carina.webdriver.IDriverPool.getDriver(IDriverPool.java:73)
 at com.zebrunner.carina.demo.IOSSafariTest.safariTest(IOSSafariTest.java:28)
 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.base/java.lang.reflect.Method.invoke(Method.java:568)
 at org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:139)
 at org.testng.internal.invokers.TestInvoker.invokeMethod(TestInvoker.java:664)
 at org.testng.internal.invokers.TestInvoker.invokeTestMethod(TestInvoker.java:227)
 at org.testng.internal.invokers.MethodRunner.runInSequence(MethodRunner.java:50)
 at org.testng.internal.invokers.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:957)
 at org.testng.internal.invokers.TestInvoker.invokeTestMethods(TestInvoker.java:200)
 at org.testng.internal.invokers.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:148)
 at org.testng.internal.invokers.TestMethodWorker.run(TestMethodWorker.java:128)
 at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
 at org.testng.TestRunner.privateRun(TestRunner.java:848)
 at org.testng.TestRunner.run(TestRunner.java:621)
 at org.testng.SuiteRunner.runTest(SuiteRunner.java:443)
 at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:481)
 at org.testng.internal.thread.ThreadUtil.lambda$execute$0(ThreadUtil.java:58)
 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
 at java.base/java.lang.Thread.run(Thread.java:840)
vdelendik commented 3 months ago

closing as invalid. it was configuration issue with doubling device registration.