question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: New app path Browser did not have extension .apk

See original GitHub issue

The problem

My tests were working perfectly fine on grid/device/emulator till 1.4.13. trying to upgrade Appium but no matter what browserName i pass I always get below error.

Trying to run test on Android Browser with android version as 4.4.2 Appium java-client version: 4.1.2 Appium app version: 1.5.3 using Android Emulator OS: OSX 10.9.5

DesiredCapabilities caps = DesiredCapabilities.android(); caps.setCapability("appiumVersion", "1.5.3"); caps.setCapability("deviceName","emulator-5554"); caps.setCapability("browserName", ""); caps.setCapability("platformVersion","4.4.2"); caps.setCapability("platformName","Android"); WebDriver driver = null; driver = new RemoteWebDriver(new URL("http://localhost:4723/wd/hub"), caps); driver.get("https://www.google.com/");

Server Log: [HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:“Browser”,“appiumVersion”:“1.5.3”,“platformVersion”:“4.4.2”,“browserName”:“”,“platformName”:“Android”,“version”:“”,“deviceName”:“emulator-5554”,“platform”:“ANDROID”}} [MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:“Browser”,"appiumVe… [Appium] Creating new SelendroidDriver session [Appium] Capabilities: [Appium] app: ‘Browser’ [Appium] appiumVersion: ‘1.5.3’ [Appium] platformVersion: ‘4.4.2’ [Appium] browserName: ‘’ [Appium] platformName: ‘Android’ [Appium] version: ‘’ [Appium] deviceName: ‘emulator-5554’ [Appium] platform: ‘ANDROID’ [Appium] automationName: ‘Selendroid’ [Appium] noReset: true [Appium] dontStopAppOnReset: true [BaseDriver] The following capabilities were provided, but are not recognized by appium: appiumVersion, version, platform. [BaseDriver] Session created with session id: 093020f6-1b1b-40a2-991c-77444c4b4e4f [BaseDriver] Using local app ‘Browser’ [debug] [Selendroid] Deleting Selendroid session [MJSONWP] Encountered internal error running command: Error: New app path Browser did not have extension .apk at Object.configureApp$ (lib/basedriver/helpers.js:41:11) at tryCatch (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40) at GeneratorFunctionPrototype.invoke as _invoke at GeneratorFunctionPrototype.prototype.(anonymous function) as next at invoke (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37) at enqueueResult (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:185:17) at new Promise (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:197:7) at AsyncIterator.enqueue (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:184:12) at AsyncIterator.prototype.(anonymous function) as next at Object.runtime.async (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:209:12) at Object.configureApp (lib/basedriver/helpers.js:22:21) at SelendroidDriver.createSession$ (lib/driver.js:85:42) at tryCatch (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40) at GeneratorFunctionPrototype.invoke as _invoke at GeneratorFunctionPrototype.prototype.(anonymous function) as next at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37) at run (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:104:47) at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:115:28 at flush (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/$.microtask.js:19:5) at _combinedTickCallback (internal/process/next_tick.js:67:7) at process._tickCallback (internal/process/next_tick.js:98:9) [HTTP] <-- POST /wd/hub/session 500 62 ms - 185

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6

github_iconTop GitHub Comments

4reactions
mykola-mokhnachcommented, Aug 31, 2016

Probably this happens because you try to use Selendroid as main driver instead of the default one. Anyway, try to set app property to null explicitly and keep the browserName set to Browser

3reactions
mykola-mokhnachcommented, Aug 30, 2016

Have you tried to set browserName capability to Browser or Chrome like it is described here? http://appium.io/slate/en/master/?java#python-example

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: New app path did not have extension .apk
Trying to learn Appium and run in some issues that I can't really figure out when running Maven Project and ...
Read more >
Error - New app path browser did not have extension .apk
Hi All, I am trying to access Chrome on Android using below code - DesiredCapabilities caps = new DesiredCapabilities(); caps.
Read more >
[Discontinued] [Windows] APK Easy Tool v1.60 (2022-06-23)
Go to Framework tab and clear the framework, and decompile the APK again. ... Decompile APK with "Don't decode resources.arsc" checked if you...
Read more >
Troubleshooting app installation issues with Intune
This article gives troubleshooting guidance for when app installations fail for Microsoft Intune-managed apps. The Intune Troubleshoot pane ...
Read more >
paypal/SeLion - Gitter
Original error: New app path /Users/CodeBase/Sample/browser did not have extension .apk (WARNING: The server did not provide any stacktrace information).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found