# scrollToText not working on ios

**URL:** <https://forum.katalon.com/t/scrolltotext-not-working-on-ios/39385>\
**Category:** Mobile Testing\
**Tags:** mobile-testing, katalon-studio\
**Created:** [February 3, 2020, 5:01pm UTC](https://forum.katalon.com/t/scrolltotext-not-working-on-ios/39385 "2020-02-03T17:01:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anthony.ierace](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@anthony.ierace](https://forum.katalon.com/u/anthony.ierace)\
**Post date:** [February 3, 2020, 5:01pm UTC](https://forum.katalon.com/t/scrolltotext-not-working-on-ios/39385/1 "2020-02-03T17:01:26Z")

</div>

Hi there,

I’m actually writing some test for Android and iOS applications.  
After multiple test it appears that scrollToText seems to not working on iOS (but it work perfectly on Android).

I’m using :

- Appium : 1.15
- iOS : 11.2.5
- Katalon : 7.2.1
- Running on MacOS 10.14.6

Does anybody have encountered this issue before ? There is no error log, the test just stop at this line and stay there an infinite time!

Here is the line of code

`Mobile.scrollToText(myChannel[i])`

Where myChannel is an array with all the string I want to scroll to.

I’ll be glad if someone has already see this issue and know how to fix it!

Thank you

**UPDATE :**  
I just figure that my ios element don’t have any “text” property but only “label”, “name”, and “value”. So my question now is, do you know if there is a other way to scroll to an element or do I have to implement my own solution ?

---

<div class="post-metadata">

**Author:** ![basheera.kaladgi](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@basheera.kaladgi](https://forum.katalon.com/u/basheera.kaladgi)\
**Post date:** [February 4, 2020, 9:06am UTC](https://forum.katalon.com/t/scrolltotext-not-working-on-ios/39385/2 "2020-02-04T09:06:46Z")

</div>

use action  
import org.openqa.selenium.interactions.Actions as Actions

Actions action = new Actions(driver)  
action.moveToElement(YourElement-here).perform()

---

<div class="post-metadata">

**Author:** ![anthony.ierace](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@anthony.ierace](https://forum.katalon.com/u/anthony.ierace)\
**Post date:** [February 4, 2020, 1:35pm UTC](https://forum.katalon.com/t/scrolltotext-not-working-on-ios/39385/3 "2020-02-04T13:35:55Z")

</div>

Thank you for the answer ! But I’m new in this kind of development so could you please details what “driver” is ? I assume it’s `AppiumDriver<?> driver = MobileDriverFactory.getDriver()` ?

And how am I suppose to pass the element ? I’ve tried this but it’s not working

`TestObject testObject = new TestObject()`  
`testObject.addProperty("value", ConditionType.EQUALS, myChannel[i])`  
`action.moveToElement(testObject)`

The error says that it don’t recognize the signature and propose me to try with a webElement (Which I don’t have because I’m on iOS…)

---

<div class="post-metadata">

**Author:** ![rdoshi](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@rdoshi](https://forum.katalon.com/u/rdoshi)\
**Post date:** [February 4, 2020, 3:48pm UTC](https://forum.katalon.com/t/scrolltotext-not-working-on-ios/39385/4 "2020-02-04T15:48:46Z")

</div>

Hi @anthony.ierace  
I’m also facing the same issue and I tried adding text Properties with value to one of the Object but still Katalon is not able to identify and my test case keeps on failing with "Unable to scroll to text ‘Certification’ "  
Error: Failed to perform scroll with visible cell due to max scroll count reached

---

<div class="post-metadata">

**Author:** ![basheera.kaladgi](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@basheera.kaladgi](https://forum.katalon.com/u/basheera.kaladgi)\
**Post date:** [February 5, 2020, 4:37am UTC](https://forum.katalon.com/t/scrolltotext-not-working-on-ios/39385/5 "2020-02-05T04:37:59Z")

</div>

Hi,

As i use WebDriver, Here is my code. This scrolls in the page till the object.

```
    WebDriver driver = DriverFactory.getWebDriver()
Actions action = new Actions(driver)
action.moveToElement(driver.findElement(By.xpath("YOURXPATH"))).perform()
```
