# SAP Application

**URL:** <https://forum.robotframework.org/t/sap-application/7333>\
**Category:** Libraries\
**Created:** [28 May 2024 09:01 UTC](https://forum.robotframework.org/t/sap-application/7333 "2024-05-28T09:01:05Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ttz-78](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/ttz-78/32/3840_2.png) [@ttz-78](https://forum.robotframework.org/u/ttz-78)\
**Post date:** [28 May 2024 09:01 UTC](https://forum.robotframework.org/t/sap-application/7333/1 "2024-05-28T09:01:05Z")

</div>

Hi I am using SAP application. I would wish to scroll to a particular element and click it. I used built in keyword but scroll is not happening. Can someone advise me pls

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [28 May 2024 11:16 UTC](https://forum.robotframework.org/t/sap-application/7333/2 "2024-05-28T11:16:34Z")

</div>

Hi Thushar,

1. Is the element you want to scroll to inside a frame? (Noting [your previous SAP frames issue](https://forum.robotframework.org/t/automating-a-sap-web-application/7271/11))  
You may need to ensure you are in the frame that contains the element before scrolling to it

2. do you need to scroll to the right (or left) to get to the element? If so @rasjani made a comment in [this thread](https://forum.robotframework.org/t/zooming-out-a-website/7285/3) that scroll to element may not work with horizontal scrolling.

Hopefully one of those helps you find the issue,

Dave.

---

<div class="post-metadata">

**Author:** ![ttz-78](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/ttz-78/32/3840_2.png) [@ttz-78](https://forum.robotframework.org/u/ttz-78)\
**Post date:** [28 May 2024 17:01 UTC](https://forum.robotframework.org/t/sap-application/7333/3 "2024-05-28T17:01:37Z")

</div>

sorry for delay. i checked the frame part, i m supposed to scroll vertically

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [28 May 2024 22:35 UTC](https://forum.robotframework.org/t/sap-application/7333/4 "2024-05-28T22:35:58Z")

</div>

Hi Thushar,

What error did you get from `Scroll Element Into View` when you tried to scroll to the element? That might give a clue to the problem, right now I can only make guesses.

Dave.

---

<div class="post-metadata">

**Author:** ![ttz-78](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/ttz-78/32/3840_2.png) [@ttz-78](https://forum.robotframework.org/u/ttz-78)\
**Post date:** [29 May 2024 03:25 UTC](https://forum.robotframework.org/t/sap-application/7333/5 "2024-05-29T03:25:53Z")

</div>

Hi Dave,

There is no error as such. I give Scroll Element to View and then the locator The execution stands still for sometime and then throws an info saying locator not found.

I tried using Execute JavaScript document.getElementByID(“Idname”).scrollToView(true)  
same , if the element is not in view it says locator not found. If element is in view click action happens.

---

<div class="post-metadata">

**Author:** ![CharlieScene](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/charliescene/32/3484_2.png) [@CharlieScene](https://forum.robotframework.org/u/CharlieScene)\
**Post date:** [29 May 2024 05:00 UTC](https://forum.robotframework.org/t/sap-application/7333/6 "2024-05-29T05:00:03Z")

</div>

Hi,

As mentionned here :

> [@Zooming out a website](https://forum.robotframework.org/t/zooming-out-a-website/7285/5):
>
> At least one of the “issues” i had with scroll element to view was that it just brings the element into viewport but if the page has a toast/static footer that has higher Z order than anything else, interactions where still failing because that toast was still on top of my element i was trying to scroll into view. Another “possible” issue was that even without a toast, scrolling the viewport ended if even 1 pixel row of the element was already in the viewport. But about this one I’m not sure i…

Sometimes the Scroll just brings the top of the element in page and stops.  
Then either it is not really interactable, or visually hidden (behind a footer).

When you debug step by step behavior, does the element really appear fully on the screen ? It’s not clear if your error is on scroll action or click, but :

If yes i.e. scroll works, click fails:

- Maybe the xpath/locator to scroll can not be the same for click (use axes maybe like parent, ancestor…)
- Click action is too fast, you would use a Wait that element is visible or enabled
- The element is not fully in the page, so maybe again use axes to point out the next element to add some kind of scroll offset

If scroll fails :

- As previous first point, locator to click might not be the same to scroll and need adjustment
- The path/locator might not be wrong, but doesn’t act on what you expect (scroll an upper or wider element already visible for example)

Regards  
Charlie

---

<div class="post-metadata">

**Author:** ![Zackx](https://avatars.discourse-cdn.com/v4/letter/z/839c29/32.png) [@Zackx](https://forum.robotframework.org/u/Zackx)\
**Post date:** [30 May 2024 10:13 UTC](https://forum.robotframework.org/t/sap-application/7333/7 "2024-05-30T10:13:07Z")

</div>

I would suggest using the Selenium Library.

[https://robotframework.org/SeleniumLibrary/SeleniumLibrary.html#Scroll%20Element%20Into%20View](https://robotframework.org/SeleniumLibrary/SeleniumLibrary.html#Scroll%20Element%20Into%20View)

Run Keyword And Ignore Error Scroll Element Into View yourelementhere

Maybe someone else has a better solution, as i am a newbie myself.  
Let me know if it worked.

---

<div class="post-metadata">

**Author:** ![ttz-78](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/ttz-78/32/3840_2.png) [@ttz-78](https://forum.robotframework.org/u/ttz-78)\
**Post date:** [31 May 2024 04:06 UTC](https://forum.robotframework.org/t/sap-application/7333/8 "2024-05-31T04:06:39Z")

</div>

Team,

Thank you so much for the input shared, actually its scroll that is not working. I did a debugging and its scroll thats not working.  
For now I did a work around and moved on but its scroll thats the issue.

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [31 May 2024 06:31 UTC](https://forum.robotframework.org/t/sap-application/7333/9 "2024-05-31T06:31:52Z")

</div>

Hi Thushar,

You didn’t mention is it vertical (up and down) or horizontal (left and right) scrolling that’s not working?

Dave.

---

<div class="post-metadata">

**Author:** ![ttz-78](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/ttz-78/32/3840_2.png) [@ttz-78](https://forum.robotframework.org/u/ttz-78)\
**Post date:** [31 May 2024 09:46 UTC](https://forum.robotframework.org/t/sap-application/7333/10 "2024-05-31T09:46:01Z")

</div>

Hi Dave,

It was vertical scroll
