8000 Minor visibility adjustments · seleniumQuery/seleniumQuery@9c6a62a · GitHub
[go: up one dir, main page]

Skip to content

Commit 9c6a62a

Browse files
committed
Minor visibility adjustments
1 parent 298d860 commit 9c6a62a

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

src/main/java/io/github/seleniumquery/InternalSeleniumQueryObjectFactory.java

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015 seleniumQuery authors
2+
* Copyright (c) 2016 seleniumQuery authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -39,12 +39,16 @@ public class InternalSeleniumQueryObjectFactory {
3939

4040
public static InternalSeleniumQueryObjectFactory instance() {
4141
if (instance == null) {
42-
instance = new InternalSeleniumQueryObjectFactory();
42+
instance = new InternalSeleniumQueryObjectFactory(new SeleniumQueryFunctions());
4343
}
4444
return instance;
4545
}
4646

47-
protected SeleniumQueryFunctions seleniumQueryFunctions = new SeleniumQueryFunctions();
47+
public InternalSeleniumQueryObjectFactory(SeleniumQueryFunctions seleniumQueryFunctions) {
48+
this.seleniumQueryFunctions = seleniumQueryFunctions;
49+
}
50+
51+
private final SeleniumQueryFunctions seleniumQueryFunctions;
4852

4953
public SeleniumQueryObject create(WebDriver driver, By by, List<WebElement> elements, SeleniumQueryObject previous) {
5054
return create(this.seleniumQueryFunctions, driver, by, elements, previous);
@@ -58,7 +62,7 @@ public SeleniumQueryObject createWithInvalidSelector(WebDriver driver, List<WebE
5862
return create(driver, getNoSelectorInvalidBy(), elements, previous);
5963
}
6064

61-
public SeleniumQueryObject createWithInvalidSelectorAndNoPrevious(WebDriver driver, List<WebElement> elements) {
65+
SeleniumQueryObject createWithInvalidSelectorAndNoPrevious(WebDriver driver, List<WebElement> elements) {
6266
return createWithInvalidSelector(driver, elements, SeleniumQueryObject.NOT_BUILT_BASED_ON_A_PREVIOUS_OBJECT);
6367
}
6468

@@ -70,11 +74,11 @@ SeleniumQueryObject createWithValidSelectorAndNoPrevious(WebDriver driver, Strin
7074
return new SeleniumQueryObject(seleniumQueryFunctions, driver, getBy(selector));
7175
}
7276

73-
By getBy(String selector) {
77+
private By getBy(String selector) {
7478
return SeleniumQueryBy.byEnhancedSelector(selector);
7579
}
7680

77-
By getNoSelectorInvalidBy() {
81+
private By getNoSelectorInvalidBy() {
7882
return SeleniumQueryBy.NO_SELECTOR_INVALID_BY;
7983
}
8084

src/main/java/io/github/seleniumquery/SeleniumQueryObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public class SeleniumQueryObject implements Iterable<WebElement> {
7070

7171
public static final Log LOGGER = LogFactory.getLog(SeleniumQueryObject.class);
7272

73-
public static final SeleniumQueryObject NOT_BUILT_BASED_ON_A_PREVIOUS_OBJECT = null;
73+
static final SeleniumQueryObject NOT_BUILT 47E5 _BASED_ON_A_PREVIOUS_OBJECT = null;
7474

7575
private SeleniumQueryFunctions seleniumQueryFunctions;
7676

0 commit comments

Comments
 (0)
0