java-client: IOSDriver cannot be created from AppiumDriverLocalService, because of Problem getting session data for driver type IosDriver
Description
org.openqa.selenium.SessionNotCreatedException: A new session could not be created. Details: Problem getting session data for driver type IosDriver; does it implement ‘get driverData’? (WARNING: The server did not provide any stacktrace information)
Environment
- java client build version or git revision if you use some shapshot: 3.4.0
- Appium server version or git revision you is use some shapshot:1.5.0
- Desktop OS/version used to run Appium if necessary:Mac OS X 10.11
- Node.js version (unless using Appium.app|exe) or Appium CLI or Appium.app|exe: 5.6.0
- Mobile platform/version under test: 8.1.1
- Real device or emulator/simulator: iphone 5s
Details
I run my test in testng
I created AppiumDriverLocalService and started()
it in @BeforeSuite
then in @BeforeTest
I created IOSDriver as follow:
IOSDriver<MobileElement> iosDriver = new IOSDriver<>(getLocalService().getUrl(), desiredCapabilities);
But this statement got stacks
org.openqa.selenium.SessionNotCreatedException: A new session could not be created. Details: Problem getting session data for driver type IosDriver; does it implement 'get driverData'? (WARNING: The server did not provide any stacktrace information)
detailed full logs, please see https://gist.github.com/truebit/f017d57fc887ec0e3be6
Code To Reproduce Issue [ Good To Have ]
None
Ecxeption stacktraces
https://gist.github.com/truebit/f017d57fc887ec0e3be6
Link to Appium logs
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 19 (8 by maintainers)
I just restarted appium and it worked for me