Skip to content

Commit

Permalink
Exposing JavaScript atoms Bazel targets to other language bindings ta…
Browse files Browse the repository at this point in the history
…rgets
  • Loading branch information
jimevans committed Apr 30, 2019
1 parent 90e738a commit 59991ec
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
5 changes: 5 additions & 0 deletions javascript/atoms/fragments/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ closure_fragment(
deps = [
"//javascript/atoms:dom",
],
visibility = [
"//java/client/src/org/openqa/selenium/remote:__pkg__",
"//py:__pkg__",
"//dotnet/src/webdriver:__pkg__",
],
)

closure_fragment(
Expand Down
33 changes: 33 additions & 0 deletions javascript/selenium-atoms/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -44,27 +44,39 @@ closure_fragment(
function = "core.locators.findElement",
module = "core.locators",
deps = [":deps"],
visibility = [
"//dotnet/src/webdriverbackedselenium:__pkg__",
],
)

closure_fragment(
name = "findOption",
function = "core.select.option.findOption",
module = "core.select.option",
deps = [":deps"],
visibility = [
"//dotnet/src/webdriverbackedselenium:__pkg__",
],
)

closure_fragment(
name = "fireEvent",
function = "core.events.fire",
module = "core.events",
deps = [":deps"],
visibility = [
"//dotnet/src/webdriverbackedselenium:__pkg__",
],
)

closure_fragment(
name = "fireEventAt",
function = "core.events.fireAt",
module = "core.events",
deps = [":deps"],
visibility = [
"//dotnet/src/webdriverbackedselenium:__pkg__",
],
)

closure_fragment(
Expand All @@ -79,41 +91,59 @@ closure_fragment(
function = "core.text.getText",
module = "core.text.getText",
deps = [":deps"],
visibility = [
"//dotnet/src/webdriverbackedselenium:__pkg__",
],
)

closure_fragment(
name = "linkLocator",
function = "core.text.linkLocator",
module = "core.text",
deps = [":deps"],
visibility = [
"//dotnet/src/webdriverbackedselenium:__pkg__",
],
)

closure_fragment(
name = "isSomethingSelected",
function = "core.select.isSomethingSelected",
module = "core.select",
deps = [":deps"],
visibility = [
"//dotnet/src/webdriverbackedselenium:__pkg__",
],
)

closure_fragment(
name = "isElementPresent",
function = "core.locators.isElementPresent",
module = "core.locators",
deps = [":deps"],
visibility = [
"//dotnet/src/webdriverbackedselenium:__pkg__",
],
)

closure_fragment(
name = "isTextPresent",
function = "core.text.isTextPresent",
module = "core.text",
deps = [":deps"],
visibility = [
"//dotnet/src/webdriverbackedselenium:__pkg__",
],
)

closure_fragment(
name = "isVisible",
function = "core.browserbot.isVisible",
module = "core.browserbot",
deps = [":deps"],
visibility = [
"//dotnet/src/webdriverbackedselenium:__pkg__",
],
)

closure_fragment(
Expand All @@ -128,4 +158,7 @@ closure_fragment(
function = "core.events.setValue",
module = "core.events",
deps = [":deps"],
visibility = [
"//dotnet/src/webdriverbackedselenium:__pkg__",
],
)
15 changes: 15 additions & 0 deletions javascript/webdriver/atoms/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library")
load("//javascript:fragment.bzl", "closure_fragment")

closure_js_library(
name = "atoms-lib",
Expand All @@ -17,3 +18,17 @@ closure_js_library(
"@io_bazel_rules_closure//closure/library",
],
)

closure_fragment(
name = "get-attribute",
function = "webdriver.atoms.element.attribute.get",
module = "webdriver.atoms.element",
deps = [
":atoms-lib",
],
visibility = [
"//java/client/src/org/openqa/selenium/remote:__pkg__",
"//py:__pkg__",
"//dotnet/src/webdriver:__pkg__",
],
)

0 comments on commit 59991ec

Please sign in to comment.