How to upgrade Appium to 1.5 - appium

I followed Appium instructions to upgrade Appium version to 1.5 . But I observed below exception when I start a server from Appium UI (Appium.exe)
Launching Appium server with command: D:\Appium\node.exe lib\server\main.js --address 127.0.0.1 --port 4723 --no-reset --platform-name Android --platform-version 23 --automation-name Appium --log-no-color
> module.js:338
> throw err;
>
^
> Error: Cannot find module 'D:\Appium\node_modules\appium\lib\server\main.js'
Before starting appium server , I checked appium version & it is still 1.4.16.1
Has anyone tried to upgrade on win 64 machine ? Please suggest if any additional setting needs to be done before upgrading / starting server.

Simplest way to Upgrade Appium
Check checkbox from appium settings GUI for "Check for Updates"
Close Appium GUI and re-launch again OR
You will get a push/pop up as new market version released for Appium
Click on upgrade pop up and follow simple steps to upgrade

Appium GUI does not support version 1.5 currently.
https://github.com/appium/appium-dot-exe/issues/170

If you have installed appium using npm then you can easily upgrade appium to 1.5
Below is the command :
npm update -g appium
and if you want to upgrade to any specific version below is the command :
npm install -g appium#1.5.3
You can enter version number after '#' in the command

Following command automatically upgrade appium , internet connection should be require,
npm install appium

Install latest version of Node js application on windows and download and install latest version from Appium site.
Check your Appium version by running Appium application.

There are 2 types in Appium:
1. Appium GUI version
2. Appium Command line
To update appium GUI version, uninstall the older version and then download the latest version from https://github.com/appium/appium-desktop/releases and install.
To update the command line version run, npm install -g appium. It will automatically take the latest version and install it.

Now we can download the latest version(1.7.1) from the official website.

Related

How to upgrade chromedriver version for appium?

I am getting the following error when attempting to run an Appium script on the Chrome Version 65:
selenium.common.exceptions.WebDriverException: Message: unknown error: call function result missing 'value'
(Session info: chrome=65.0.3325.109)
(Driver info: chromedriver=2.33.506106 (8a06c39c4582fbfbab6966dbb1c38a9173bfb1a2),platform=Mac OS X 10.13.4 x86_64)
I have found that the chromedriver version needs to be updated but I can't find a way to successfully do this.
So my question is how do I upgrade the chromedriver version to the latest version?
So first, with each update to Chromedriver there is an increase in the minimum supported version of Chrome => older devices are often unable to be automated with the bundled version.
So its not appium/chromdriver compatibility, its your device browser/ chromdriver versions compatibility check.
To check versions compatibility you go look here
When you figure out whats version works for you, run:
npm install appium --chromedriver_version="2.37"
This version supports Chrome v 64-66
The subjected issue can be resolved (In my case this works) if we pass the additional argument while starting the appium server in the local system.
CLI Command: appium --allow-insecure chromedriver_autodownload
The script will automatically search for the newest chromedriver version that supports the given browser/web view, download it (the hash sum is verified as well for the downloaded archive) and add to the chromedriverChromeMappingFile mapping.
For more details please refer to the official documentation of appium: Compatible chromedriver issue fixes options
Hope this helps!
Thanks.
Please download the latest chromedriver from here :
https://sites.google.com/a/chromium.org/chromedriver/downloads
Upgrade your appium server, appium java client to latest version.

Problems by setting up Appium

I want to set up an Appium test automtion framework on Mac OS (El Capitan).
First, I want to run test automation by iOS simulator and the Appium test app UICatalog.
Currently I ran into some problems. Also I have to mention that I'm quite new to testing stuff...
What I have installed so far:
xCode 7.2.1
Appium GUI
Node.js
Java JDK 1.8.0_51
When I run the Appium Doctor by GUI there are no problems listed!
Question so far:
Is the Appium GUI the same as the npm installation like this
npm install -g appium
npm install wd
appium &
Do I still need the selenium package? Or does it come with the Appium GUI?
When I start Appium server by GUI I receive the following state:
Why does it get locked? What is missing?
Do I have to run xCode besides Appium server when I want to test an app?
How do I grant Appium access to the iOS simulator? Is this still necessary? I haven't get an authentification like this.
I hope anyone can give me some hints :).
I see your appium port is running on 4723. When you run your appium test scripts, which has port 4723 mentioned on your script itself. Your automated test cases would automatically run on the 4723.
Appium requires backend server port to be running. This way it communicates with your device.
The appium GUI is the Server GUI which shows what all happens in the back end when u trigger your script. All you need to do is , use the same port no in ur script while running,
eg:
iosDriver driver=new iosDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
I have done automation using Appium+Cucumber+Java so I had the same questions you had. Here are some answers for you based on my experience-
Appium Gui is not the same as npm. They are 2 separate components. Appium uses node.js framework. So you need to install Appium and node.js (npm) separately. The command you mentioned
npm install -g appium
would install the Appium server. To install the Appium GUI you need to download and install it from this link - http://appium.io/downloads.html
Follow these instructions where I give step by step instructions on how to set up Appium - http://www.rajsubra.com/2016/04/03/appiumjavacucumber-set-up-step-by-step-instructions/
If you follow the above steps you should be able to run tests via the iOS Simulator.
Also the state you mentioned in the screenshot with the Appium GUI is the normal expectations. It is just saying the Appium server started via the GUI and also gives you details on what simulator configuration has been selected.

How to run Inspector when appium is installed using npm?

I used npm to install appium, but I don't know how to run the inspector.
I need to use the Inspector to locate elements in iOS.
How can I run inspector while using appium from terimnal and not from graphical app?
Appium inspector is not available for command line installation. Better download and install the UI version of appium which support the appium inspector for finding the element easily.
Also Appium inspector won't work in windows machine.
So you can do this by
Install npm (which you have already done
Install the Appium application (Slavo gave the link to Appium site answer)
go to developer settings in the app
Check "Use external appium package
enter in the location of your NPM install in text area.
When you do this the version of appium you installed via npm will be connected to the GUI application.
The gui does have its own version of the appium server, but it is an older version. That said it will still work, though it will be an old version and connecting the most recent version via an npm install and a gui download is the reccommended approach in the appium docs I think
Visit official Appium website
In the middle of the page there is big blue button with label Download Appium.
Download the client app to run the inspector, but before that you should run Appium doctor to check if all dependences were installed properly.
If you have downloaded appium using npm then you will run it through terminal by running "appium" command.
After starting appium server from terminal, open older graphical appium (install it first if you don't have it already). Don't press Launch button from gui. Press apple button and add capabilities there (platform version, device name etc) and press Inspector button.

Appium GUI runs older version of Appium than console

when I run appium through the terminal with the command "Appium &" it runs appium 1.4.10
When I run it from my GUI (which I need to do to use the inspector) it runs 1.4.8
Any ideas how I can make it run with the latest version from the GUI? Thanks.
Itseems you have installed appium ver 1.4.10 at a system level, but the gui you installed is of version 1.4.8. So you should probably download the corresponding gui version - 1.4.10 dmg or exe and install the GUI

How to upgrade cordova version in iOS build server for Visual Studio 2013?

When i use VS2013 to develop Cordova project, then i wanna to remote compile for iOS on Mac OS, but i got the following error:
Error 62 Invalid build request: The build request for cordova version 4.3.0 is not supported by the iOS build server. The server is installed with cordova version 4.0.0.
The reason why i upgrade develop version to newly version,but iOS build server was older then mine. i'm already tried to update -g cordova, but still no work, how do i upgrade iOS build server to 4.3.0 for vs2013 remote build?
See the full documentation on updating the remote agent.
Stop the current remote agent and run
sudo npm install -g vs-mda-remote --user=$USER
where $USER is replaced by your user name on the Mac. When you run the command, you will be prompted to enter your password as well.
The global installation (-g) switch is recommended but not required.
You'll need to start the updated remote agent and potentially re-configure the connection in VS if you are running in Secure mode.
The command should be
sudo npm update -g cordova
Sudo on OSX and Linux has to be used with the -g parameter. -g parameter is for global installation.

Resources