Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    works fine locally
    @rahul-bs also, here's the webdriverio logs:
    2019-12-27T19:42:24.299Z INFO webdriver: COMMAND getWindowHandles() [0-0] 2019-12-27T19:42:24.299Z INFO webdriver: [GET] https://hub-cloud.browserstack.com:443/wd/hub/session/807710f243faa4d8e1184874a20fc037142ca8c1/window/handles [0-0] { status: 9, value: { message: 'Command not supported.' } } [0-0] 2019-12-27T19:42:24.321Z WARN webdriver: Request failed due to Command not supported. [0-0] 2019-12-27T19:42:24.322Z INFO webdriver: Retrying 1/1 2019-12-27T19:42:24.322Z INFO webdriver: [GET] https://hub-cloud.browserstack.com:443/wd/hub/session/807710f243faa4d8e1184874a20fc037142ca8c1/window/handles [0-0] { status: 9, value: { message: 'Command not supported.' } } [0-0] 2019-12-27T19:42:24.345Z ERROR webdriver: Request failed due to Error: Command not supported.
    even though the same requests work fine locallu
    does appium work for Ubuntu OS
    Is the Inspector significantly "snappier"/better in terms of gui lag, etc on better hardware (windows) or is it mainly tied to handset specs?
    Hi, I am doing research before a system upgrade. Anyone know if appium is running well in macOS Catalina?
    James Spencer
    Hey has anyone encountered an issue in real-device testing on iOS - Appium spins up safari and navs to the correct url for testing, but then does nothing. No errors in test logs or Appium log, just seems like its failing to actually run my webdriverio tests without logging any errors. iOS 13.3
    can anyone suggest something
    sangita subudhi

    Hi All Getting configuration issue while running the ios code mac catalina 10.15 xcode version 11.3 appium 1.71package ssp_eCom_app;

    import java.awt.AWTException;
    import java.io.File;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.time.Duration;
    import java.util.Hashtable;
    import org.apache.commons.lang.exception.ExceptionUtils;
    import org.apache.log4j.Logger;
    import org.openqa.selenium.Capabilities;
    import org.openqa.selenium.Dimension;
    import org.openqa.selenium.ElementNotVisibleException;
    import org.openqa.selenium.NoSuchWindowException;
    import org.openqa.selenium.SessionNotCreatedException;
    import org.openqa.selenium.remote.DesiredCapabilities;
    import org.testng.Assert;
    import org.testng.SkipException;
    import org.testng.annotations.AfterMethod;
    import org.testng.annotations.AfterTest;
    import org.testng.annotations.BeforeTest;
    import org.testng.annotations.DataProvider;
    import org.testng.annotations.Parameters;
    import org.testng.annotations.Test;
    import com.relevantcodes.extentreports.LogStatus;
    import com.skidata.common.Admin_App_Android;
    import com.skidata.common.Ecom_ssp;
    import com.skidata.testBase.TestBase;
    import com.skidata.util.ConstantValues;
    import com.skidata.util.DataUtil;
    import io.appium.java_client.AppiumDriver;
    import io.appium.java_client.MobileElement;
    import io.appium.java_client.TouchAction;
    import io.appium.java_client.android.AndroidDriver;
    import io.appium.java_client.remote.MobileCapabilityType;
    import io.appium.java_client.touch.WaitOptions;
    import io.appium.java_client.touch.offset.PointOption;
    import io.appium.java_client.ios.IOSDriver;
    import io.appium.java_client.ios.IOSElement;

    public class Anonymous_User_Reservation extends TestBase {

    public static final Logger log = Logger.getLogger(Anonymous_User_Reservation.class.getName());
    Ecom_ssp AdminVar;

    // public static IOSDriver<IOSElement> driver;
    public AppiumDriver<MobileElement> driver;

    public static DesiredCapabilities capabilities;
    String testName = "Anonymous_User_Reservation";
    @Parameters({ "runOn"})
    public void Setup(String runOn) throws MalformedURLException, InterruptedException {
        Capabilities caps = new DesiredCapabilities();
        capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "iOS");
        capabilities.setCapability(MobileCapabilityType.NO_RESET, true);
        capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, "XCUITest");
        capabilities.setCapability("useNewWDA", false);
        capabilities.setCapability("xcodeOrgId", "[YOUR_TEAM_ID]");
        capabilities.setCapability("xcodeSigningId", "iPhone Developer");
        capabilities.setCapability(MobileCapabilityType.UDID, "[YOUR_DEVICE_UDID]");
        //capabilities.setCapability(MobileCapabilityType.APP, "/Users/sangitasubudhi/Desktop/ssp_plugin.ipa");
        capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "iphone x");
        capabilities.setCapability("updatedWDABundleId", "[YOUR_BUNDLE_ID]");
        String appPath = "/Users/sangitasubudhi/Documents/ssp_plugin.ipa/ParentApp.ipa";
        File app = new File(appPath);
        capabilities.setCapability("app", app.getAbsolutePath());

    // driver = new AndroidDriver(new URL("http://"+URL_), caps);
    // driver = new AndroidDriver(new URL(""), caps);

            capabilities.setCapability("udid", "55641c3260ddf19af2d050f6f39e7c1042fde3f6");
            driver = new IOSDriver(new URL(""), capabilities);  
            System.out.println(" Sangita testing ===============+++++++++>");
    public void tearDown() throws Exception{
    public Object[][] getDataForTestCaseName() {
        return DataUtil.getDataForTestCaseName(SSP_xls, testName);
    @Test(dataProvider = "getDataForTestCaseName", testName = "", description = "This method will do reservation for anonymous user"
    can anyone resolve this issue
    having issues with running multiple apps at the same time to do end to end testing - it is this one - https://stackoverflow.com/questions/59610529/connecting-two-appium-apps-at-the-same-time-and-doing-end-to-end-tests-on-them
    able to work with 1 app and 1 browser. however when i add one more app it does not work
    can anyone help?
    sangita subudhi
    One more issue is there for android appium horizontal scroll but scroll is not happening till the element mentioned it's scrolling only one tab ,i used setAsHorizontalList() .scrollintoview().uiselector
    MobileElement element = driver.findElement(MobileBy.AndroidUIAutomator(
    "new UiScrollable(new UiSelector().resourceId(\"com.android.vending:id/items\")).setAsHorizontalList().scrollIntoView("
                + "new UiSelector().descriptionContains(\"Family\"))"));

    Hello, i have a little problem.
    When i am trying to run tests via console apium, i have this error.

    [Xcode] 2020-01-10 14:28:24.860 xcodebuild[17302:556797] Error Domain=NSCocoaErrorDomain Code=260 "The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/Valerii/Library/Developer/Xcode/DerivedData/WebDriverAgent-aiaejbhejflmruhkhsmeebmhbaia/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fd93ae4ee60 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
    [Xcode] Test session results, code coverage, and logs:
    [Xcode]         /Users/Valerii/Library/Developer/Xcode/DerivedData/WebDriverAgent-aiaejbhejflmruhkhsmeebmhbaia/Logs/Test/Test-WebDriverAgentRunner-2020.01.10_14-28-24-+0200.xcresult
    [Xcode] Testing started on 'Cohero’s iPhone X'
    [Xcode] Testing failed:
    [Xcode]         Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the Signing & Capabilities editor.
    [Xcode]         WebDriverAgentRunner:
    [Xcode]                 WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file. The file doesn’t exist. (Underlying error: The operation couldn’t be completed. No such file or directory)))
    [Xcode] ** TEST EXECUTE FAILED **

    When i am starting via Apium Desktop, everything is fine.
    My apium-doctor:

    info AppiumDoctor Appium Doctor v.1.13.0
    info AppiumDoctor ### Diagnostic for necessary dependencies starting ###
    info AppiumDoctor  ✔ The Node.js binary was found at: /usr/local/bin/node
    info AppiumDoctor  ✔ Node version is 12.13.1
    info AppiumDoctor  ✔ Xcode is installed at: /Applications/Xcode.app/Contents/Developer
    info AppiumDoctor  ✔ Xcode Command Line Tools are installed in: /Applications/Xcode.app/Contents/Developer
    info AppiumDoctor  ✔ DevToolsSecurity is enabled.
    info AppiumDoctor  ✔ The Authorization DB is set up properly.
    info AppiumDoctor  ✔ Carthage was found at: /usr/local/bin/carthage. Installed version is: 0.34.0
    info AppiumDoctor  ✔ HOME is set to: /Users/serg
    info AppiumDoctor  ✔ ANDROID_HOME is set to: /Users/serg/Library/Android/sdk
    info AppiumDoctor  ✔ JAVA_HOME is set to: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home
    info AppiumDoctor  ✔ adb exists at: /Users/serg/Library/Android/sdk/platform-tools/adb
    info AppiumDoctor  ✔ android exists at: /Users/serg/Library/Android/sdk/tools/android
    info AppiumDoctor  ✔ emulator exists at: /Users/serg/Library/Android/sdk/tools/emulator
    info AppiumDoctor  ✔ Bin directory of $JAVA_HOME is set
    info AppiumDoctor ### Diagnostic for necessary dependencies completed, no fix needed. ###
    info AppiumDoctor
    info AppiumDoctor ### Diagnostic for optional dependencies starting ###
    info AppiumDoctor  ✔ opencv4nodejs is installed at: /usr/local/lib. Installed version is: 5.5.0
    info AppiumDoctor  ✔ ffmpeg is installed at: /usr/local/bin/ffmpeg. ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
    info AppiumDoctor  ✔ mjpeg-consumer is installed at: /usr/local/lib. Installed version is: 2.0.0
    info AppiumDoctor  ✔ set-simulator-location is installed
    info AppiumDoctor  ✔ idb and idb_companion are installed
    info AppiumDoctor  ✔ applesimutils is installed at: /usr/local/bin/applesimutils. Installed versions are: applesimutils 0.7.6
    info AppiumDoctor  ✔ ios-deploy is installed at: /usr/local/bin/ios-deploy. Installed version is: 1.10.0
    WARN AppiumDoctor  ✖ bundletool.jar cannot be found

    Hi all,
    I face off issue with autoAcceptAlerts capability by using the following caps:

    appiumVersion: '1.15.0',
    maxInstances: 1,
    platformName: "ios",
    platformVersion: "13.0",
    deviceName: "iPhone 11",
    automationName: "XCUITest",
    autoAcceptAlerts: true,

    Instead of accepting the native pop up it dismisses it.
    Has anyone seen this weird issue?

    hi , how to do mobile app testing for ionic 4 app
    i am facing some issue to launch app , plz suggest me any solution
    Bollini Kiran
    can any one explain me how to set desired capabilities for chromeOptions.setExperimentalOption("w3c", false); for Android
    Navin Seth
    Hi, I have a react native hybrid app that uses react-native-webview . When I run driver.setValue('some text') on a text box, it works however I have some code written in an onChange handler, which does not run which I need it to. Has anyone ran into this similar issue, if so please help?
    Navin Seth

    :point_up: December 2, 2019 3:34 PM

    Were you able to solve this?

    Hi, I am new to appium. Im trying to automate the hybrid application in iOS real devices. I was able to launch the application through .app file. I was able to locate the element using class name, but click action is not working. Can anyone help me in this.
    Navin Seth
    Any ideas on my issue?
    Hello, i have updated my appium to 1.16.0 . while running test suite, I am getting this error "
    [debug] [W3C] Encountered internal error running command: Error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output. " does any body knows abt it
    ? Thanks!
    @toien44 hey were you able to fix this issue ? i am getting similar kind of issue
    Manikandan M G
    Hi. I am getting this issue on appium ...An unknown server-side error occurred while processing the command. Original error: '13.1' does not exist in the list of simctl SDKs. No Simulator SDK versions are available on your system. Please install some via Xcode preferences.An unknown server-side error occurred while processing the command. Original error: '13.1' does not exist in the list of simctl SDKs. No Simulator SDK versions are available on your system. Please install some via Xcode preferences.
    give me solution if anyone have idea
    Trần Trung Nghĩa
    Hi every one, have u ever stuck at this problem?
    SyntaxError: Cannot use import statement outside a module
    at compileFunction (<anonymous>)
    at Module._compile (internal/modules/cjs/loader.js:881:18)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:962:10)
    at Module.load (internal/modules/cjs/loader.js:798:32)
    at Function.Module._load (internal/modules/cjs/loader.js:711:12)
    at Module.require (internal/modules/cjs/loader.js:838:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (../../lib/appium.js:10:60)
    at Module._compile (internal/modules/cjs/loader.js:945:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:962:10)
    at Module.load (internal/modules/cjs/loader.js:798:32)
    at Function.Module._load (internal/modules/cjs/loader.js:711:12)
    at Module.require (internal/modules/cjs/loader.js:838:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (../../lib/main.js:13:39)
    at Module._compile (internal/modules/cjs/loader.js:945:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:962:10)
    at Module.load (internal/modules/cjs/loader.js:798:32)
    at Function.Module._load (internal/modules/cjs/loader.js:711:12)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1014:10)
    at internal/main/run_main_module.js:17:11
    Can someone help me to run automation tests
    Appium 1.16.0
    appium java client 7.3.0
    Selenide 5.6.0
    Android 10 (Pixel)
    Chromedriver 79.0.39
                capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "Android");
                capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, config().deviceName());
                capabilities.setCapability(MobileCapabilityType.UDID, config().udid());
                capabilities.setCapability(MobileCapabilityType.BROWSER_NAME, "Chrome");
                ChromeOptions chromeOptions = new ChromeOptions();
                chromeOptions.setExperimentalOption("w3c", false);
                capabilities.setCapability("automationName", "uiautomator2");
                capabilities.setCapability("chromedriverExecutable", "/usr/local/bin/chromedriver");
                capabilities.setCapability("appiumVersion", "1.16.0");
    INFO: Detected dialect: W3C
    org.openqa.selenium.WebDriverException: 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: Error: socket hang up
    Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
    System info: host: 'UKR-Oleksandr-L.local', ip: 'fe80:0:0:0:863:cd64:e760:93cb%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.3', java.version: '1.8.0_144'
    Driver info: io.appium.java_client.AppiumDriver
    selenide.url: https://www.seekingalpha.com
    Capabilities {appActivity: com.google.android.apps.chr..., appPackage: com.android.chrome, appiumVersion: 1.16.0, automationName: uiautomator2, browserName: chrome, chromedriverExecutable: /usr/local/bin/chromedriver, databaseEnabled: false, desired: {appiumVersion: 1.16.0, automationName: uiautomator2, browserName: chrome, chromedriverExecutable: /usr/local/bin/chromedriver, deviceName: Pixel, goog:chromeOptions: {args: [], extensions: [], w3c: false}, newCommandTimeout: 180, platformName: android, udid: FA77S0307089}, deviceApiLevel: 29, deviceManufacturer: Google, deviceModel: Pixel, deviceName: FA77S0307089, deviceScreenDensity: 420, deviceScreenSize: 1080x1920, deviceUDID: FA77S0307089, goog:chromeOptions: {args: [], extensions: [], w3c: false}, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: true, newCommandTimeout: 180, pixelRatio: 2.625, platform: LINUX, platformName: Android, platformVersion: 10, statBarHeight: 63, takesScreenshot: true, udid: FA77S0307089, viewportRect: {height: 1731, left: 0, top: 63, width: 1080}, warnings: {}, webStorageEnabled: false}
    selenide.baseUrl: http://localhost:8080
    Session ID: 9ab0719c-8002-4523-96ab-62c407519463
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
        at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
        at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
        at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
        at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)
        at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
    Hi there! I had a question I hope you'd folks would be able to assist with.
    This is about the real device screen rotate command. Is it supposed to work when the app is either closed or in the background?
    • If I background the app, then do a rotate command… it seems to wait until the background is complete, the app re-opens, and then does the rotation.
    • If I close out the app, the rotate command errors and tells me about the disobedient app "Set the orientation, but app refused to rotate."
    Tom Fottinger

    I need some help. I’m using the following.
    Appium 1.16.0 and Appium Desktop 1.15.1
    Running locally on a real iPhone XS, iOS 13
    "@wdio/appium-service": "^5.12.1",
    "@wdio/cli": "^5.12.4",
    "@wdio/jasmine-framework": "^5.12.1",
    "@wdio/local-runner": "^5.12.4",
    "@wdio/spec-reporter": "^5.12.1",
    "@wdio/sync": "^5.12.3",

    I used the Appium Desktop to identify the selector information. Some elements don’t have an accessibility ids. So, I tried to use xpath, example : “//(XCUIElementTypeOther[@name="login”])[5]”, but I get the following error.

    [0-0] 2020-01-19T16:18:50.758Z INFO webdriver: COMMAND findElement("xpath", "//(XCUIElementTypeOther[@name="login"])[5]")
    [0-0] 2020-01-19T16:18:50.759Z INFO webdriver: [POST]
    [0-0] 2020-01-19T16:18:50.760Z INFO webdriver: DATA { using: 'xpath',
    value: '//(XCUIElementTypeOther[@name="login"])[5]' }
    [0-0] 2020-01-19T16:18:51.086Z INFO webdriver: RESULT { error: 'no such element',
    'An element could not be located on the page using the given search parameters.',
    'NoSuchElementError: An element could not be located on the page using the given search parameters.\n at XCUITestDriver.doNativeFind (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/find.js:126:11)' }

    None of the other xpaths work.

    Any update on my issue
    Veera Subba Reddy
    Hi All
    I am seeing nosuchcontext error while trying to switch webview in Java
    Alexandru-Sorin Maxim
    Hello, i need some help, regarding performance log type. This log type is only available in a web context ? I get the error An unknown server-side error occurred while processing the command. Original error: No logs of type 'performance' found. Thank you!
    Basic Question:
    May i pls know, why are we using appium for mobile automation? why not selenium ?
    @nrakshe appium supports mobile device automation, selenium does not support.That is why with appium you can use selenium to test or use some features
    Hi, is there any one who is using xamarin test cloud'or app center,I need help.Please ping me .When I am running my test it is keep on executing continuously and I had to cancel my test after an hour which doesn't give me any report.
    Dai Pham Ngoc
    Please help me to explain what is the unit of mesure for MAX_FRAME_SIZE
    in the link below
    Our hybrid app throws the error [debug] [XCUITest] We are in the middle of selecting a page, ignoring uncaughtException: The frame is bigger than expected. Length: 21974315, max: 20000000
    And I don't know how to get the app frame size and calculate it also.
    Please send me some feedbacks if you have any ideas.
    Thank you so much for your time!
    Johan Hernefeldt

    Do I have to do some magic for signing to work in appium 1.16.0 (installed via npm) for IOS real device?
    I can build and run just fine from xcode, I can also manually run xcodebuild -allowProvisioningUpdates -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=redacted' test without any problem in /appium/node_modules/appium-webdriveragent

    But when the tests run I get Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the Signing & Capabilities editor.

    Any ideas what I am missing?

    (I have DEVELOPER_TEAM and CODE_SIGN_IDENTITY in ~/.xcconfig and as properties in capabilities)

    @presidenten I am facing same issue
    When I try to change context to WEBVIEW in code, Appium hangs and after a long time fails to change context. WHat could be teh possible causes?
    Is there anyone how have tried two mobile apps run in one appium session one after another ?