Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    i am facing the below error while executing testcases on browserstack with webdriverio : i guess its related to appium -
    Appium error: An unknown server-side error occurred while processing the command. Original error: Could not proxy. Proxy error: Could not proxy command to remote server. Original error: 404 - "unknown command: session/86db166ee6f82e4d7be7df3d96adf904/screenshot/0.8894502733201757-2"
    this is occuring when i take screenshot () by webdriverio
    Sai Poluri
    @sai-poluri This works fine with older versions of appium
    Is there any way to find an element in Appium without using xpath like, driver.findElement(By.name(“text”))? The previous command works for iOS, as it has name attribute.
    But for Android it does not have name attribute, instead it has text. Seeking ur suggestions for Android.
    As XPath slows down execution time, I am trying to use IDs and text to the max.
    Ian Chipperfield

    I'd like to use annotations for finding elements by view tag on Android, I am specifying a test ID through this attribute as we cannot use resource ids for targeting using React Native.

    It does not seem like @AndroidFindBy currently supports this.

    I see MobileBy.ByAndroidViewTag, but I believe this cannot be used with the page object model to initially locate elements.

    Is the only workaround an xpath selector (which requires knowing the tag in advance in addition to the view tag)?
    e.g. driver.findElementByXPath("//android.widget.TextView[@view-tag='some-tag']"

    hi! how are you? im noob in appium, and my first task is a challenge. I need to implement appium for a react native app. The idea is that my tests run on android and ios
    some of you know something about that?
    how to launch genymotion from the automation script?
    安卓手机有刘海屏设计,appium在启动的时候获取的分辨率是app的分辨率(GET / session /:sessionId / window /:windowHandle / size),这样就会导致屏幕底部会缺少一部分元素无法识别

    adb shell dumpsys window displays

    WINDOW MANAGER DISPLAY CONTENTS (dumpsys window displays)
    Display: mDisplayId=0
    init=960x540 240dpi cur=960x540 app=897x540 rng=540x502-897x850

    命令会发现init = cur != app 。appium取到的分辨是app或者是rang的值,能否修改相关设置在启动的时候取到的是cur或是init的值

    Himabindu Kethireddy
    Hi All, I have installed Appium v1.15.1 version
    is this the webdriveragent path in Applications folder/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-youiengine-driver/node_modules/appium-webdriveragent
    Dinesh prabhu
    Hi All,
    i am facing one issue. Our developers using recycled items in our project.
    Appium shows xpath only for this fields. If i have 10 fields, The first screen dispalys xpath as \hieracy......linearlayout[1],, linearlayout[2],, linearlayout[3]. If i scroll up, It displays again same xpath for new fields. Can anyone help me for this solution
    For the love of God, how do you pass in Application Arguments in Appium WinAppDriver - using AppiumOptions and passing in "appArguments" as additional capability doesn't work. I am at wits end since Microsoft's WinAppDriver is dead in the water as Appium took over.
    Varsha Nihanth
    Guys, Can someone help me in resolving this error
    I received following error message while running application,
    Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: ESOCKETTIMEDOUT
    Can anyone tell me what is root cause for this issue and how to resolve the same
    Am using Appium - 1.15.1 version
    Hi all,
    I'm an absolut beginner with Appium.
    I wonder, how I can use Appium with a real Android device (Ganalxy S7). I have set up developer mode on the S7 and also have an adb.exe which works quite nice with scrcpy.
    I already struggle with IP Address to connect to.
    If I leave it at Default ( and set port to 5037 (which I have seen in adb Output) I don't get an error rightaway, but when I try to start an inspector session I'm getting an error "Could not connect to Server".
    Hi all, I am trying to launch android emulator by running command 'emulator -avd Nexus_6_API_29’ as pretest in package.json so the emulator is launch before the webdriverio tests run. The emulator does launch but the tests do not start. Seems like it’s still waiting for emulator to finish loading or something. How does everyone launch the emulator before test runs?
    Hi all,
    Have you tried to write a server to connect Appium server?
    Because I try to write a server to listen other program's command -> parsing it -> transfer my code to Appium server
    Charlie Kurban

    Hi everyone, I have a case where I need to click on the Activation link in my Inbox - when I am registering to my app... so flow is :

    1. User fills all the mandatory fields
    2. App send Activation code to user's email
    3. User clicks on the link in his/her email inbox
    4. App activates the account

    I am retrieving the activation link and when I use driver.url(activationLink) then I am getting server-side error .... does anyone know how to hit the URL with Appium ... ?

    Sai Poluri
    @Abuthah74042755_twitter Am facing the similar issue, tried upgrading node js, upgrading android studio and sdk. Nothing seems to work.
    Hey guys, I was working on automation and I updated to xcode 11 and using iphone 11 - iOS13. For some reason automation can't even sendkeys to a textbox anymore. But it can bypass the first pop-up that I need to click on. Anyone have any advice?
    nvm figured it out its because iphone 11 has different access ids.
    Rahul Jaisinghani
    I am getting chrome
    Not reachable when I am doing context switch and resetapp
    [Chromedriver] Chromedriver exited unexpectedly with code null, signal SIGTERM
    [Chromedriver] Changed state to 'stopped'
    [Chromedriver] Error: A new session could not be created. Details: session not created: please close 'com.gcard.library.demo' and try again
    [Chromedriver] at Object.wrappedLogger.errorAndThrow (C:\Users\g\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:79:13)
    [Chromedriver] at Chromedriver.errorAndThrow [as start] (C:\Users\g\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-chromedriver\lib\chromedriver.js:540:11)
    [W3C (a0153839)] Encountered internal error running command: Error: A new session could not be created. Details: session not created: please close 'com.gcard.library.demo' and try again
    [W3C (a0153839)] at Object.wrappedLogger.errorAndThrow (C:\Users\g\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:79:13)
    [W3C (a0153839)] at Chromedriver.errorAndThrow [as start] (C:\Users\g\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-chromedriver\lib\chromedriver.js:540:11)
    [HTTP] <-- POST /wd/hub/session/a0153839-e73d-4af0-b66e-61fd46fbf33e/context 500 4548 ms - 841
    Switch webview and report an error
    Dinesh Kumar
    Can anyone tell me how to upload apk file in Sauce Labs. I am using trial version of Sauce Labs
    Ryan McIntyre

    Hey everyone,

    I'm having trouble with iOS 13 on SauceLabs with Appium 1.15.0. I suspect it's failing because the request is timing out way too soon.

    Getting this error:
    Timed out waiting for asyncrhonous script result after X ms
    where x are values very low like 5, 7, 3, etc.

    Tried increasing the timeout but unable to get the format correct.

    browser.setTimeout({ script: 5000 });
    browser.setTimeout({ type: 'script', ms: 5000 });

    Resulting in
    [debug] [MJSONWP (715be6a3)] Encountered internal error running command: BadParametersError: Parameters were incorrect. We wanted "MJSONWP protocol requires type and ms" and you sent {"script":5000}
    [debug] [MJSONWP (715be6a3)] Encountered internal error running command: BadParametersError: Parameters were incorrect. We wanted "MJSONWP protocol requires type and ms" and you sent {}

    Any ideas here?

    Dinesh Kumar
    While connecting Appium Inspector through Appium server, getting error "Infrastructure Error - Sauce VM failed to start the browser or device"
    Please can anyone help with the above issue
    Hi, can someone explain me, is there way to use PageFactory when I write tests on C#?
    On Java there is: PageFactory.initElements(new AppiumFieldDecorator(driver), this);
    but on C# AppiumFieldDecorator is not recognized
    Sven Murat
    does anyone have problems with context of the hybrid apps? cannot get webview context of that kind of app
    Ryan McIntyre
    @ryanoasis_gitlab Solved problem with driver.setAsyncTimeout(5000) http://appium.io/docs/en/commands/web/execute-async/

    Hi, we are trying to use Appium with Espresso driver, but the session could not be started successfully. There is an error in Appium server log:

    java.lang.SecurityException: Permission Denial: starting instrumentation ComponentInfo{io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner} from pid=21558, uid=21558 not allowed because package io.appium.espressoserver.test does not have a signature matching the target com.xxx.yyy

    And there are some other messages seem to be realted before this error message:

    2019-11-28 09:29:29][Espresso] Repackaged espresso server ready: 'C:\Users\CHINAL~1\AppData\Local\Temp\io.appium.espressoserver.test_1.16.0_com.xxx.yyy.apk'
    [2019-11-28 09:29:29][ADB] Checking app cert for C:\Users\CHINAL~1\AppData\Local\Temp\io.appium.espressoserver.test_1.16.0_com.xxx.yyy.apk
    [2019-11-28 09:29:29][ADB] Using 'apksigner.bat' from 'C:\Users\xxx\AppData\Local\Android\Sdk\build-tools\29.0.2\apksigner.bat'
    [2019-11-28 09:29:29][ADB] Starting 'C:\Users\xxx\AppData\Local\Android\Sdk\build-tools\29.0.2\apksigner.bat' with args '["verify","--print-certs","C:\\Users\\CHINAL~1\\AppData\\Local\\Temp\\io.appium.espressoserver.test_1.16.0_com.xxx.yyy.apk"]'
    [2019-11-28 09:29:30][ADB] Got an error during apksigner execution: Command 'apksigner.bat verify --print-certs C:\\Users\\CHINAL~1\\AppData\\Local\\Temp\\io.appium.espressoserver.test_1.16.0_com.xxx.yyy.apk' exited with code 1
    [2019-11-28 09:29:30][ADB] apksigner stderr: DOES NOT VERIFY
    [2019-11-28 09:29:30][ADB] ERROR: JAR signer CERT.RSA: JAR signature META-INF/CERT.SF indicates the APK is signed using APK Signature Scheme v2 but no such signature was found. Signature stripped?
    [2019-11-28 09:29:30][ADB] 
    [2019-11-28 09:29:30][ADB] 'C:\Users\CHINAL~1\AppData\Local\Temp\io.appium.espressoserver.test_1.16.0_com.xxx.yyy.apk' is not signed with debug cert
    [2019-11-28 09:29:30][ADB] Using 'zipalign.exe' from 'C:\Users\xxx\AppData\Local\Android\Sdk\build-tools\29.0.2\zipalign.exe'
    [2019-11-28 09:29:30][ADB] C:\Users\CHINAL~1\AppData\Local\Temp\io.appium.espressoserver.test_1.16.0_com.xxx.yyy.apk' is already zip-aligned. Doing nothing
    [2019-11-28 09:29:30][ADB] Signing 'C:\Users\CHINAL~1\AppData\Local\Temp\io.appium.espressoserver.test_1.16.0_com.xxx.yyy.apk' with default cert
    [2019-11-28 09:29:30][ADB] Starting 'C:\Users\xxx\AppData\Local\Android\Sdk\build-tools\29.0.2\apksigner.bat' with args '["sign","--key","C:\\Program Files\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-android-driver\\node_modules\\appium-adb\\keys\\testkey.pk8","--cert","C:\\Program Files\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-android-driver\\node_modules\\appium-adb\\keys\\testkey.x509.pem","C:\\Users\\CHINAL~1\\AppData\\Local\\Temp\\io.appium.espressoserver.test_1.16.0_com.xxx.yyy.apk"]'
    [2019-11-28 09:29:30][ADB] Uninstalling io.appium.espressoserver.test
    [2019-11-28 09:29:30][ADB] Getting install status for io.appium.espressoserver.test
    [2019-11-28 09:29:30][ADB] Running 'C:\Users\xxx\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s LKN5T18C07004429 shell dumpsys package io.appium.espressoserver.test'
    [2019-11-28 09:29:31][ADB] 'io.appium.espressoserver.test' is installed

    Could any one give some help on how to resolve this? Is there any requirement for the app to be tested with Espresso driver?


    Hi everyone, I have a question and I would like you to help me.

    I am currently testing an app that is not my property, everything is fine from my android emulator (genymotion), but when I run this test on a mobile device I get the following error:
    java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.xxx.xxx/com.xxx.xxx.xxx.xxxActivity } from null (pid=22624, uid=2000) not exported from uid 10114
    I understand that this must be due to the permission of the owner of the app, I would like to know if there is any way to skip this permission through root or any alternative where I can run my test on this app that is not my property.


    Hey guys, on web a user can over their mouse over the screen and a hidden window will pop-up. But the window is hidden during automation and I can't figure out how to make it pop-up on web. On the app it would've been easier if i tried using TouchAction, but on web how could I make the hidden window pop-up?


    @bmchx_gitlab ahh yes I ended up trying to just click on the screen to get the window popping up! Thank you! But I was wondering if there was a way to click on the ARROW _RIGHT_BUTTON on the keyboard so i can navigate through a powerpoint on web?
    @davidtophat You're welcome David. I think the usual right-click is named ContextClick: https://static.javadoc.io/org.seleniumhq.selenium/selenium-api/2.50.1/org/openqa/selenium/interactions/ContextClickAction.html
    @davidtophat Yep it is, JS binding reference but ContextClick is supposed to be a right-click https://github.com/SeleniumHQ/selenium/blob/master/javascript/node/selenium-webdriver/lib/input.js#L878
    import org.openqa.selenium.Keys
    I am trying to import the above for pycharm but it doesn't recognize it


    I need help,

    I test case open webview in app android.
    but show error https://paste.ofcode.org/7D5xakm3iK2CHA2bX9tKuJ

    someone has used appium webdriverIO. help me