diff --git a/javascript/webdriver/atoms/BUCK b/javascript/webdriver/atoms/BUCK index 18132f1dc4989..eefd53c5d359d 100644 --- a/javascript/webdriver/atoms/BUCK +++ b/javascript/webdriver/atoms/BUCK @@ -40,7 +40,15 @@ closure_library(name = 'attribute-lib', ], ) -closure_fragment(name = 'getAttribute', +closure_fragment(name = 'clear-element', + module = 'bot.action', + function = 'bot.action.clear', + deps = [ '//javascript/atoms:action' ], + visibility = [ + ], +) + +closure_fragment(name = 'get-attribute', module = 'webdriver.atoms.element.attribute', function = 'webdriver.atoms.element.attribute.get', deps = [ ':attribute-lib' ], @@ -49,3 +57,35 @@ closure_fragment(name = 'getAttribute', '//java/client/src/org/openqa/selenium/remote:get-attribute', ], ) + +closure_fragment(name = 'get-text', + module = 'webdriver.atoms.element', + function = 'webdriver.atoms.element.getText', + deps = [ ':atoms-lib' ], + visibility = [ + ], +) + +closure_fragment(name = 'is-displayed', + module = 'bot.dom', + function = 'bot.dom.isShown', + deps = [ '//javascript/atoms:dom' ], + visibility = [ + ], +) + +closure_fragment(name = 'is-enabled', + module = 'bot.dom', + function = 'bot.dom.isEnabled', + deps = [ '//javascript/atoms:dom' ], + visibility = [ + ], +) + +closure_fragment(name = 'is-selected', + module = 'webdriver.atoms.element', + function = 'webdriver.atoms.element.isSelected', + deps = [ ':atoms-lib' ], + visibility = [ + ], +)