# How to wrap seleniumlibrary on remotelibrary

**URL:** <https://forum.robotframework.org/t/how-to-wrap-seleniumlibrary-on-remotelibrary/944>\
**Category:** Remote Libraries\
**Created:** [9 November 2020 02:36 UTC](https://forum.robotframework.org/t/how-to-wrap-seleniumlibrary-on-remotelibrary/944 "2020-11-09T02:36:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nixuewei](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/nixuewei/32/1548_2.png) [@nixuewei](https://forum.robotframework.org/u/nixuewei)\
**Post date:** [9 November 2020 02:36 UTC](https://forum.robotframework.org/t/how-to-wrap-seleniumlibrary-on-remotelibrary/944/1 "2020-11-09T02:36:30Z")

</div>

I am working on remotelibrary study. I want to wrap the robotframework library to make all teams used. I succeed to add below code on the bottom of RequestsKeywords and run well. but when i want to add the same code for seleniumlibrary. I don’t know which file I need to add. I am not a profession programer and don’t understand the selenium library structure. I just want to someone help to make the same result as requestlibrary . Thanks

if **name** == ‘ **main** ’:  
import sys  
from robotremoteserver import RobotRemoteServer  
RobotRemoteServer(RequestsKeywords(),‘10.13.69.35’,‘8270’)

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/1X/f3573c81b438e7da407ba54675b946df5b73498d.jpeg)

---

<div class="post-metadata">

**Author:** ![nixuewei](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/nixuewei/32/1548_2.png) [@nixuewei](https://forum.robotframework.org/u/nixuewei)\
**Post date:** [9 November 2020 07:59 UTC](https://forum.robotframework.org/t/how-to-wrap-seleniumlibrary-on-remotelibrary/944/2 "2020-11-09T07:59:26Z")

</div>

also. i can use class inherit for requestslibrary but for selenium. it also feedback maximum recursion depth exceeded  
from robot.libraries.BuiltIn import BuiltIn  
from robotremoteserver import RobotRemoteServer  
from RequestsLibrary import RequestsLibrary

class importresource3(RequestsLibrary):

```
#ROBOT_LIBRARY_VERSION = 1.0

def __init__ (self):
    pass

```

if **name** == ‘ **main** ’:  
RobotRemoteServer(importresource3(), host=‘10.13.69.35’, port=8272)

Selenium Error:  
File “/usr/local/lib/python3.8/site-packages/robotlibcore.py”, line 94, in **dir**  
return sorted(set(my\_attrs) | set(self.attributes))  
File “/usr/local/lib/python3.8/site-packages/robotlibcore.py”, line 84, in **getattr**  
if name in self.attributes:  
File “/usr/local/lib/python3.8/site-packages/robotlibcore.py”, line 84, in **getattr**  
if name in self.attributes:  
File “/usr/local/lib/python3.8/site-packages/robotlibcore.py”, line 84, in **getattr**  
if name in self.attributes:  
[Previous line repeated 984 more times]  
RecursionError: maximum recursion depth exceeded

I change to local call selenium, it still have this issue. it seems I can not inherit the selenium library
