1 package okw.gui.adapter.selenium;
3 import java.util.ArrayList;
5 import org.openqa.selenium.WebElement;
6 import org.openqa.selenium.support.ui.Select;
8 import okw.OKW_Const_Sngltn;
9 import okw.gui.OKWLocator;
10 import okw.gui.OKWLocatorBase;
149 super( Locator, Locators );
163 public void Select( ArrayList<String> fps_Values )
177 for ( String lvsValue : fps_Values )
181 SelectList.deselectAll();
185 SelectList.selectByVisibleText( lvsValue );
212 public void SetValue( ArrayList<String> fpsValues )
226 if ( SelectList.isMultiple() )
228 SelectList.deselectAll();
232 if ( fpsValues.size() > 1 )
233 this.LogError(
"ListBox erlaub keine Mehrfachauswahl." );
240 for ( String lvsValue : fpsValues )
242 SelectList.selectByVisibleText( lvsValue );
265 ArrayList<String> lvLsReturn =
new ArrayList<String>();
266 Boolean lvbSelectionFound =
false;
279 for ( WebElement Option : SelectList.getAllSelectedOptions() )
281 lvLsReturn.add( Option.getAttribute(
"textContent" ) );
282 lvbSelectionFound =
true;
285 if (!lvbSelectionFound) lvLsReturn.add(
"");