Skip to content

Commit

Permalink
feat: only check for node when robot is running
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael SMADJA committed Aug 22, 2024
1 parent 9f165fd commit c1abc8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Browser/playwright.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
from .base import LibraryComponent
from .utils import AutoClosingLevel

from robot.libraries.BuiltIn import BuiltIn

if TYPE_CHECKING:
from .browser import Browser

Expand All @@ -50,7 +52,8 @@ def __init__(
):
LibraryComponent.__init__(self, library)
self.enable_playwright_debug = enable_playwright_debug
self.ensure_node_dependencies()
if BuiltIn().robot_running:
self.ensure_node_dependencies()
self.port = str(port) if port else None
self.playwright_log = playwright_log

Expand Down

0 comments on commit c1abc8c

Please sign in to comment.