forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build most of the webdriver-backed selenium using Buck.
Still got to the WebDriverBackedSelenium class itself, but the meat now compiles nicely with Buck. Timings of clean builds on my machine: CrazyFun: 2m50s Buck: 1m29s
- Loading branch information
Showing
5 changed files
with
92 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
java_library(name = 'webdriven', | ||
srcs = [ | ||
'CompoundMutator.java', | ||
'FunctionDeclaration.java', | ||
'SeleniumMutator.java', | ||
'VariableDeclaration.java', | ||
], | ||
resources = [ | ||
'htmlutils.js', | ||
'injectableSelenium.js', | ||
'//javascript/selenium-atoms:findElement', | ||
'//javascript/selenium-atoms:findOption', | ||
'//javascript/selenium-atoms:fireEvent', | ||
'//javascript/selenium-atoms:fireEventAt', | ||
'//javascript/selenium-atoms:getAttribute', | ||
'//javascript/selenium-atoms:getText', | ||
'//javascript/selenium-atoms:linkLocator', | ||
'//javascript/selenium-atoms:isElementPresent', | ||
'//javascript/selenium-atoms:isSomethingSelected', | ||
'//javascript/selenium-atoms:isTextPresent', | ||
'//javascript/selenium-atoms:isVisible', | ||
'//javascript/selenium-atoms:type', | ||
'//third_party/js/sizzle:sizzle', | ||
], | ||
exported_deps = [ | ||
':emulation-api', | ||
], | ||
deps = [ | ||
'//java/client/src/com/thoughtworks/selenium:selenium', | ||
'//java/client/src/org/openqa/selenium:webdriver-api', | ||
'//third_party/java/guava-libraries:guava-libraries', | ||
], | ||
) | ||
|
||
java_library(name = 'emulation-api', | ||
srcs = [ | ||
'ElementFinder.java', | ||
'JavascriptLibrary.java', | ||
'ScriptMutator.java', | ||
'SeleneseCommand.java', | ||
], | ||
deps = [ | ||
'//java/client/src/com/thoughtworks/selenium:api', | ||
'//java/client/src/org/openqa/selenium:webdriver-api', | ||
'//third_party/java/guava-libraries:guava-libraries', | ||
], | ||
visibility = [ | ||
'//java/client/src/com/thoughtworks/selenium/...', | ||
], | ||
) |
22 changes: 22 additions & 0 deletions
22
java/client/src/com/thoughtworks/selenium/webdriven/commands/BUCK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
java_library(name = 'timer', | ||
srcs = [ 'Timer.java' ], | ||
deps = [ | ||
'//java/client/src/com/thoughtworks/selenium:api', | ||
'//java/client/src/com/thoughtworks/selenium/webdriven:emulation-api', | ||
'//java/client/src/org/openqa/selenium:webdriver-api', | ||
], | ||
) | ||
|
||
|
||
java_library(name = 'commands', | ||
srcs = glob(['*.java'], excludes = ['Timer.java']), | ||
deps = [ | ||
':timer', | ||
'//java/client/src/com/thoughtworks/selenium:api', | ||
'//java/client/src/com/thoughtworks/selenium/webdriven:emulation-api', | ||
'//java/client/src/org/openqa/selenium:webdriver-api', | ||
'//java/client/src/org/openqa/selenium/io:io', | ||
'//third_party/java/guava-libraries:guava-libraries', | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
export_file(name = 'sizzle', | ||
src = 'sizzle.js', | ||
out = 'sizzle.js', | ||
visibility = [ '//java/client/src/com/thoughtworks/selenium/webdriven:webdriven' ], | ||
) |