# Appium cannot scroll when there is a tab with 'selected' attribute 'true'

**URL:** <https://discuss.appium.io/t/appium-cannot-scroll-when-there-is-a-tab-with-selected-attribute-true/39604>\
**Category:** Issues/Bugs\
**Created:** [July 3, 2023, 4:19pm UTC](https://discuss.appium.io/t/appium-cannot-scroll-when-there-is-a-tab-with-selected-attribute-true/39604 "2023-07-03T16:19:46Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Aleksei](https://discuss.appium.io/user_avatar/discuss.appium.io/aleksei/32/6267_2.png) [@Aleksei](https://discuss.appium.io/u/Aleksei)\
**Post date:** [July 4, 2023, 5:24am UTC](https://discuss.appium.io/t/appium-cannot-scroll-when-there-is-a-tab-with-selected-attribute-true/39604/4 "2023-07-04T05:24:08Z")

</div>

> [@Phone\_Thet\_Naing](#):
>
> new UiScrollable(new UiSelector().scrollable(true)).

Means take FIRST scrollable view. In your problematic screen first is HorizontalScrollView with tabs.

You need add id of needed view to scroll. On your screenshot it should be below.

example:

```auto
new UiScrollable(new UiSelector().resourceIdMatches(\".*part_id.*\").scrollable(true)).scrollToEnd(1,5)
// where `part_id` is `tabLayout....` BUT from scrollView below

```

![image](https://discuss.appium.io/uploads/default/original/2X/4/4e2f58c6d1327d87bc57432d1aa5733042cf4b78.png)

---

_[View the full topic](https://discuss.appium.io/t/appium-cannot-scroll-when-there-is-a-tab-with-selected-attribute-true/39604)._
