How to Scroll to “Watches sections” Appium











up vote
1
down vote

favorite












My scroll here is scrolling all the way to bottom.



But I need to scroll down to "Watches section",which I am not able to perform.



    loginpage.getMensFashionList().click();//clicks on Mens Fashion
//Scroll to watches section.
driver.findElementByAndroidUIAutomator("new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().textMatches("Watches").instance(0))");


After clicking on mens' fashion, I need to scroll to watches section as I am intrested in watches.



Below is the image of watches section:
enter image description here



need help to scroll only till watches section.



UI automator










share|improve this question




























    up vote
    1
    down vote

    favorite












    My scroll here is scrolling all the way to bottom.



    But I need to scroll down to "Watches section",which I am not able to perform.



        loginpage.getMensFashionList().click();//clicks on Mens Fashion
    //Scroll to watches section.
    driver.findElementByAndroidUIAutomator("new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().textMatches("Watches").instance(0))");


    After clicking on mens' fashion, I need to scroll to watches section as I am intrested in watches.



    Below is the image of watches section:
    enter image description here



    need help to scroll only till watches section.



    UI automator










    share|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      My scroll here is scrolling all the way to bottom.



      But I need to scroll down to "Watches section",which I am not able to perform.



          loginpage.getMensFashionList().click();//clicks on Mens Fashion
      //Scroll to watches section.
      driver.findElementByAndroidUIAutomator("new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().textMatches("Watches").instance(0))");


      After clicking on mens' fashion, I need to scroll to watches section as I am intrested in watches.



      Below is the image of watches section:
      enter image description here



      need help to scroll only till watches section.



      UI automator










      share|improve this question















      My scroll here is scrolling all the way to bottom.



      But I need to scroll down to "Watches section",which I am not able to perform.



          loginpage.getMensFashionList().click();//clicks on Mens Fashion
      //Scroll to watches section.
      driver.findElementByAndroidUIAutomator("new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().textMatches("Watches").instance(0))");


      After clicking on mens' fashion, I need to scroll to watches section as I am intrested in watches.



      Below is the image of watches section:
      enter image description here



      need help to scroll only till watches section.



      UI automator







      java appium






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 7 at 13:33

























      asked Nov 7 at 9:05









      sai Pawar

      198




      198
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          driver.findElement(MobileBy.AndroidUIAutomator(
          "new UiScrollable(new UiSelector().resourceId("your scrollable list id")).scrollIntoView("
          + "new UiSelector().textContains("Watches").instance(1))"));





          share|improve this answer





















          • can you please help me where I can find scroll able resource id,I am new to appium ,please help
            – sai Pawar
            Nov 7 at 12:58












          • you can see it in uiautomatorviewer top right section where you can find list of elements,
            – Suban Dhyako
            Nov 7 at 13:22










          • currently resource id is blank..attached screenshot of uiautomator in description..please check and help me in this regards
            – sai Pawar
            Nov 7 at 13:35












          • I tried with this below code:driver.findElement(MobileBy.AndroidUIAutomator( "new UiScrollable(new UiSelector().resourceId("in.amazon.mShop.android.shopping:id/mash_web_fragment")).scrollIntoView(" + "new UiSelector().textContains("Watches ").instance(1))")); But it didnt work
            – sai Pawar
            Nov 7 at 13:48











          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
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53186317%2fhow-to-scroll-to-watches-sections-appium%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          driver.findElement(MobileBy.AndroidUIAutomator(
          "new UiScrollable(new UiSelector().resourceId("your scrollable list id")).scrollIntoView("
          + "new UiSelector().textContains("Watches").instance(1))"));





          share|improve this answer





















          • can you please help me where I can find scroll able resource id,I am new to appium ,please help
            – sai Pawar
            Nov 7 at 12:58












          • you can see it in uiautomatorviewer top right section where you can find list of elements,
            – Suban Dhyako
            Nov 7 at 13:22










          • currently resource id is blank..attached screenshot of uiautomator in description..please check and help me in this regards
            – sai Pawar
            Nov 7 at 13:35












          • I tried with this below code:driver.findElement(MobileBy.AndroidUIAutomator( "new UiScrollable(new UiSelector().resourceId("in.amazon.mShop.android.shopping:id/mash_web_fragment")).scrollIntoView(" + "new UiSelector().textContains("Watches ").instance(1))")); But it didnt work
            – sai Pawar
            Nov 7 at 13:48















          up vote
          0
          down vote













          driver.findElement(MobileBy.AndroidUIAutomator(
          "new UiScrollable(new UiSelector().resourceId("your scrollable list id")).scrollIntoView("
          + "new UiSelector().textContains("Watches").instance(1))"));





          share|improve this answer





















          • can you please help me where I can find scroll able resource id,I am new to appium ,please help
            – sai Pawar
            Nov 7 at 12:58












          • you can see it in uiautomatorviewer top right section where you can find list of elements,
            – Suban Dhyako
            Nov 7 at 13:22










          • currently resource id is blank..attached screenshot of uiautomator in description..please check and help me in this regards
            – sai Pawar
            Nov 7 at 13:35












          • I tried with this below code:driver.findElement(MobileBy.AndroidUIAutomator( "new UiScrollable(new UiSelector().resourceId("in.amazon.mShop.android.shopping:id/mash_web_fragment")).scrollIntoView(" + "new UiSelector().textContains("Watches ").instance(1))")); But it didnt work
            – sai Pawar
            Nov 7 at 13:48













          up vote
          0
          down vote










          up vote
          0
          down vote









          driver.findElement(MobileBy.AndroidUIAutomator(
          "new UiScrollable(new UiSelector().resourceId("your scrollable list id")).scrollIntoView("
          + "new UiSelector().textContains("Watches").instance(1))"));





          share|improve this answer












          driver.findElement(MobileBy.AndroidUIAutomator(
          "new UiScrollable(new UiSelector().resourceId("your scrollable list id")).scrollIntoView("
          + "new UiSelector().textContains("Watches").instance(1))"));






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 7 at 12:32









          Suban Dhyako

          480112




          480112












          • can you please help me where I can find scroll able resource id,I am new to appium ,please help
            – sai Pawar
            Nov 7 at 12:58












          • you can see it in uiautomatorviewer top right section where you can find list of elements,
            – Suban Dhyako
            Nov 7 at 13:22










          • currently resource id is blank..attached screenshot of uiautomator in description..please check and help me in this regards
            – sai Pawar
            Nov 7 at 13:35












          • I tried with this below code:driver.findElement(MobileBy.AndroidUIAutomator( "new UiScrollable(new UiSelector().resourceId("in.amazon.mShop.android.shopping:id/mash_web_fragment")).scrollIntoView(" + "new UiSelector().textContains("Watches ").instance(1))")); But it didnt work
            – sai Pawar
            Nov 7 at 13:48


















          • can you please help me where I can find scroll able resource id,I am new to appium ,please help
            – sai Pawar
            Nov 7 at 12:58












          • you can see it in uiautomatorviewer top right section where you can find list of elements,
            – Suban Dhyako
            Nov 7 at 13:22










          • currently resource id is blank..attached screenshot of uiautomator in description..please check and help me in this regards
            – sai Pawar
            Nov 7 at 13:35












          • I tried with this below code:driver.findElement(MobileBy.AndroidUIAutomator( "new UiScrollable(new UiSelector().resourceId("in.amazon.mShop.android.shopping:id/mash_web_fragment")).scrollIntoView(" + "new UiSelector().textContains("Watches ").instance(1))")); But it didnt work
            – sai Pawar
            Nov 7 at 13:48
















          can you please help me where I can find scroll able resource id,I am new to appium ,please help
          – sai Pawar
          Nov 7 at 12:58






          can you please help me where I can find scroll able resource id,I am new to appium ,please help
          – sai Pawar
          Nov 7 at 12:58














          you can see it in uiautomatorviewer top right section where you can find list of elements,
          – Suban Dhyako
          Nov 7 at 13:22




          you can see it in uiautomatorviewer top right section where you can find list of elements,
          – Suban Dhyako
          Nov 7 at 13:22












          currently resource id is blank..attached screenshot of uiautomator in description..please check and help me in this regards
          – sai Pawar
          Nov 7 at 13:35






          currently resource id is blank..attached screenshot of uiautomator in description..please check and help me in this regards
          – sai Pawar
          Nov 7 at 13:35














          I tried with this below code:driver.findElement(MobileBy.AndroidUIAutomator( "new UiScrollable(new UiSelector().resourceId("in.amazon.mShop.android.shopping:id/mash_web_fragment")).scrollIntoView(" + "new UiSelector().textContains("Watches ").instance(1))")); But it didnt work
          – sai Pawar
          Nov 7 at 13:48




          I tried with this below code:driver.findElement(MobileBy.AndroidUIAutomator( "new UiScrollable(new UiSelector().resourceId("in.amazon.mShop.android.shopping:id/mash_web_fragment")).scrollIntoView(" + "new UiSelector().textContains("Watches ").instance(1))")); But it didnt work
          – sai Pawar
          Nov 7 at 13:48


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53186317%2fhow-to-scroll-to-watches-sections-appium%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







          這個網誌中的熱門文章

          Tangent Lines Diagram Along Smooth Curve

          Yusuf al-Mu'taman ibn Hud

          Zucchini