Unverified Commit 44231f27 authored by mvdbeek's avatar mvdbeek
Browse files

Eliminate dependency on selenium in core galaxy

parent 29100ed2
Loading
Loading
Loading
Loading
+16 −2
Original line number Diff line number Diff line
@@ -12,10 +12,24 @@ from typing import (
    Union,
)

from selenium.webdriver.common.by import By

from galaxy.util.bunch import Bunch


class By:
    """
    Set of supported locator strategies.
    """

    ID = "id"
    XPATH = "xpath"
    LINK_TEXT = "link text"
    PARTIAL_LINK_TEXT = "partial link text"
    NAME = "name"
    TAG_NAME = "tag name"
    CLASS_NAME = "class name"
    CSS_SELECTOR = "css selector"


LocatorT = Tuple[By, str]