# Getting the Page Instance

**URL:** <https://forum.robotframework.org/t/getting-the-page-instance/5733>\
**Category:** Browser\
**Created:** [23 May 2023 09:46 UTC](https://forum.robotframework.org/t/getting-the-page-instance/5733 "2023-05-23T09:46:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![terry.jp](https://avatars.discourse-cdn.com/v4/letter/t/e19b73/32.png) [@terry.jp](https://forum.robotframework.org/u/terry.jp)\
**Post date:** [23 May 2023 09:46 UTC](https://forum.robotframework.org/t/getting-the-page-instance/5733/1 "2023-05-23T09:46:14Z")

</div>

I need to get the [`playwright.sync_api.Page`](https://playwright.dev/python/docs/api/class-page) instance that is being used by Browser so that I can pass this to an SDK and create my own custom Keyword that I am trying to incorporate into my code.

Is there any way of doing this or is it on the roadmap?

---

<div class="post-metadata">

**Author:** ![JaPyR](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/japyr/32/756_2.png) [@JaPyR](https://forum.robotframework.org/u/JaPyR)\
**Post date:** [23 May 2023 11:25 UTC](https://forum.robotframework.org/t/getting-the-page-instance/5733/2 "2023-05-23T11:25:47Z")

</div>

Take a look at extending Browser library with javascript module:  
[https://marketsquare.github.io/robotframework-browser/Browser.html#Extending%20Browser%20library%20with%20a%20JavaScript%20module](https://marketsquare.github.io/robotframework-browser/Browser.html#Extending%20Browser%20library%20with%20a%20JavaScript%20module)

---

<div class="post-metadata">

**Author:** ![terry.jp](https://avatars.discourse-cdn.com/v4/letter/t/e19b73/32.png) [@terry.jp](https://forum.robotframework.org/u/terry.jp)\
**Post date:** [23 May 2023 11:38 UTC](https://forum.robotframework.org/t/getting-the-page-instance/5733/3 "2023-05-23T11:38:15Z")

</div>

Thanks.

I already have created Keywords extending the library with javascript module however the latest thing I am working on is Playwright Python SDK by Applitools.

For the eyes.open function I need to pass in the page instance.

> **[Playwright Python overview | Applitools API reference](https://applitools.com/docs/api-ref/sdk-api/playwright/python/#open)**
>
> This SDK allows you to work with Applitools Eyes using Playwright Python.

---

<div class="post-metadata">

**Author:** ![aaltat](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/aaltat/32/15_2.png) [@aaltat](https://forum.robotframework.org/u/aaltat)\
**Post date:** [24 May 2023 15:35 UTC](https://forum.robotframework.org/t/getting-the-page-instance/5733/4 "2023-05-24T15:35:36Z")

</div>

Hi

The browser, context and page live only in NodeJS side and Browser library doesn’t have objects exposed in Python land.

If Applitool has API in nodeJS side, that could be an option for you.

---

<div class="post-metadata">

**Author:** ![terry.jp](https://avatars.discourse-cdn.com/v4/letter/t/e19b73/32.png) [@terry.jp](https://forum.robotframework.org/u/terry.jp)\
**Post date:** [14 July 2023 09:47 UTC](https://forum.robotframework.org/t/getting-the-page-instance/5733/5 "2023-07-14T09:47:32Z")

</div>

Thank you!

I already had this implemented and had just been hoping to consolidate everything in python.

This is great information to know.

Thanks.
