package com.wiley.autotest.selenium.elements.upgrade;

import com.wiley.autotest.selenium.SeleniumHolder;
import com.wiley.autotest.selenium.elements.upgrade.should.GeneralListShould;
import com.wiley.autotest.selenium.elements.upgrade.should.ListShould;
import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;
import java.util.Collection;

/**
 * Represents list of TeasyElements adding elements-related behavior to standard ArrayList
 */
public class TeasyElementList extends ArrayList<TeasyElement> {

    public TeasyElementList(@NotNull Collection<? extends TeasyElement> teasyElements) {
        super(teasyElements);
    }

    public ListShould should() {
        return new GeneralListShould(this, new TeasyFluentWait<>(SeleniumHolder.getWebDriver()));
    }
}

@@ -162,96 +162,9 @@
 uld.
-GeneralListShould;%0Aimport com.wiley.autotest.selenium.elements.upgrade.should.ListShould
+*
 ;%0Aim
@@ -225,46 +225,9 @@
 til.
-ArrayList;%0Aimport java.util.Collection
+*
 ;%0A%0A/
@@ -389,16 +389,72 @@
 ent%3E %7B%0A%0A
+    public TeasyElementList() %7B%0A        super();%0A    %7D%0A%0A
     publ

add possibility to create empty TeasyelementList