Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Sampad Rout
    @sampadrout
    How can I click on a specific word present in a sentence? Here due to the limitation of our iOS app, the entire sentence identified as a web element. But a word within that element is a button text but cannot be identified separately. So I have to fetch the entire sentence text and selectively want to click on a word within that sentence. Please let me know if there is a way to do it. Thanks in advance
    Tu Huynh
    @TuHuynhVan

    a word

    . Get the size of text box
    . Try to click-and-change position, after each time you click, you need to have a logic to check wether you click on that word or not (like navigate to another screen?)
    cuz you mentioned just a word so I think you can try but if you can, try to ask your developer whether we can modify if you still wanna cover that test

    Sampad Rout
    @sampadrout
    @TuHuynhVan thanks for the info. In fact now i am doing that and its working fine. Just thought of making things simpler but seems like i have to live with that. Thanks again for all the help. Here is the code "WebElement element = elements.get(elements.size() - 1);
            Point point = element.getLocation();
    
            int x = point.x + (int) (element.getSize().getWidth() * 0.25);
            int y = point.y + (int) (element.getSize().getHeight() * 0.75);
    
            new TouchAction((PerformsTouchActions) webdriver).press(PointOption.point(x, y))
                    .waitAction(waitOptions(Duration.ofMillis(500)))
                    .release().perform();"
    Azhar
    @Azhar0554_twitter
    Hi!! Anyone faced the issue wd/hub/session/2486bd1c-7698-4bc1-80e8-86048450bc8d/screenshot 500 1036 ms - 273 and its very slow
    DingYi
    @dvdface

    Hi, I have a question, anybody can help me figure it out?

    APPIUM is a HTTP server with WebDriver protocol; I supports it should route multiple testcases to the different devices. However I found it couldn't

    I started two android emulators and wrote two testcases, then started one appium server, try to ran two testcases at the same time;
    It supposed that appium server should route two testcases to two devices respectively, however it routed two testcases to the same device one after the another;

    Why did that happens? does the one appium running instance only support one device?

    sourabhahg
    @sourabhahg
    hi anyone got this issue, Error: Failed to create session.
    socket hang up
    Love soni
    @LoveSoni
    Screenshot 2021-05-16 at 11.05.24 PM.png
    Screenshot 2021-05-16 at 11.05.24 PM.png
    Hi can someone please help me in this
    My appium server is running and i can access from my code
    but with appium desktop it is throwing this error
    Steven Jones
    @StevenJ65804775_twitter
    Hey guys
    AbdulRauf002
    @AbdulRauf002
    Hi All,
    Vlad Kostyukevich
    @VladislavKostyukevich
    Hey, does anyone have issues with switching to webview on ios 14.5?
    Huzaifa Iftikhar
    @huzaifaiftikhar
    Some issues with remote-debugger on iOS 14.5 that causes the app to crash when we switch to webview
    appium/appium#15325
    Vlad Kostyukevich
    @VladislavKostyukevich
    I can't even see the webview context.. but everything is ok on 14.4
    Federico Francia
    @federicoitaly:matrix.org
    [m]
    @VladislavKostyukevich: is your mobile app React Native?
    Vlad Kostyukevich
    @VladislavKostyukevich
    @federicoitaly:matrix.org No, it is cordova hybrid app with simple web page inside
    YeFei572
    @YeFei572

    what a fuck

    RachaelKlein92
    @RachaelKlein92
    Does Appium support desktop browser support and mobile?
    Huzaifa Iftikhar
    @huzaifaiftikhar
    For desktop browser you’ll have to use selenium and for mobile browsers appium works
    RachaelKlein92
    @RachaelKlein92
    @huzaifaiftikhar thanks!
    hazem-hosny
    @hazem-hosny
    Beighboorhood singer Here
    santhosh pl
    @pl_santhosh_twitter

    hello,
    I am using a xiomi version android phone.
    Every time I run a test case via appium, it is asking for the uiautomator2 to be installed again.

    Is there a way to bypass this?

    Federico Francia
    @federicoitaly:matrix.org
    [m]
    hi everybody, does anyone use "mobile:swipe" in XCUI iOS?
    I am trying to get the coordinate differences of the viewport between before and after the swipe
    i am in NATIVE context
    Jonathan Souza (Jojo)
    @jonathansouza-hotmart
    Unable to create a new remote session. Please check the server log for more details. Original error: Could not start Mobile Browser
     Reason:
    An unknown server-side error occurred while processing the command. Original error: Cannot start the 'app.com.devrelease' application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Error executing adbExec. Original error: 'Command 'android-sdk/platform-tools/adb -P 5037 -s 66a402b3 shell am start -W -n app.com.devrelease/com.app.activities.SplashActivity -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000' timed out after 20000ms'. Try to increase the 20000ms adb execution timeout represented by 'adbExecTimeout' capability (WARNING: The server did not provide any stacktrace information)

    Hi all, i'm running my appium throw browserstack and i get the following error. any one saw this before and can help me?

    any one?

    Hey, you solved this problem?

    I am facing this error here running ios app automate on Browserstack.

    Federico Francia
    @federicoitaly:matrix.org
    [m]
    @jonathansouza-hotmart: try to contact the support team of Browserstack
    Jonathan Souza (Jojo)
    @jonathansouza-hotmart
    Thank you @federicoitaly:matrix.org I solved with this suggestion.
    My ipa generated was not compatible with browserstack.
    They sent to me the orientations.
    FelixPWAC
    @FelixPWAC
    Can anyone share how to scroll on Appium v1.21.0
    Federico Francia
    @federicoitaly:matrix.org
    [m]
    hi @FelixPWAC , I use "mobile:swipeGesture" for android and "mobile:swipe" for iOS
    Federico Francia
    @federicoitaly:matrix.org
    [m]
    there is a way to " element.touchAction([
    { action: "tap" },
    "release",
    ]);" in the center of the element?
    sometimes in iOS it taps outside of the element
    FelixPWAC
    @FelixPWAC
    Hi @federicoitaly:matrix.org can you share a example
    FelixPWAC
    @FelixPWAC
    MobileElement element = (MobileElement) driver.findElement(MobileBy.AndroidUIAutomator(
    "new UiScrollable(new UiSelector().scrollable(true))" +
    ".scrollIntoView(new UiSelector().text(\"exact_text\"))"));
    appium does not accept this
    Federico Francia
    @federicoitaly:matrix.org
    [m]
    ok, Felix I can share you an example. I was going crazy to make it work, because I have to test a react native mobile app
    Federico Francia
    @federicoitaly:matrix.org
    [m]
    const swipeGesture = (dir, scrollViewElement) => {
    if (browser.isAndroid) {
    // Android UiAutomator2
    driver.execute("mobile:swipeGesture", {
    direction: dir,
    elementId: scrollViewElement.elementId,
    });
    } else {
    // iOS XCUITest
    driver.execute("mobile:swipe", {
    direction: dir,
    element: scrollViewElement.elementId,
    });
    }
    };
    in android uia2 you can use the gesture "mobile:swipeGesture", while in iOS XCUI Test you can use "mobile:swipe"
    this example is webdriverIO, JS
    FelixPWAC
    @FelixPWAC
    Yeah react native can be really tough to automate how did you manage to do that
    besides I have no idea how the logic for the above code works
    I was scrolling happily before I updated appium
    with the below code
    public void scrollIntoText(String input) {
        driver.findElement(MobileBy.AndroidUIAutomator("new UiScrollable(new UiSelector.scrollable(true))"+ ".scrollIntoView(new UiSelector.text(\""+input+"\"))"));}
    FelixPWAC
    @FelixPWAC
    @federicoitaly:matrix.org can you modify the below code to make scroll work as i Cant but it looks promising
    JavascriptExecutor js = (JavascriptExecutor) driver;
    HashMap<String, String> scrollObject = new HashMap<String, String>();
    scrollObject.put("direction", "down");
    js.executeScript("mobile: scroll", scrollObject);
    Federico Francia
    @federicoitaly:matrix.org
    [m]
    HI @FelixPWAC , yes I know UiScrollable, I've used it as it is very quick, but eventually I decided to use "mobile:swipeGesture", although it's slower it's more accurate and in this way I have similar code for iOS and android
    Noir
    @Noirscode
    hi
    im new at here i have an problem and i wanna find an solution for this problem https://share.getcloudapp.com/12u4BrKj
    sourabhahg
    @sourabhahg
    hi guys im trying to automate webapp on safari , but not able to open safari through good, any suggestions?