# Which abstraction level for JS keywords?

**URL:** <https://forum.robotframework.org/t/which-abstraction-level-for-js-keywords/7456>\
**Category:** Browser\
**Created:** [19 June 2024 20:18 UTC](https://forum.robotframework.org/t/which-abstraction-level-for-js-keywords/7456 "2024-06-19T20:18:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noordsestern](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/noordsestern/32/4270_2.png) [@Noordsestern](https://forum.robotframework.org/u/Noordsestern)\
**Post date:** [19 June 2024 20:18 UTC](https://forum.robotframework.org/t/which-abstraction-level-for-js-keywords/7456/1 "2024-06-19T20:18:31Z")

</div>

Hello,

It is possible to [extend Browser library with javascript keywords](https://marketsquare.github.io/robotframework-browser/Browser.html#Extending%20Browser%20library%20with%20a%20JavaScript%20module).

I wonder how small or complex these javascript should be. Should I make them rather technical and construct compound keywords in robot? I can imagine that switching a lot between robot and javascript may have consequence.  
On the other hand, if i make bigger keywords in javascript, i may loose debug options.

What do you recommend?

Regards,  
Markus

---

<div class="post-metadata">

**Author:** ![falcon030](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/falcon030/32/3420_2.png) [@falcon030](https://forum.robotframework.org/u/falcon030)\
**Post date:** [19 June 2024 20:53 UTC](https://forum.robotframework.org/t/which-abstraction-level-for-js-keywords/7456/2 "2024-06-19T20:53:24Z")

</div>

Maybe you can get some inspiration from these Browser extension, if you haven’t found them already 😃? [GitHub - MarketSquare/robotframework-browser-extensions: Collection of working extensions for Robot Framework® Browser](https://github.com/MarketSquare/robotframework-browser-extensions)
