File tree Expand file tree Collapse file tree 6 files changed +20
-9
lines changed
client/test/org/openqa/selenium
server/test/org/openqa/grid/e2e
third_party/java/htmlunit Expand file tree Collapse file tree 6 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 33
33
34
34
import org .hamcrest .Matchers ;
35
35
import org .junit .Test ;
36
- import org .openqa .selenium .htmlunit .HtmlUnitDriver ;
37
36
import org .openqa .selenium .internal .Locatable ;
38
37
import org .openqa .selenium .support .ui .ExpectedConditions ;
39
38
import org .openqa .selenium .testing .Ignore ;
@@ -216,9 +215,7 @@ public void testShouldBeAbleToClickIfEvenSomethingHorribleHappens() {
216
215
@ Test
217
216
public void testShouldBeAbleToGetTheLocationOfAnElement () {
218
217
assumeTrue (driver instanceof JavascriptExecutor );
219
- if (driver instanceof HtmlUnitDriver ) {
220
- assumeTrue (((HtmlUnitDriver ) driver ).isJavascriptEnabled ());
221
- }
218
+ assumeTrue (((HasCapabilities ) driver ).getCapabilities ().isJavascriptEnabled ());
222
219
223
220
driver .get (pages .javascriptPage );
224
221
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ java_test(name = 'htmlunit',
11
11
'//java/client/src/org/openqa/selenium:webdriver-api' ,
12
12
'//java/client/test/org/openqa/selenium:large-tests' ,
13
13
'//third_party/java/htmlunit:htmlunit' ,
14
+ '//third_party/java/htmlunit:htmlunit-driver' ,
14
15
'//third_party/java/junit:junit' ,
15
16
],
16
17
)
@@ -27,7 +28,7 @@ java_test(name = 'htmlunit-no-js',
27
28
'//java/client/src/org/openqa/selenium/remote:remote' ,
28
29
'//java/client/src/org/openqa/selenium:webdriver-api' ,
29
30
'//java/client/test/org/openqa/selenium:large-tests' ,
30
- '//third_party/java/htmlunit:htmlunit' ,
31
+ '//third_party/java/htmlunit:htmlunit-driver ' ,
31
32
'//third_party/java/junit:junit' ,
32
33
],
33
34
)
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ java_test(name = 'safari',
13
13
)
14
14
15
15
java_library (name = 'tests' ,
16
- srcs = glob (['*Test.java' ]) + [ 'SafariTestBase.java' ] ,
16
+ srcs = glob (['*Test.java' ]),
17
17
deps = [
18
18
'//java/client/src/org/openqa/selenium:webdriver-api' ,
19
19
'//java/client/src/org/openqa/selenium/remote:remote' ,
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ java_library(name = 'annotations',
6
6
'NativeEventsRequired.java' ,
7
7
'NeedsLocalEnvironment.java' ,
8
8
'NeedsFreshDriver.java' ,
9
+ 'NoDriverAfterTest.java' ,
9
10
'NotYetImplemented.java' ,
10
11
'SwitchToTopAfterTest.java' ,
11
12
],
@@ -53,6 +54,7 @@ java_library(name = 'test-base',
53
54
'//java/client/src/org/openqa/selenium/support/ui:wait' ,
54
55
'//java/client/test/org/openqa/selenium/testing/drivers:drivers' ,
55
56
'//third_party/java/htmlunit:htmlunit' ,
57
+ '//third_party/java/htmlunit:htmlunit-driver' ,
56
58
'//third_party/java/guava:guava' ,
57
59
'//third_party/java/hamcrest:hamcrest' ,
58
60
'//third_party/java/junit:junit' ,
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ java_library(name = 'tests',
22
22
'//java/server/src/org/openqa/grid/common:common' ,
23
23
'//java/server/src/org/openqa/grid/selenium:classes' ,
24
24
'//java/server/src/org/openqa/grid/shared:interfaces' ,
25
- '//third_party/java/htmlunit:htmlunit' ,
25
+ '//third_party/java/htmlunit:htmlunit-driver ' ,
26
26
'//third_party/java/guava:guava' ,
27
27
'//third_party/java/httpcomponents:httpclient' ,
28
28
'//third_party/java/junit:junit' ,
Original file line number Diff line number Diff line change
1
+ prebuilt_jar (name = 'htmlunit-driver' ,
2
+ binary_jar = 'selenium-htmlunit-driver-2.52.0.jar' ,
3
+ deps = [
4
+ ':htmlunit' ,
5
+ ],
6
+ visibility = ['PUBLIC' ],
7
+ )
8
+
1
9
prebuilt_jar (name = 'htmlunit' ,
2
10
binary_jar = 'htmlunit-2.18.jar' ,
3
11
source_jar = 'htmlunit-2.18-sources.jar' ,
@@ -13,13 +21,16 @@ prebuilt_jar(name = 'htmlunit',
13
21
'//third_party/java/websocket:websocket-client' ,
14
22
'//third_party/java/xml:xml' ,
15
23
],
16
- visibility = ['PUBLIC' ],
24
+ visibility = [
25
+ '//java/client/test/org/openqa/selenium/htmlunit:' ,
26
+ '//java/client/test/org/openqa/selenium/testing:test-base' ,
27
+ ],
17
28
)
18
29
19
30
prebuilt_jar (name = 'js-core' ,
20
31
binary_jar = 'htmlunit-core-js-2.17.jar' ,
21
32
source_jar = 'htmlunit-core-js-2.17-sources.jar' ,
22
33
visibility = [
23
- '//java/client/src/org/openqa/selenium/htmlunit:htmlunit' ,
34
+ # '//java/client/src/org/openqa/selenium/htmlunit:htmlunit',
24
35
],
25
36
)
You can’t perform that action at this time.
0 commit comments