# Help, How to execute SeleniumLibrary with Remote

**URL:** <https://forum.robotframework.org/t/help-how-to-execute-seleniumlibrary-with-remote/1701>\
**Category:** SeleniumLibrary\
**Created:** [29 April 2021 06:24 UTC](https://forum.robotframework.org/t/help-how-to-execute-seleniumlibrary-with-remote/1701 "2021-04-29T06:24:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hibayo](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/hibayo/32/713_2.png) [@hibayo](https://forum.robotframework.org/u/hibayo)\
**Post date:** [29 April 2021 06:24 UTC](https://forum.robotframework.org/t/help-how-to-execute-seleniumlibrary-with-remote/1701/1 "2021-04-29T06:24:21Z")

</div>

I tried it using Remote ExampleLibrary.py  
But, It Occured Error.

What is the problem?  
Is there any way to fix it?

> python ExampleLibrary.py TestIP PORT  
> #!/usr/bin/env python

from **future** import print\_function

import os  
import sys

from robotremoteserver import RobotRemoteServer  
from SeleniumLibrary import SeleniumLibrary

try:  
basestring  
except NameError: # Python 3  
basestring = str

class ExampleLibrary(SeleniumLibrary):  
“”“Example library to be used with Robot Framework’s remote server.  
This documentation is visible in docs generated by `Libdoc`.  
“””  
def **init** (self):  
SeleniumLibrary. **init** (self)

# if **name** == ‘ **main** ’: RobotRemoteServer(ExampleLibrary(), \*sys.argv[1:])

> > Outout

* * *

## Traceback (most recent call last): File “selen.py”, line 26, in RobotRemoteServer(ExampleLibrary(), \*sys.argv[1:]) File “C:\Users\test\AppData\Local\Programs\Python\Python38-32\lib\site-packages\robotremoteserver.py”, line 73, in **init** self.\_library = RemoteLibraryFactory(library) File “C:\Users\test\AppData\Local\Programs\Python\Python38-32\lib\site-packages\robotremoteserver.py”, line 259, in RemoteLibraryFactory return DynamicRemoteLibrary(library, get\_keyword\_names, run\_keyword) File “C:\Users\test\AppData\Local\Programs\Python\Python38-32\lib\site-packages\robotremoteserver.py”, line 362, in **init** HybridRemoteLibrary. **init** (self, library, get\_keyword\_names) File “C:\Users\test\AppData\Local\Programs\Python\Python38-32\lib\site-packages\robotremoteserver.py”, line 355, in **init** StaticRemoteLibrary. **init** (self, library) File “C:\Users\test\AppData\Local\Programs\Python\Python38-32\lib\site-packages\robotremoteserver.py”, line 280, in **init** self.\_names, self.\_robot\_name\_index = self.\_get\_keyword\_names(library) File “C:\Users\test\AppData\Local\Programs\Python\Python38-32\lib\site-packages\robotremoteserver.py”, line 285, in _get\_keyword\_names for name, kw in inspect.getmembers(library): File “C:\Users\test\AppData\Local\Programs\Python\Python38-32\lib\inspect.py”, line 350, in getmembers value = getattr(object, key) File "C:\Users\test\AppData\Local\Programs\Python\Python38-32\lib\site-packages\SeleniumLibrary\_init_.py", line 563, in driver raise NoOpenBrowser(“No browser is open.”) SeleniumLibrary.errors.NoOpenBrowser: No browser is open.

- robotframework 4.0
- robotframework-autoitlibrary 1.2.7
- robotframework-pythonlibcore 2.2.1
- robotframework-ride 2.0b1
- robotframework-seleniumlibrary 5.1.3
- robotremoteserver 1.1
- selenium 4.0.0b2.post1

---

<div class="post-metadata">

**Author:** ![leorush](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/leorush/32/84_2.png) [@leorush](https://forum.robotframework.org/u/leorush)\
**Post date:** [29 April 2021 07:59 UTC](https://forum.robotframework.org/t/help-how-to-execute-seleniumlibrary-with-remote/1701/2 "2021-04-29T07:59:02Z")

</div>

Look here

> [@How to add Selenium Arg. in addition to chrome arg](https://forum.robotframework.org/t/how-to-add-selenium-arg-in-addition-to-chrome-arg/1639/2):
>
> Selenoid example. Create file (for example test.py) and paste this: from selenium import webdriver firefox\_options = webdriver.firefox.options.Options() firefox\_options.set\_preference("devtools.toolbox.footer.height", 0) firefox\_options.set\_preference("devtools.netmonitor.persistlog", True) firefox\_options.set\_preference("devtools.toolbox.selectedTool", "netmonitor") firefox\_options.add\_argument("--devtools") firefox\_options.add\_argument("--profile") firefox\_options.add\_argument("./Temp/profil…

---

<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:** [7 May 2021 08:01 UTC](https://forum.robotframework.org/t/help-how-to-execute-seleniumlibrary-with-remote/1701/3 "2021-05-07T08:01:12Z")

</div>

SeleniumLibrary can not be used with Python remote server, because bug in Python remote server. SeleniumLibrary uses dynamic library API, but Python remove server tries to discover keywords with static library API. This should be fixes in Python remote server side.

Please raise an issue to the Python remote server issue tracker if one does not already exist.

---

<div class="post-metadata">

**Author:** ![Abhi1996](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@Abhi1996](https://forum.robotframework.org/u/Abhi1996)\
**Post date:** [30 March 2023 09:58 UTC](https://forum.robotframework.org/t/help-how-to-execute-seleniumlibrary-with-remote/1701/4 "2023-03-30T09:58:12Z")

</div>

Hi, pls let me know if there is a solution for this or at least point to the direction.

or still SeleniumLibrary can not be used with Python remote server

Trying to use SeleniumLibrary with RobotRemoteServer.
