# Approach towards calling a RF keyword when page is detected

**URL:** <https://discuss.appium.io/t/approach-towards-calling-a-rf-keyword-when-page-is-detected/42338>\
**Category:** Feature\
**Created:** [April 24, 2024, 1:32pm UTC](https://discuss.appium.io/t/approach-towards-calling-a-rf-keyword-when-page-is-detected/42338 "2024-04-24T13:32:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anu93](https://discuss.appium.io/user_avatar/discuss.appium.io/anu93/32/12878_2.png) [@Anu93](https://discuss.appium.io/u/Anu93)\
**Post date:** [April 24, 2024, 1:32pm UTC](https://discuss.appium.io/t/approach-towards-calling-a-rf-keyword-when-page-is-detected/42338/1 "2024-04-24T13:32:48Z")

</div>

Hi,

I am currently running android test automation with appium, Robotframework and Python.  
Scenario: We have implemented new feature - App Pin. Which would show up after X seconds soon after the app opens. Now I need to adapt this new feature to all my existing test cases.

One way I can think is, Create a custom Robotframework keyword for app pin and use it where ever necessary. One thing I dont like about this approach is that I am hardcoding the keyword according to the timing the App pin page being showed up.

I was wondering if there is any other approach such that if appium itself detects that page, the keyword is called in?

Please let me know. Thank you!

---

<div class="post-metadata">

**Author:** ![wreed](https://discuss.appium.io/letter_avatar_proxy/v4/letter/w/919ad9/32.png) [@wreed](https://discuss.appium.io/u/wreed)\
**Post date:** [April 24, 2024, 3:51pm UTC](https://discuss.appium.io/t/approach-towards-calling-a-rf-keyword-when-page-is-detected/42338/2 "2024-04-24T15:51:05Z")

</div>

I think you might be better served asking this question on the Robot Framework forum:

> **[Robot Framework](https://forum.robotframework.org/)**
>
> This is the Community of the great Robot Framework Ecosystem!
