Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    davidtophat
    @davidtophat
    nvm figured it out its because iphone 11 has different access ids.
    Rahul Jaisinghani
    @rahul-bs
    Hi,
    I am getting chrome
    Not reachable when I am doing context switch and resetapp
    zangpi
    @zangpi
    [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
    @DineshSV_gitlab
    Can anyone tell me how to upload apk file in Sauce Labs. I am using trial version of Sauce Labs
    Ryan McIntyre
    @ryanoasis_gitlab

    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}
    or
    [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
    @DineshSV_gitlab
    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
    Kubeusz89
    @Kubeusz89
    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
    @sven14_gitlab
    does anyone have problems with context of the hybrid apps? cannot get webview context of that kind of app
    Ryan McIntyre
    @ryanoasis_gitlab
    @ryanoasis_gitlab Solved problem with driver.setAsyncTimeout(5000) http://appium.io/docs/en/commands/web/execute-async/
    Polaris008
    @Polaris008

    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?

    mundocruel
    @mundocruel

    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.

    davidtophat
    @davidtophat

    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?

    Thanks!

    Ghost
    @ghost~5ddff7a3d73408ce4fd26b22
    davidtophat
    @davidtophat
    @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?
    Ghost
    @ghost~5ddff7a3d73408ce4fd26b22
    @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
    davidtophat
    @davidtophat
    https://selenium.dev/selenium/docs/api/java/org/openqa/selenium/Keys.html
    import org.openqa.selenium.Keys
    I am trying to import the above for pycharm but it doesn't recognize it
    nghiahuynht05
    @nghiahuynht05

    Hello,

    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

    Ghost
    @ghost~5ddff7a3d73408ce4fd26b22
    @nghiahuynht05 check http://appium.io/docs/en/drivers/android-uiautomator2/#real-device-setup, and please don't use var in your code, use const (or let), and get rid of things like var self = this; you're shooting yourself in the foot
    zarashima
    @zarashima

    Hi all

    Is it possible to attach to the existing Appium session? My scenario is I want to re-use the same Appium session for mobile browser from a native app context, not want to create two separate drivers instance to handle this

    Ryan McIntyre
    @ryanoasis_gitlab

    Hey all. Having a hard time getting a React input component value to set and trigger an on change event, I can get the value just fine with getValue. It is set visually - as in the input has the value but as far as the form goes it is not 'set'. Methods tried: addValue, setValue and sendKeys.

    alternatives tried:
    https://github.com/facebook/react/issues/11488#issuecomment-470623779
    https://github.com/appium/appium/issues/9002#issuecomment-479032180
    https://github.com/facebook/react/issues/11488#issuecomment-347775628

      const input = await browser.$('input');
      await input.addValue(email); // doesn't trigger change event. workaround?
      await input.setValue(email); // doesn't trigger change event. workaround?
    
      browser.execute(() => {
        let input = document.querySelector('input');
        let lastValue = input.value;
        let event = new Event('change', { bubbles: true });
        event.simulated = true;
        let tracker = input._valueTracker;
        if (tracker) {
          tracker.setValue(lastValue);
        }
        input.dispatchEvent(event);
      });

    Any ideas here? :( Thanks

    Sven Murat
    @sven14_gitlab
    currently I'm having this issue when trying to switch context to webview: Request failed due to unknown error: An unknown server-side error occurred while processing the command. Original error: No Chromedriver found that can automate Chrome '78.0.3904'... but have installed latest chromedriver?
    can anyone help? I'm trying to inspect hybrid app in chrome
    Shawn Edge
    @Edge_Man_twitter
    @sven14_gitlab : run this when starting appium... "appium --allow-insecure chromedriver_autodownload"
    bobbyislam
    @bobbyislam
    any place I can find detailed instruction on how to set up a Mac for iOs / Appium / c# setup. I am very new into mobile testing world
    my goal is to start writing some c# tests which will be hooked to the Mac machine and eventually test using SauceLabs
    Shawn Edge
    @Edge_Man_twitter
    Rahul Jaisinghani
    @rahul-bs
    @sven14_gitlab pass 'recreateChromeDriverSessions' capability as true
    bobbyislam
    @bobbyislam
    @bobbyislam Thanks @Edge_Man_twitter
    walternolak
    @walternolak
    Hello! Does anyone have encountered this error while running tests: "Unable to remove port forward 'Error executing adbExec. Original error: ‘Command Android/sdk/platform-tools/adb -P 5037 -s 83e54f3051575844 forward --remove tcp\:8200' exited with code 1'; Stderr: 'error: listener 'tcp:8200' not found'; Code: '1’'
    I’m using appium 1.15.1, node v10.15.3, npm 6.13.2
    This always happens to me when tests are finished executing. Thanks for the help!
    mohit12705
    @mohit12705
    Ios simulator is taking long time to load URL first time in saucelabs . Any idea how to solve this issue or make sure page is loaded and then execute rest steps
    Ivan Chernov
    @iChernov
    Hello guys. Weird thing - our tests are running way faster on old iPhones (6s/7), than on the new ones (like 8 Plus). Does anybody have a hint - what could be the reason, or with whom I can discuss it?
    Mugilan K
    @Mugilanmca
    Hi Every one , am unable to clear the text field value in iOS realdevices.Not getting any issues while use the clear() command but the value also no cleared.
    Appium Vesrion -1.15
    Xcode version 11.2
    Appium java client -7.3.0
    Could any one please help
    Vadym Morozov
    @flexin777

    Hello
    I am runninng mobile e2e tests useing Appium for native app.
    I have in spec pleace, where I want to close and then open this app.
    Using

    browser.closeApp();
    browser.launchApp();

    Issue. When I start run spec - it first executes those commands, even if they are located in the end of suite. Why?

    HemanathanGama
    @HemanathanGama
    Hi Guys,
    i am struck in my projrect, need your help. I am working on QR payment Android application
    i need to scan QR code when my mobile cam opens
    any suggestion or idea, i am wokring on Appium with java
    i am struck in this for 3 days
    sridharreddysuram123
    @sridharreddysuram123
    Do you have the QR CODE Image?
    if yes, then keep the device camera in a position to scan the QR Image.
    HemanathanGama
    @HemanathanGama
    i want to in automation