Robo script aborts when using SwipeRefreshLayout











up vote
3
down vote

favorite












My Robo script aborts when it encounters a layout in this structure:



<?xml version="1.0" encoding="utf-8"?>
<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
android:fitsSystemWindows="true"
tools:context=".ui.AuftraegeActivity">

<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/swipeRefreshLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">

<ListView
android:id="@+id/projekte_listview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal"
android:background="@android:color/white"
android:clipToPadding="false"
android:divider="#d3d3d3"
android:dividerHeight="2dp"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:scrollbarStyle="outsideOverlay"
android:visibility="gone"
tools:visibility="visible" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

<include layout="@layout/navdrawer" />

</androidx.drawerlayout.widget.DrawerLayout>


Here i try to click on the first entry of the ListView.



The visibility of the ListView is set to visible inside the AuftraegeActivity after a successful sync with the server. While syncing a (UI-Blocking) Progressbar is displayed.



Removing the SwipeRefreshLayout let the Robo script run successfully.



Here is the relevant part of the Robo script:



{
"eventType": "LIST_ITEM_CLICKED",
"timestamp": 1542633892083,
"replacementText": "",
"actionCode": -1,
"delayTime": 0,
"canScrollTo": false,
"elementDescriptors": [
{
"className": "android.widget.LinearLayout",
"recyclerViewChildPosition": -1,
"adapterViewChildPosition": 0,
"groupViewChildPosition": -1,
"resourceId": "de.tarent.ngop.android.debug:id/ll_auftrag_list_item_container",
"contentDescription": "",
"text": ""
},
{
"className": "android.widget.ListView",
"recyclerViewChildPosition": -1,
"adapterViewChildPosition": -1,
"groupViewChildPosition": 0,
"resourceId": "de.tarent.ngop.android.debug:id/projekte_listview",
"contentDescription": "",
"text": ""
},
{
"className": "androidx.swiperefreshlayout.widget.SwipeRefreshLayout",
"recyclerViewChildPosition": -1,
"adapterViewChildPosition": -1,
"groupViewChildPosition": 0,
"resourceId": "de.tarent.ngop.android.debug:id/swipeRefreshLayout",
"contentDescription": "",
"text": ""
}
]
},









share|improve this question









New contributor




Patrick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    up vote
    3
    down vote

    favorite












    My Robo script aborts when it encounters a layout in this structure:



    <?xml version="1.0" encoding="utf-8"?>
    <androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/drawer_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@android:color/white"
    android:fitsSystemWindows="true"
    tools:context=".ui.AuftraegeActivity">

    <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
    android:id="@+id/swipeRefreshLayout"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <ListView
    android:id="@+id/projekte_listview"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_gravity="center_horizontal"
    android:background="@android:color/white"
    android:clipToPadding="false"
    android:divider="#d3d3d3"
    android:dividerHeight="2dp"
    android:paddingStart="10dp"
    android:paddingEnd="10dp"
    android:scrollbarStyle="outsideOverlay"
    android:visibility="gone"
    tools:visibility="visible" />
    </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

    <include layout="@layout/navdrawer" />

    </androidx.drawerlayout.widget.DrawerLayout>


    Here i try to click on the first entry of the ListView.



    The visibility of the ListView is set to visible inside the AuftraegeActivity after a successful sync with the server. While syncing a (UI-Blocking) Progressbar is displayed.



    Removing the SwipeRefreshLayout let the Robo script run successfully.



    Here is the relevant part of the Robo script:



    {
    "eventType": "LIST_ITEM_CLICKED",
    "timestamp": 1542633892083,
    "replacementText": "",
    "actionCode": -1,
    "delayTime": 0,
    "canScrollTo": false,
    "elementDescriptors": [
    {
    "className": "android.widget.LinearLayout",
    "recyclerViewChildPosition": -1,
    "adapterViewChildPosition": 0,
    "groupViewChildPosition": -1,
    "resourceId": "de.tarent.ngop.android.debug:id/ll_auftrag_list_item_container",
    "contentDescription": "",
    "text": ""
    },
    {
    "className": "android.widget.ListView",
    "recyclerViewChildPosition": -1,
    "adapterViewChildPosition": -1,
    "groupViewChildPosition": 0,
    "resourceId": "de.tarent.ngop.android.debug:id/projekte_listview",
    "contentDescription": "",
    "text": ""
    },
    {
    "className": "androidx.swiperefreshlayout.widget.SwipeRefreshLayout",
    "recyclerViewChildPosition": -1,
    "adapterViewChildPosition": -1,
    "groupViewChildPosition": 0,
    "resourceId": "de.tarent.ngop.android.debug:id/swipeRefreshLayout",
    "contentDescription": "",
    "text": ""
    }
    ]
    },









    share|improve this question









    New contributor




    Patrick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      My Robo script aborts when it encounters a layout in this structure:



      <?xml version="1.0" encoding="utf-8"?>
      <androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/drawer_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@android:color/white"
      android:fitsSystemWindows="true"
      tools:context=".ui.AuftraegeActivity">

      <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
      android:id="@+id/swipeRefreshLayout"
      android:layout_width="match_parent"
      android:layout_height="match_parent">

      <ListView
      android:id="@+id/projekte_listview"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_gravity="center_horizontal"
      android:background="@android:color/white"
      android:clipToPadding="false"
      android:divider="#d3d3d3"
      android:dividerHeight="2dp"
      android:paddingStart="10dp"
      android:paddingEnd="10dp"
      android:scrollbarStyle="outsideOverlay"
      android:visibility="gone"
      tools:visibility="visible" />
      </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

      <include layout="@layout/navdrawer" />

      </androidx.drawerlayout.widget.DrawerLayout>


      Here i try to click on the first entry of the ListView.



      The visibility of the ListView is set to visible inside the AuftraegeActivity after a successful sync with the server. While syncing a (UI-Blocking) Progressbar is displayed.



      Removing the SwipeRefreshLayout let the Robo script run successfully.



      Here is the relevant part of the Robo script:



      {
      "eventType": "LIST_ITEM_CLICKED",
      "timestamp": 1542633892083,
      "replacementText": "",
      "actionCode": -1,
      "delayTime": 0,
      "canScrollTo": false,
      "elementDescriptors": [
      {
      "className": "android.widget.LinearLayout",
      "recyclerViewChildPosition": -1,
      "adapterViewChildPosition": 0,
      "groupViewChildPosition": -1,
      "resourceId": "de.tarent.ngop.android.debug:id/ll_auftrag_list_item_container",
      "contentDescription": "",
      "text": ""
      },
      {
      "className": "android.widget.ListView",
      "recyclerViewChildPosition": -1,
      "adapterViewChildPosition": -1,
      "groupViewChildPosition": 0,
      "resourceId": "de.tarent.ngop.android.debug:id/projekte_listview",
      "contentDescription": "",
      "text": ""
      },
      {
      "className": "androidx.swiperefreshlayout.widget.SwipeRefreshLayout",
      "recyclerViewChildPosition": -1,
      "adapterViewChildPosition": -1,
      "groupViewChildPosition": 0,
      "resourceId": "de.tarent.ngop.android.debug:id/swipeRefreshLayout",
      "contentDescription": "",
      "text": ""
      }
      ]
      },









      share|improve this question









      New contributor




      Patrick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      My Robo script aborts when it encounters a layout in this structure:



      <?xml version="1.0" encoding="utf-8"?>
      <androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/drawer_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@android:color/white"
      android:fitsSystemWindows="true"
      tools:context=".ui.AuftraegeActivity">

      <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
      android:id="@+id/swipeRefreshLayout"
      android:layout_width="match_parent"
      android:layout_height="match_parent">

      <ListView
      android:id="@+id/projekte_listview"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_gravity="center_horizontal"
      android:background="@android:color/white"
      android:clipToPadding="false"
      android:divider="#d3d3d3"
      android:dividerHeight="2dp"
      android:paddingStart="10dp"
      android:paddingEnd="10dp"
      android:scrollbarStyle="outsideOverlay"
      android:visibility="gone"
      tools:visibility="visible" />
      </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

      <include layout="@layout/navdrawer" />

      </androidx.drawerlayout.widget.DrawerLayout>


      Here i try to click on the first entry of the ListView.



      The visibility of the ListView is set to visible inside the AuftraegeActivity after a successful sync with the server. While syncing a (UI-Blocking) Progressbar is displayed.



      Removing the SwipeRefreshLayout let the Robo script run successfully.



      Here is the relevant part of the Robo script:



      {
      "eventType": "LIST_ITEM_CLICKED",
      "timestamp": 1542633892083,
      "replacementText": "",
      "actionCode": -1,
      "delayTime": 0,
      "canScrollTo": false,
      "elementDescriptors": [
      {
      "className": "android.widget.LinearLayout",
      "recyclerViewChildPosition": -1,
      "adapterViewChildPosition": 0,
      "groupViewChildPosition": -1,
      "resourceId": "de.tarent.ngop.android.debug:id/ll_auftrag_list_item_container",
      "contentDescription": "",
      "text": ""
      },
      {
      "className": "android.widget.ListView",
      "recyclerViewChildPosition": -1,
      "adapterViewChildPosition": -1,
      "groupViewChildPosition": 0,
      "resourceId": "de.tarent.ngop.android.debug:id/projekte_listview",
      "contentDescription": "",
      "text": ""
      },
      {
      "className": "androidx.swiperefreshlayout.widget.SwipeRefreshLayout",
      "recyclerViewChildPosition": -1,
      "adapterViewChildPosition": -1,
      "groupViewChildPosition": 0,
      "resourceId": "de.tarent.ngop.android.debug:id/swipeRefreshLayout",
      "contentDescription": "",
      "text": ""
      }
      ]
      },






      android firebase firebase-test-lab






      share|improve this question









      New contributor




      Patrick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Patrick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited Nov 19 at 15:51









      Doug Stevenson

      65.6k77997




      65.6k77997






      New contributor




      Patrick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Nov 19 at 14:16









      Patrick

      162




      162




      New contributor




      Patrick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Patrick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Patrick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.
























          2 Answers
          2






          active

          oldest

          votes

















          up vote
          0
          down vote













          As a way to troubleshoot this problem, it would help if you recorded the same actions using Espresso Test Recorder (in Android Studio, Run -> Record Espresso Test) and see if the test has the same issue. If yes (most probably), it will give us a detailed error message about what went wrong.



          As a workaround for now, you can remove the last element descriptor for your LIST_ITEM_CLICKED action, i.e., remove the last block in curly brackets (the one that mentions SwipeRefreshLayout) as well as the comma before it. Please let us know if that helped. Thanks!






          share|improve this answer





















          • The recorded Espresso test didn't even got to the activity (permission problems). I tried to fix them, but then other problems appeared. I also tried your workaroud, which did not helped. It failed again at the SwipeRefreshLayout.
            – Patrick
            Nov 20 at 12:10












          • What Android Studio version are you using? The most recent one should handle dynamic permission requests (if that was the problem you encountered). It would really help if you could reproduce this problem with an Espresso test, so if you encounter any issues along the way, please let me know. As about Robo script workaround, do you mind replacing the whole block you posted above with the one in the following comment and checking if it works. Thank you!
            – Stanislav Negara
            Nov 20 at 23:29












          • Please see the Robo script block to replace the original one in the following answer.
            – Stanislav Negara
            Nov 20 at 23:45










          • I am using the newest one (v3.2.1). I cannot reproduce it with Espresso, it just fails at running. I tried with the new Robo script block, but it still fails at the same place.
            – Patrick
            Nov 21 at 14:36










          • Thank you for confirming. I am curious if the original problem happens due to dynamic update of the ListView visibility. Do you mind trying to make it permanently visible and checking if the original Robo script works? Also, if you are comfortable with it, do you mind sharing your test matrix execution link for the original Robo script failure such that I can get more insight about it? Thanks!
            – Stanislav Negara
            Nov 21 at 18:51


















          up vote
          0
          down vote













          {
          "eventType": "LIST_ITEM_CLICKED",
          "timestamp": 1542633892083,
          "replacementText": "",
          "actionCode": -1,
          "delayTime": 0,
          "canScrollTo": false,
          "elementDescriptors": [
          {
          "className": "android.widget.LinearLayout",
          "recyclerViewChildPosition": -1,
          "adapterViewChildPosition": 0,
          "groupViewChildPosition": -1,
          "resourceId": "de.tarent.ngop.android.debug:id/ll_auftrag_list_item_container",
          "contentDescription": "",
          "text": ""
          }
          ]
          },





          share|improve this answer





















            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });






            Patrick is a new contributor. Be nice, and check out our Code of Conduct.










             

            draft saved


            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53376547%2frobo-script-aborts-when-using-swiperefreshlayout%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            As a way to troubleshoot this problem, it would help if you recorded the same actions using Espresso Test Recorder (in Android Studio, Run -> Record Espresso Test) and see if the test has the same issue. If yes (most probably), it will give us a detailed error message about what went wrong.



            As a workaround for now, you can remove the last element descriptor for your LIST_ITEM_CLICKED action, i.e., remove the last block in curly brackets (the one that mentions SwipeRefreshLayout) as well as the comma before it. Please let us know if that helped. Thanks!






            share|improve this answer





















            • The recorded Espresso test didn't even got to the activity (permission problems). I tried to fix them, but then other problems appeared. I also tried your workaroud, which did not helped. It failed again at the SwipeRefreshLayout.
              – Patrick
              Nov 20 at 12:10












            • What Android Studio version are you using? The most recent one should handle dynamic permission requests (if that was the problem you encountered). It would really help if you could reproduce this problem with an Espresso test, so if you encounter any issues along the way, please let me know. As about Robo script workaround, do you mind replacing the whole block you posted above with the one in the following comment and checking if it works. Thank you!
              – Stanislav Negara
              Nov 20 at 23:29












            • Please see the Robo script block to replace the original one in the following answer.
              – Stanislav Negara
              Nov 20 at 23:45










            • I am using the newest one (v3.2.1). I cannot reproduce it with Espresso, it just fails at running. I tried with the new Robo script block, but it still fails at the same place.
              – Patrick
              Nov 21 at 14:36










            • Thank you for confirming. I am curious if the original problem happens due to dynamic update of the ListView visibility. Do you mind trying to make it permanently visible and checking if the original Robo script works? Also, if you are comfortable with it, do you mind sharing your test matrix execution link for the original Robo script failure such that I can get more insight about it? Thanks!
              – Stanislav Negara
              Nov 21 at 18:51















            up vote
            0
            down vote













            As a way to troubleshoot this problem, it would help if you recorded the same actions using Espresso Test Recorder (in Android Studio, Run -> Record Espresso Test) and see if the test has the same issue. If yes (most probably), it will give us a detailed error message about what went wrong.



            As a workaround for now, you can remove the last element descriptor for your LIST_ITEM_CLICKED action, i.e., remove the last block in curly brackets (the one that mentions SwipeRefreshLayout) as well as the comma before it. Please let us know if that helped. Thanks!






            share|improve this answer





















            • The recorded Espresso test didn't even got to the activity (permission problems). I tried to fix them, but then other problems appeared. I also tried your workaroud, which did not helped. It failed again at the SwipeRefreshLayout.
              – Patrick
              Nov 20 at 12:10












            • What Android Studio version are you using? The most recent one should handle dynamic permission requests (if that was the problem you encountered). It would really help if you could reproduce this problem with an Espresso test, so if you encounter any issues along the way, please let me know. As about Robo script workaround, do you mind replacing the whole block you posted above with the one in the following comment and checking if it works. Thank you!
              – Stanislav Negara
              Nov 20 at 23:29












            • Please see the Robo script block to replace the original one in the following answer.
              – Stanislav Negara
              Nov 20 at 23:45










            • I am using the newest one (v3.2.1). I cannot reproduce it with Espresso, it just fails at running. I tried with the new Robo script block, but it still fails at the same place.
              – Patrick
              Nov 21 at 14:36










            • Thank you for confirming. I am curious if the original problem happens due to dynamic update of the ListView visibility. Do you mind trying to make it permanently visible and checking if the original Robo script works? Also, if you are comfortable with it, do you mind sharing your test matrix execution link for the original Robo script failure such that I can get more insight about it? Thanks!
              – Stanislav Negara
              Nov 21 at 18:51













            up vote
            0
            down vote










            up vote
            0
            down vote









            As a way to troubleshoot this problem, it would help if you recorded the same actions using Espresso Test Recorder (in Android Studio, Run -> Record Espresso Test) and see if the test has the same issue. If yes (most probably), it will give us a detailed error message about what went wrong.



            As a workaround for now, you can remove the last element descriptor for your LIST_ITEM_CLICKED action, i.e., remove the last block in curly brackets (the one that mentions SwipeRefreshLayout) as well as the comma before it. Please let us know if that helped. Thanks!






            share|improve this answer












            As a way to troubleshoot this problem, it would help if you recorded the same actions using Espresso Test Recorder (in Android Studio, Run -> Record Espresso Test) and see if the test has the same issue. If yes (most probably), it will give us a detailed error message about what went wrong.



            As a workaround for now, you can remove the last element descriptor for your LIST_ITEM_CLICKED action, i.e., remove the last block in curly brackets (the one that mentions SwipeRefreshLayout) as well as the comma before it. Please let us know if that helped. Thanks!







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 19 at 18:53









            Stanislav Negara

            711




            711












            • The recorded Espresso test didn't even got to the activity (permission problems). I tried to fix them, but then other problems appeared. I also tried your workaroud, which did not helped. It failed again at the SwipeRefreshLayout.
              – Patrick
              Nov 20 at 12:10












            • What Android Studio version are you using? The most recent one should handle dynamic permission requests (if that was the problem you encountered). It would really help if you could reproduce this problem with an Espresso test, so if you encounter any issues along the way, please let me know. As about Robo script workaround, do you mind replacing the whole block you posted above with the one in the following comment and checking if it works. Thank you!
              – Stanislav Negara
              Nov 20 at 23:29












            • Please see the Robo script block to replace the original one in the following answer.
              – Stanislav Negara
              Nov 20 at 23:45










            • I am using the newest one (v3.2.1). I cannot reproduce it with Espresso, it just fails at running. I tried with the new Robo script block, but it still fails at the same place.
              – Patrick
              Nov 21 at 14:36










            • Thank you for confirming. I am curious if the original problem happens due to dynamic update of the ListView visibility. Do you mind trying to make it permanently visible and checking if the original Robo script works? Also, if you are comfortable with it, do you mind sharing your test matrix execution link for the original Robo script failure such that I can get more insight about it? Thanks!
              – Stanislav Negara
              Nov 21 at 18:51


















            • The recorded Espresso test didn't even got to the activity (permission problems). I tried to fix them, but then other problems appeared. I also tried your workaroud, which did not helped. It failed again at the SwipeRefreshLayout.
              – Patrick
              Nov 20 at 12:10












            • What Android Studio version are you using? The most recent one should handle dynamic permission requests (if that was the problem you encountered). It would really help if you could reproduce this problem with an Espresso test, so if you encounter any issues along the way, please let me know. As about Robo script workaround, do you mind replacing the whole block you posted above with the one in the following comment and checking if it works. Thank you!
              – Stanislav Negara
              Nov 20 at 23:29












            • Please see the Robo script block to replace the original one in the following answer.
              – Stanislav Negara
              Nov 20 at 23:45










            • I am using the newest one (v3.2.1). I cannot reproduce it with Espresso, it just fails at running. I tried with the new Robo script block, but it still fails at the same place.
              – Patrick
              Nov 21 at 14:36










            • Thank you for confirming. I am curious if the original problem happens due to dynamic update of the ListView visibility. Do you mind trying to make it permanently visible and checking if the original Robo script works? Also, if you are comfortable with it, do you mind sharing your test matrix execution link for the original Robo script failure such that I can get more insight about it? Thanks!
              – Stanislav Negara
              Nov 21 at 18:51
















            The recorded Espresso test didn't even got to the activity (permission problems). I tried to fix them, but then other problems appeared. I also tried your workaroud, which did not helped. It failed again at the SwipeRefreshLayout.
            – Patrick
            Nov 20 at 12:10






            The recorded Espresso test didn't even got to the activity (permission problems). I tried to fix them, but then other problems appeared. I also tried your workaroud, which did not helped. It failed again at the SwipeRefreshLayout.
            – Patrick
            Nov 20 at 12:10














            What Android Studio version are you using? The most recent one should handle dynamic permission requests (if that was the problem you encountered). It would really help if you could reproduce this problem with an Espresso test, so if you encounter any issues along the way, please let me know. As about Robo script workaround, do you mind replacing the whole block you posted above with the one in the following comment and checking if it works. Thank you!
            – Stanislav Negara
            Nov 20 at 23:29






            What Android Studio version are you using? The most recent one should handle dynamic permission requests (if that was the problem you encountered). It would really help if you could reproduce this problem with an Espresso test, so if you encounter any issues along the way, please let me know. As about Robo script workaround, do you mind replacing the whole block you posted above with the one in the following comment and checking if it works. Thank you!
            – Stanislav Negara
            Nov 20 at 23:29














            Please see the Robo script block to replace the original one in the following answer.
            – Stanislav Negara
            Nov 20 at 23:45




            Please see the Robo script block to replace the original one in the following answer.
            – Stanislav Negara
            Nov 20 at 23:45












            I am using the newest one (v3.2.1). I cannot reproduce it with Espresso, it just fails at running. I tried with the new Robo script block, but it still fails at the same place.
            – Patrick
            Nov 21 at 14:36




            I am using the newest one (v3.2.1). I cannot reproduce it with Espresso, it just fails at running. I tried with the new Robo script block, but it still fails at the same place.
            – Patrick
            Nov 21 at 14:36












            Thank you for confirming. I am curious if the original problem happens due to dynamic update of the ListView visibility. Do you mind trying to make it permanently visible and checking if the original Robo script works? Also, if you are comfortable with it, do you mind sharing your test matrix execution link for the original Robo script failure such that I can get more insight about it? Thanks!
            – Stanislav Negara
            Nov 21 at 18:51




            Thank you for confirming. I am curious if the original problem happens due to dynamic update of the ListView visibility. Do you mind trying to make it permanently visible and checking if the original Robo script works? Also, if you are comfortable with it, do you mind sharing your test matrix execution link for the original Robo script failure such that I can get more insight about it? Thanks!
            – Stanislav Negara
            Nov 21 at 18:51












            up vote
            0
            down vote













            {
            "eventType": "LIST_ITEM_CLICKED",
            "timestamp": 1542633892083,
            "replacementText": "",
            "actionCode": -1,
            "delayTime": 0,
            "canScrollTo": false,
            "elementDescriptors": [
            {
            "className": "android.widget.LinearLayout",
            "recyclerViewChildPosition": -1,
            "adapterViewChildPosition": 0,
            "groupViewChildPosition": -1,
            "resourceId": "de.tarent.ngop.android.debug:id/ll_auftrag_list_item_container",
            "contentDescription": "",
            "text": ""
            }
            ]
            },





            share|improve this answer

























              up vote
              0
              down vote













              {
              "eventType": "LIST_ITEM_CLICKED",
              "timestamp": 1542633892083,
              "replacementText": "",
              "actionCode": -1,
              "delayTime": 0,
              "canScrollTo": false,
              "elementDescriptors": [
              {
              "className": "android.widget.LinearLayout",
              "recyclerViewChildPosition": -1,
              "adapterViewChildPosition": 0,
              "groupViewChildPosition": -1,
              "resourceId": "de.tarent.ngop.android.debug:id/ll_auftrag_list_item_container",
              "contentDescription": "",
              "text": ""
              }
              ]
              },





              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                {
                "eventType": "LIST_ITEM_CLICKED",
                "timestamp": 1542633892083,
                "replacementText": "",
                "actionCode": -1,
                "delayTime": 0,
                "canScrollTo": false,
                "elementDescriptors": [
                {
                "className": "android.widget.LinearLayout",
                "recyclerViewChildPosition": -1,
                "adapterViewChildPosition": 0,
                "groupViewChildPosition": -1,
                "resourceId": "de.tarent.ngop.android.debug:id/ll_auftrag_list_item_container",
                "contentDescription": "",
                "text": ""
                }
                ]
                },





                share|improve this answer












                {
                "eventType": "LIST_ITEM_CLICKED",
                "timestamp": 1542633892083,
                "replacementText": "",
                "actionCode": -1,
                "delayTime": 0,
                "canScrollTo": false,
                "elementDescriptors": [
                {
                "className": "android.widget.LinearLayout",
                "recyclerViewChildPosition": -1,
                "adapterViewChildPosition": 0,
                "groupViewChildPosition": -1,
                "resourceId": "de.tarent.ngop.android.debug:id/ll_auftrag_list_item_container",
                "contentDescription": "",
                "text": ""
                }
                ]
                },






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 20 at 23:44









                Stanislav Negara

                711




                711






















                    Patrick is a new contributor. Be nice, and check out our Code of Conduct.










                     

                    draft saved


                    draft discarded


















                    Patrick is a new contributor. Be nice, and check out our Code of Conduct.













                    Patrick is a new contributor. Be nice, and check out our Code of Conduct.












                    Patrick is a new contributor. Be nice, and check out our Code of Conduct.















                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53376547%2frobo-script-aborts-when-using-swiperefreshlayout%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    404 Error Contact Form 7 ajax form submitting

                    How to know if a Active Directory user can login interactively

                    Refactoring coordinates for Minecraft Pi buildings written in Python