Unable to run Chrome browser on Android by using Appium and RobotFramework - appium

Unable to run the Chrome browser on Android by using Appium and RobotFramework
What I have tried so far:
*** Settings ***
Library AppiumLibrary
*** Test Cases ***
Loign_To_Weekend
App_Up_And_Run
*** Keywords ***
App_Up_And_Run
Open Application http://localhost:4723/wd/hub platformName=Android deviceName=RNNNNNNNK browserName=Chrome
Go To Url https://www.amazon.com/
but after installing appium settings app, not opening the chrome browser and it's showing error like below, both suggested links are invalid
WebDriverException: Message: An unknown server-side error occurred
while processing the command. Original error: No Chromedriver found
that can automate Chrome '10
2.0.5005'. You could also try to enable automated chromedrivers download server feature. See
https://github.com/appium/appium/blob/master/docs/en/writing-running-a
ppium/web/chromedriver.md for more details Stacktrace: UnknownError:
An unknown server-side error occurred while processing the command.
Original error: No Chromedriver found that can automate Chrome
'102.0.5005'. You could also try to enable automated chromedrivers
download server feature. See
https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/web/chrom
edriver.md for more details
at getResponseForW3CError (C:\Users\abc\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:804:9)
at asyncHandler (C:\Users\acb\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:380:37)
I'm not sure where I made the mistake, thanks for any kind of help

You must have chromedriver.exe in your Windows machine, for the correct version of Chrome in the Android phone.
You download the version for Chromedriver found that can automate Chrome '102.0.5005'.
You pass the path for chromedriver.exe to the Appium server, in the starting command or in capabilities.
On Appium Desktop, Advanced Tab, you find the Chromedriver Binary Path field.

Related

Futter Driver Automation Testing not working due upgrade in version of Flutter Driver

Can some one help where our app is not showing in Appium inspector and even not working for Automation code in intellij after upgrade to Flutter driver version 3.0
getting error: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Cannot read property 'match' of undefined
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
To fix this, Upgrade to appium-flutter-driver v1.7.0 with Appium 2 (2.0.0-beta.43 is the latest when I'm posting this)
Start Appium server using the command appium -p 4726 --base-path /wd/hub as sometimes starting server with default port was not working fine!
If you are not on Appium 2 already, check this guide for migration, I found it helpful
https://www.headspin.io/blog/migrating-to-appium-2-0-part-1-capability-prefixes
https://www.headspin.io/blog/installing-appium-2-0-and-the-driver-and-plugins-cli

Trying to run Appium test in android 7.0, but just Appium settings and Unlocker app get installed and test does not run

Following is the link to my code and error sin appium console
and eclipse console:
Link to the code and error in eclipse console and appium console
If you check the Appium logs, it has this line in there -
info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : version
This means that version is not the correct property name. You have to change it to platformVersion. Try changing it and see it it works. The line of code would be like this -
capabilities.setCapability("platformVersion", "7.0");
Also, there is no need to provide the browser name, as you are not using it anywhere. But that shouldn't affect the test script execution in any way.
You can also check this article which shows the capabilities you can use to launch an app - Appium Script to Launch App

Appium error occurred while processing the command

I'm new to appium and i'm running some automation scripts on a real device. When i run that particular script on simulators. There are no issue. But when i try to run the same on real device then i get the below mentioned error.
An unknown server-side error occurred while processing the command.
Original error:
Bad app: /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/build/SafariLauncher/SafariLauncher.app.
App paths need to be absolute, or relative to the appium server install dir, or a URL to compressed file, or a special app name.
(WARNING: The server did not provide any stack-trace information)
Any type of help will be appreciated
Thanks in advance.
SafariLauncher is used when you are trying to automate the safari browser. The safari launcher has to be built for iPhone (real device). It looks like the safari launcher that is built in is built for simulator, which is why the fruitstrap/ideviceinstaller (app installer used by appium-ios) complains as bad app.
To compile the safarilauncher for your real device.
1. Download safarilauncher code from github
https://github.com/budhash/SafariLauncher
2. Compile the code using your developer provisioning profile (having wildcard as bundle id)
3. Place this safari launcher app for the real device automation.
To compile the safari launcher follow this link for detailed info:
https://discuss.appium.io/t/error-installing-safari-launcher-on-real-device-appium-v1-3-7/3793

iOS support for appium on windows

I am trying to run my script on iPHONE 5 which is connected to my windows machine. I am getting below error:
ERROR: debug: Appium request initiated at /wd/hub/session
info: Configuring Safari session
ERROR: debug: Request received with params: {"desiredCapabilities":{"browserName":"Safari","device":"iPhone 5s white"}}
info: Trying to use mobile safari, version 18
info: Looking for built in app MobileSafari
ERROR: error: xcode-select threw error Error: Command failed: 'xcode-select' is not recognized as an internal or external command,
ERROR: operable program or batch file.
ERROR:
info: Got configuration error, not starting session
ERROR: error: Stderr: 'xcode-select' is not recognized as an internal or external command,
ERROR: operable program or batch file.
ERROR:
ERROR: error: Stdout:
ERROR: error: Could not prepare mobile safari with version '18': Error: xcode-select threw an error
ERROR: error: Failed to start an Appium session, err was: Error: xcode-select threw an error
info: Cleaning up appium session
info: Error: xcode-select threw an error
at D:\QM_Work\AppiumForWindows-1.0.0\AppiumForWindows\node_modules\appium\lib\helpers.js:523:10
at ChildProcess.exithandler (child_process.js:641:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)
info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: xcode-select threw an error)","origValue":"xcode-select threw an error"},"sessionId":null}
POST /wd/hub/session 500 1379ms - 204b
As mentioned in the doumenations of Appium you need OSX to test iOS:
http://appium.io/slate/en/master/?ruby#toc_25
It is possible to run the tests from a windows machine but not the way you are probably thinking. You will still need a mac. Here are the requirements:
A mac on your network with Appium server running
Has Appium environment installed properly
Has the .app on the machine
If you have these three reqirements fulfilled and there is no firewall blocking network access to the mac then you can do it. You will have to actual tests on the windows machine but instead of specifying 127.0.0.1:8080 in the setup method as the IP address of Appium server you will replace it with this: yourmacsipaddress:8080 and this should execute the test properly.
Remember that you have to specify the path of the .app in the test which is running from your windows machine. But the catch is that the path has to be the path of the .app in the mac and not on your windows machine.
So the tests will run from your Windows machine but the installation of the app, the automation, and the testing will be done on the mac but you will get the "pass" or "fail" update on your Windows machine.
You cannot use Windows for iOS testing because Appium requires Instruments and some other native, OSX-only libraries to tell the phone what to do. (source)
Workarounds:
look into a mac mini hosting service, where you can run your iOS tests on a virtual machine.
buy a mac mini

Cant install other SDK versions

I have the BlackBerry 7.0 SDK installed with Eclipse and that's all working. However, that means i can only develop appliations for devices running OS7 and i would like to be able to support lower operating system versions such as OS5. However, when trying to add more SDKs to my installation, the following error message appears:
An error occurred while collecting items to be installed session context was:
(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect,
operand=, action=). Unable to read repository at
http://downloads.blackberry.com/upr/developers/Win/net.rim.ejde.componentpack6.0.0_6.0.0.43.jar.
Read timed out
Please help me to solve the problem.
The error says "Read timed out" which indicates that your connection timed out and Eclipse wasn't able to download the SDK.
Can you browse directly to http://downloads.blackberry.com/upr/developers/Win/net.rim.ejde.componentpack6.0.0_6.0.0.43.jar ?
You can download the JAR file and then load it in Eclipse.

Resources