load("//common:defs.bzl", "copy_file")
load("//java:defs.bzl", "java_library")

java_library(
    name = "locators",
    srcs = glob(["*.java"]),
    resources = [
        ":find-elements",
    ],
    visibility = [
        "//java/src/org/openqa/selenium/support:__pkg__",
        "//java/test/org/openqa/selenium/support/locators:__pkg__",
    ],
    deps = [
        "//java:auto-service",
        "//java/src/org/openqa/selenium/json",
        "//java/src/org/openqa/selenium/remote",
    ],
)

copy_file(
    name = "find-elements",
    src = "//javascript/atoms/fragments:find-elements.js",
    out = "findElements.js",
)
