mkorpela / pabot

Parallel executor for Robot Framework test cases.
https://pabot.org
Apache License 2.0
476 stars 152 forks source link

Cannot use Browser library as shared library #602

Open Pawci3oo opened 2 weeks ago

Pawci3oo commented 2 weeks ago

I would like to use the Browser library as a shared library with all executions.

SuiteA.robot

*** Settings ***
Library    pabot.SharedLibrary    Browser

*** Test Cases ***
TestA
    New Browser    chromium
    [Tags]    test

Command: pabot --processes 1 --pabotlib --verbose --loglevel DEBUG --include test *\*\Suite*.robot

Result:

'str' object has no attribute 'name'
Traceback (most recent call last):
  File "C:\Python311\Lib\site-packages\Browser\browser.py", line 1176, in run_keyword
    raise e
  File "C:\Python311\Lib\site-packages\Browser\browser.py", line 1165, in run_keyword
    return DynamicCore.run_keyword(self, name, args, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python311\Lib\site-packages\robotlibcore.py", line 173, in run_keyword
    return self.keywords[name](*args, **(kwargs or {}))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python311\Lib\site-packages\Browser\keywords\playwright_state.py", line 421, in new_browser
    with self.playwright.grpc_channel() as stub:
  File "C:\Python311\Lib\contextlib.py", line 155, in __exit__
    self.gen.throw(typ, value, traceback)
  File "C:\Python311\Lib\site-packages\Browser\playwright.py", line 178, in grpc_channel
    raise AssertionError(str(error))

Pabot: 2.18.0 RobotFramework: 7.1.1 Browser: 18.9.1