Test runs in Test Recorder but not Test Cloud

I have a test I'm running in Test Recorder which runs fine in TR. I upload to Test Cloud and it fails on every device. The app has "cards" on the screen which you need to tap.
Here's the code:
app.Tap(x => x.Id("Card").Index(10));
Here we are tapping the 10th card on the screen.

When it runs in Test Cloud, the log shows:
"Unable to find element"
Any ideas why it would run fine in Recorder but not in Test Cloud?

Answers

  • JohnLagoJohnLago USXamarin Team Xamurai

    Hey Dawn,

    Can you PM me a link to view your test so that I can see where this specific issue is failing?

    Depending on the screen size you used to record the test, it's possible that the card may not be visible in the screen of your Test Cloud devices.

    Thanks,

    John Lago
    Test Recorder PM

  • DawnRobbDawnRobb USMember

    testcloud.xamarin.com/test/american-national-mobile_07320bb0-02d6-43c6-a620-1342b55d7cc5

  • JohnLagoJohnLago USXamarin Team Xamurai

    Hey Dawn,

    The screenshots for the test in question show less than 11 cards (the Index method is 0 based, so .Index(10) is referring to the 11th item). Are you clicking one of the on-screen cards when recording?

    Thanks,

    John Lago

  • DawnRobbDawnRobb USMember

    Hey John, we figured this out. I guess Test Cloud cannot click anything not visible on the screen and that card needed a scroll method to get to it so I'm trying that to see if it fixes it.

Sign In or Register to comment.