Unverified Commit c2aa3b73 authored by David López's avatar David López Committed by GitHub
Browse files

Merge pull request #14150 from mvdbeek/fix_selenium_required

[22.05] Eliminate dependency on selenium in core galaxy
parents 0304821e 44231f27
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]