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:
need help to scroll only till watches section.
java appium
add a comment |
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:
need help to scroll only till watches section.
java appium
add a comment |
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:
need help to scroll only till watches section.
java appium
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:
need help to scroll only till watches section.
java appium
java appium
edited Nov 7 at 13:33
asked Nov 7 at 9:05
sai Pawar
198
198
add a comment |
add a comment |
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))"));
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
add a comment |
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))"));
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
add a comment |
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))"));
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
add a comment |
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))"));
driver.findElement(MobileBy.AndroidUIAutomator(
"new UiScrollable(new UiSelector().resourceId("your scrollable list id")).scrollIntoView("
+ "new UiSelector().textContains("Watches").instance(1))"));
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
add a comment |
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
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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