Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Deepak Verma
    @dipakkumar1225

    HI Guys, Application get auto terminated after the TestCase.

    Appium Desktop Version: 1.15
    Node V12.13
    JRE: 8

    Here is the DesiredCapabilities which i am using.
    caps.setCapability("BROWSER_NAME", "");
    caps.setCapability("VERSION", "8.1.0");
    caps.setCapability("platformName", "Android");
    caps.setCapability("deviceName", "Emulator-5554");
    caps.setCapability("appPackage", "com.demo.demodemo");
    caps.setCapability("appActivity", "com.demo.demo.MainActivity");
    caps.setCapability("autoGrantPermissions", "true");
    caps.setCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT, "8000");
    caps.setCapability("fullReset", false);
    caps.setCapability("dontStopAppOnReset", true);
    caps.setCapability("skipDeviceInitialization", false);
    caps.setCapability("newCommandTimeout", 1300);

    Charlie Kurban
    @ckurban
    @all Any one knows good Pixel Snapshotting tool - needs to be proven solution?
    dineshchakravarthy5
    @dineshchakravarthy5
    @jutamasJeab , How is appium compatibility with catalina? Have u encountered any issues? I wanted to update OS to catalina, let me know ur thoughts!
    jannylan
    @jannylan
    urgent help needed @all. I am testing iOS app with real device (iphone 8). clicked element is found but don't know why appium server return null
    Here's my setting:
    capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, "XCUITest");
        capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "Janny's iPhone");
        capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "iOS");
        capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "13.2.2");
        capabilities.setCapability(MobileCapabilityType.UDID, "3443870793f29048f6f7b497b242683cbb0215bf");
        capabilities.setCapability(IOSMobileCapabilityType.BUNDLE_ID, "com.mobiltex.RMU1Config");
        capabilities.setCapability(IOSMobileCapabilityType.XCODE_ORG_ID, "ESBTLAG6BU"); 
        capabilities.setCapability(IOSMobileCapabilityType.XCODE_SIGNING_ID, "iPhone Developer"); 
        capabilities.setCapability(MobileCapabilityType.NO_RESET, true);
        capabilities.setCapability("useNewWDA", true);
    
        capabilities.setCapability("unexpectedAlertBehaviour", "accept");
        capabilities.setCapability("safariAllowPopups", "true");
        capabilities.setCapability("autoGrantPermissions", "true");
        capabilities.setCapability("autoAcceptAlerts", "true");
    
    
        URL url = new URL("http://192.168.1.226:4790/wd/hub");
        driver = new AppiumDriver<MobileElement>(url, capabilities);
    jannylan
    @jannylan
    The app is successfully loaded, clicked on a button (the button's element id is found), but got appium server response with null value.
    here's the appium server log:
    [info] [HTTP] {"using":"xpath","value":"//[@name='Connect to RMU1']"}
    [debug] [W3C (9e267990)] Calling AppiumDriver.findElement() with args: ["xpath","//
    [@name='Connect to RMU1']","9e267990-f672-490b-b900-92a0761d509e"]
    [debug] [XCUITest] Executing command 'findElement'
    [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
    [debug] [BaseDriver] Waiting up to 10000 ms for condition
    [debug] [WD Proxy] Matched '/element' to command name 'findElement'
    [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/46E8B15D-2D33-4954-B509-4805E05D432A/element] with body: {"using":"xpath","value":"//*[@name='Connect to RMU1']"}[debug] [WD Proxy] Got response with status 200: {"value":{"ELEMENT":"19000000-0000-0000-D00E-000000000000","element-6066-11e4-a52e-4f735466cecf":"19000000-0000-0000-D00E-000000000000"},"sessionId":"46E8B15D-2D33-4954-B509-4805E05D432A"}
    [debug] [W3C (9e267990)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"19000000-0000-0000-D00E-000000000000","ELEMENT":"19000000-0000-0000-D00E-000000000000"}
    [info] [HTTP] <-- POST /wd/hub/session/9e267990-f672-490b-b900-92a0761d509e/element 200 1774 ms - 137
    [info] [HTTP]
    [info] [HTTP] --> POST /wd/hub/session/9e267990-f672-490b-b900-92a0761d509e/actions
    [info] [HTTP] {"actions":[{"id":"default mouse","type":"pointer","parameters":{"pointerType":"mouse"},"actions":[{"duration":100,"x":0,"y":0,"type":"pointerMove","origin":{"ELEMENT":"19000000-0000-0000-D00E-000000000000","element-6066-11e4-a52e-4f735466cecf":"19000000-0000-0000-D00E-000000000000"}},{"button":0,"type":"pointerDown"},{"button":0,"type":"pointerUp"}]}]}
    [debug] [W3C (9e267990)] Calling AppiumDriver.performActions() with args: [[{"id":"default mouse","type":"pointer","parameters":{"pointerType":"mouse"},"actions":[{"duration":100,"x":0,"y":0,"type":"pointerMove","origin":{"ELEMENT":"19000000-0000-0000-D00E-000000000000","element-6066-11e4-a52e-4f735466cecf":"19000000-0000-0000-D00E-000000000000"}},{"button":0,"type":"pointerDown"},{"button":0,"type":"pointerUp"}]}],"9e267990-f672-490b-b900-92a0761d509e"]
    [debug] [XCUITest] Executing command 'performActions'
    [debug] [XCUITest] Received the following W3C actions: [
    [debug] [XCUITest] {
    [debug] [XCUITest] "id": "default mouse",
    [debug] [XCUITest] "type": "pointer",
    [debug] [XCUITest] "parameters": {
    [debug] [XCUITest] "pointerType": "mouse"
    [debug] [XCUITest] },
    [debug] [XCUITest] "actions": [
    [debug] [XCUITest] {
    [debug] [XCUITest] "duration": 100,
    [debug] [XCUITest] "x": 0,
    [debug] [XCUITest] "y": 0,
    [debug] [XCUITest] "type": "pointerMove",
    [debug] [XCUITest] "origin": {
    [debug] [XCUITest] "ELEMENT": "19000000-0000-0000-D00E-000000000000",
    [debug] [XCUITest] "element-6066-11e4-a52e-4f735466cecf": "19000000-0000-0000-D00E-000000000000"
    [debug] [XCUITest] }
    [debug] [XCUITest] },
    [debug] [XCUITest] {
    [debug] [XCUITest] "button": 0,
    [debug] [XCUITest] "type": "pointerDown"
    [debug] [XCUITest] },
    [debug] [XCUITest] {
    [debug] [XCUITest] "button": 0,
    [debug] [XCUITest] "type": "pointerUp"
    [debug] [XCUITest] }
    [debug] [XCUITest] ]
    [debug] [XCUITest] }
    [debug] [XCUITest] ]
    [debug] [XCUITest] Preprocessed actions: [
    [debug] [XCUITest] {
    [debug] [XCUITest] "id": "default mouse",
    [debug] [XCUITest] "type": "pointer",
    [debug] [XCUITest] "parameters": {
    [debug] [XCUITest] "pointerType": "touch"
    [debug] [XCUITest] },
    [debug] [XCUITest] "actions": [
    [debug] [XCUITest] {
    [debug] [XCUITest] "duration": 100,
    [debug] [XCUITest] "x": 0,
    [debug] [XCUITest] "y": 0,
    [debug] [XCUITest] "type": "pointerMove",
    [debug] [XCUITest] "origin": {
    [debug] [XCUITest] "ELEMENT": "19000000-0000-0000-D00E-000000000000",
    [debug] [XCUITest] "element-6066-11e4-a52e-4f735466cecf": "19000000-0000-0000-D00E-000000000000"
    [debug] [XCUITest] }
    [debug] [XCUITest] },
    [debug] [XCUITest] {
    [debug] [XCUITest] "button": 0,
    [debug] [XCUITest] "type": "pointerDown"
    [debug] [XCUITest] },
    [debug] [XCUITest] {
    [debug] [XCUITest] "button": 0,
    [debug] [XCUITest] "type": "pointerUp"
    [debug] [XCUITest] }
    [debug] [XCUITest] ]
    [debug] [XCUITest] }
    [debug] [XCUITest] ]
    [debug] [WD Proxy] Matched '/actions' to command name 'performActions'
    [debug] [WD Proxy] Proxying [POST /actions] to [POST http://localhost:8100/session/46E8B15D-2D33-4954-B509-4805E05D432A/actions] with body: {"actions":[{"id":"default mouse","type":"pointer","parameters":{"pointerType":"touch"},"actions":[{"duration":100,"x":0,"y":0,"type":"pointerMove","origin":{"element-6066-11e4-a52e-4f735466cecf":"19000000-0000-0000-D00E-000000000000","ELEMENT":"19000000-0000-0000-D00E-000000000000"}},{"button":0,"type":"pointerDown"},{"button":0,"type":"pointerUp"}]}]}[debug] [WD Proxy] Got response with status 200: {"value":null,"sessionId":"46E8B15D-2D33-4954-B509-4805E05D432A"}
    [debug] [W3C (9e267990)] Responding to client with driver.performActions() result: null
    any idea why? It took me days to try to find out already
    Any help is appreciated. Thanks in advance!
    jannylan
    @jannylan
    It looks like appium can't handle iOS app's native popup properly, any idea please?
    Ranjith Samalla
    @Ranjithsamalla
    Native app please use WebDriveIO and appium
    WebdriverIO is the best tool for angular and react Web/ Native app
    Виктория
    @ViaMay
    hi! Maybe someone knows a way to automatically install widgets. I need to autotest them.
    jannylan
    @jannylan
    @Ranjithsamalla Thanks! I will try that!
    jannylan
    @jannylan

    @Ranjithsamalla I am new to appium automation for testing iOS real device, do you have any example on how to setup capabilities. Currently it's like this: "capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, "XCUITest");
    capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "Janny's iPhone");
    capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "iOS");
    capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "13.2.2");
    capabilities.setCapability(MobileCapabilityType.UDID, "3443870793f29048f6f7b497b242683cbb0215bf");
    capabilities.setCapability(IOSMobileCapabilityType.BUNDLE_ID, "com.mobiltex.RMU1Config");
    capabilities.setCapability(IOSMobileCapabilityType.XCODE_ORG_ID, "ESBTLAG6BU");
    capabilities.setCapability(IOSMobileCapabilityType.XCODE_SIGNING_ID, "iPhone Developer");
    capabilities.setCapability(MobileCapabilityType.NO_RESET, true);
    capabilities.setCapability("useNewWDA", true);

    capabilities.setCapability("unexpectedAlertBehaviour", "accept");
    capabilities.setCapability("safariAllowPopups", "true");
    capabilities.setCapability("autoGrantPermissions", "true");
    capabilities.setCapability("autoAcceptAlerts", "true");

    "

    How to change the capabilities to use WebDriveIO please?
    jannylan
    @jannylan
    currently I am using "protected AppiumDriver<MobileElement>driver = null;"
    digikiwam
    @digikiwam
    Appium WinAppDriver - how to add App Arguments? AppiumOptions AddAdditionalCapabity("appArguments","<args>"); does not work.
    Pbapattest
    @pbapattest_twitter
    Screen Shot 2019-11-19 at 12.02.51 AM.png
    Hi ! I'm running into TouchAction deprecation issues , can someone please help suggest a workaround?
    point (int , int) in pointAction cannot be applied to org.openqa.selenium.point --- I'm getting this error
    gauravjagtap990
    @gauravjagtap990
    hi i am new to using appium..just started
    what are the main desired capabilities i need to set?
    also how do i find the app path of different apps?
    sumaiya27
    @sumaiya27
    Hello, This is first message to you. I wanted to about the below issue. I can not run the device because this error message is showing
    https://drive.google.com/file/d/10utm4kmraMwnYik_zcCHiXoJjJeU6K79/view?usp=sharing
    https://drive.google.com/file/d/10pGG1CeN5_VZzW1gnSUNWqPzk1SS8zYG/view?usp=sharing
    Rodion_Gavrilov
    @RodionGavrilov

    Hello! please tell me, in the latest version of the appium it is impossible to find an element (inside the element - numbers) using predicateString

    type == 'XCUIElementTypeTextField' && (value CONTAINS '988 109-36-03' || value CONTAINS '922 222-22-22') - does not work

    need to somehow look differently now?

    because in cases with letters - everything is ok, the element is searched for:
    type == 'XCUIElementTypeStaticText' && (value CONTAINS 'Select' || value CONTAINS 'country') - works

    Sai Poluri
    @sai-poluri

    Android automated tests suddenly starts failing for Appium 1.15 after few tests
    I have the following error stack for the android automation issue:

    Selenium::WebDriver::Error::UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: read ECONNRESET UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: read ECONNRESET at JWProxy.command (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:261:13) at

    These scripts were working on older versions of the Appium which proves that the root cause of this error lies in the new version of appium. FYI I have also tried updating the npm, I have uninstalled and reinstalled appium 1.15, tried the caps["automationName"]="appium". Nothing seems to be working. Any suggestion is highly appreciated.

    Poovaraj Thangamariappan
    @poovaraj
    IPad is rebooting continuously while running script. Please let me know why is it rebooting?
    Dai Pham Ngoc
    @daipn-1859
    which of the appium version is captible with webdriver v4.14.x?
    Did anyone know this? I need some helps
    anuragipankaj
    @anuragipankaj
    hi everyon!
    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
    @sai-poluri This works fine with older versions of appium
    Skaviyarasan
    @Skaviyarasan
    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
    @iChip

    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']"

    FedeRed
    @FedeRed
    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?
    sadhananda
    @sadhananda
    how to launch genymotion from the automation script?
    huangbing-star
    @huangbing-star
    安卓手机有刘海屏设计,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
    @bindu.kethireddy_gitlab
    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
    @dinesh.p_gitlab
    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
    digikiwam
    @digikiwam
    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
    @varshanihanth
    image.png
    Guys, Can someone help me in resolving this error