forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUCK
57 lines (50 loc) · 1.47 KB
/
BUCK
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
closure_library(name = 'lib',
srcs = glob(['*.js']),
deps = [
'//javascript/atoms:dom',
'//javascript/atoms:locators',
'//third_party/closure:closure',
],
)
closure_fragment(name = 'get_location_in_view',
module = 'webdriver.chrome',
function = 'webdriver.chrome.getLocationInView',
deps = [ ':lib' ])
closure_fragment(name = 'get_first_client_rect',
module = 'webdriver.chrome',
function = 'webdriver.chrome.getFirstClientRect',
deps = [ ':lib' ])
closure_fragment(name = 'is_element_clickable',
module = 'webdriver.chrome',
function = 'webdriver.chrome.isElementClickable',
deps = [ ':lib' ])
closure_fragment(name = 'get_page_zoom',
module = 'webdriver.chrome',
function = 'webdriver.chrome.getPageZoom',
deps = [ ':lib' ])
closure_fragment(name = 'is_element_displayed',
module = 'webdriver.chrome',
function = 'webdriver.chrome.isElementDisplayed',
deps = [
':lib',
'//javascript/atoms/fragments:is-displayed',
])
closure_fragment(name = 'find_element',
module = 'webdriver.chrome',
function = 'webdriver.chrome.findElement',
deps = [ ':lib' ])
java_test(
name = 'atoms-chrome',
vm_args = [
'-Dselenium.browser=chrome',
'-Djs.test.timeout=20',
'-Djs.test.dir=%s' % get_base_path(),
],
test_classes = [
'org.openqa.selenium.javascript.ClosureTestSuite',
],
deps = [
'//java/client/test/org/openqa/selenium/javascript:javascript',
'//java/client/src/org/openqa/selenium/chrome:chrome',
],
)