From f3480e03fe1ff0cdac58bcc68ec96876641c63dd Mon Sep 17 00:00:00 2001 From: John Chilton Date: Tue, 17 Mar 2026 13:02:04 -0400 Subject: [PATCH] Move playwright_element imports to top of navigates_galaxy.py Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/galaxy/selenium/navigates_galaxy.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/galaxy/selenium/navigates_galaxy.py b/lib/galaxy/selenium/navigates_galaxy.py index 221da860373..0f67cea82b2 100644 --- a/lib/galaxy/selenium/navigates_galaxy.py +++ b/lib/galaxy/selenium/navigates_galaxy.py @@ -31,6 +31,11 @@ import yaml from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys +from .playwright_element import ( + _SELENIUM_KEY_TO_PLAYWRIGHT, + _SELENIUM_MODIFIERS, +) + if TYPE_CHECKING: from selenium.webdriver.remote.webdriver import WebDriver @@ -3057,11 +3062,6 @@ class NavigatesGalaxy(HasDriverProxy[WaitType]): Accepts Selenium Keys constants and plain text, matching PlaywrightElement.send_keys semantics. """ if self._driver_impl.backend_type == "playwright": - from galaxy.selenium.playwright_element import ( - _SELENIUM_KEY_TO_PLAYWRIGHT, - _SELENIUM_MODIFIERS, - ) - pw_driver = cast("HasPlaywrightDriver", self._driver_impl) page = pw_driver.page all_chars = "".join(str(v) for v in value)