This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
1 / 4
Dec 2017

Hi

I have uninstalled appium server 1.7 and install it again

now my proper running script is not working and showing this error

there is no change in code or capabilities but now same code is not working

org.openqa.selenium.SessionNotCreatedException: A new session could not be created. Details: The desiredCapabilities object was not valid for the following reason(s): deviceName can’t be blank, (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 234 milliseconds
Build info: version: ‘3.4.0’, revision: ‘unknown’, time: ‘unknown’

  • created

    Dec '17
  • last reply

    Dec '17
  • 3

    replies

  • 368

    views

  • 2

    users

As your error suggests deviceName is blank in your desiredCapabilites .

Make sure you give the mandatory capabilities to Appium like below

Generic Capabilities:

  • deviceName
  • udid
  • platformName
  • platformVersion

For Native android:

  • appPackage
  • appActivity

For web android:

  • browserName