Skip to content

Commit 47c046f

Browse files
committed
Your commit message
1 parent f465c48 commit 47c046f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/decorators/DriverBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public String getPageTitle() {
3737
}
3838

3939
public Element findElement(By locator) {
40-
var nativeWebElement = wait.until(ExpectedConditions.presenceOfElementLocated(locator));
40+
WebElement nativeWebElement = wait.until(ExpectedConditions.presenceOfElementLocated(locator));
4141
Element element = new ElementBase(nativeWebElement, locator );
4242
// use decorated element
4343
Element logElement = new ElementLogger(element);
@@ -48,7 +48,7 @@ public Element findElement(By locator) {
4848
public List<Element> findElements(By locator) {
4949
List<WebElement> nativeWebElements =
5050
wait.until(ExpectedConditions.presenceOfAllElementsLocatedBy(locator));
51-
var elements = new ArrayList<Element>();
51+
ArrayList<Element> elements = new ArrayList<Element>();
5252
for (WebElement nativeWebElement:nativeWebElements) {
5353
Element element = new ElementBase(nativeWebElement, locator);
5454
Element logElement = new ElementLogger(element);

0 commit comments

Comments
 (0)