SeListBox ist ein Selenium GUI-Objekt. Erbt von SeAnyWin.
More...
SeListBox ist ein Selenium GUI-Objekt. Erbt von SeAnyWin.
OKW.GUI.Selenium.SeListBox.SeListBox |
( |
string |
Locator | ) |
|
TODO: Konstruktor des SeListBoxs.
- Parameters
-
Locator | definiert die Objekterkennungseigenschaft des Objektes und wird als XPATH angegeben. |
- Author
- Zoltán Hrabovszki
- Date
- 2013.04.18
string Locator
Definition: AnyWinBase.cs:98
override List<string> OKW.GUI.Selenium.SeListBox.GetValue |
( |
| ) |
|
|
virtual |
- Author
- Zoltan Hrabovszki
- Date
- 2014.12.04
Reimplemented from OKW.GUI.Selenium.SeAnyWin.
182 List<string> lvLsReturn =
new List<string>();
187 MyLogger.LogFunctionStartDebug(
"GetValue");
189 SelectElement SelectList =
new SelectElement(this.
Me());
191 foreach(IWebElement Option
in SelectList.AllSelectedOptions)
193 lvLsReturn.Add( Option.GetAttribute(
"textContent") );
202 MyLogger.LogFunctionEndDebug(lvLsReturn);
206 MyLogger.LogFunctionEndDebug();
virtual IWebElement Me()
Definition: SeAnyWin.cs:359
virtual void OKW.GUI.Selenium.SeListBox.SetValue |
( |
List< string > |
fpsValues | ) |
|
|
virtual |
- Author
- Zoltan Hrabovszki
- Date
- 2013.04.11
127 this.LogFunctionStartDebug(
"SetValue",
"fpsValues", fpsValues.ToString());
134 string lvsLM = this.LM.GetMessage(
"Common",
"OKWGUIObjectNotFoundException",
"Select()");
135 throw new OKWGUIObjectNotFoundException(lvsLM);
138 SelectElement SelectList =
new SelectElement(this.
Me());
141 if (SelectList.IsMultiple)
143 SelectList.DeselectAll();
147 if (fpsValues.Count > 1)
148 MyLogger.LogError(
"ListBox erlaub keine Mehrfachauswahl." );
155 foreach (
string lvsValue
in fpsValues )
157 SelectList.SelectByText(lvsValue);
162 this.LogFunctionEndDebug();
virtual IWebElement Me()
Definition: SeAnyWin.cs:359
virtual bool GetExists()
Definition: SeAnyWin.cs:181
The documentation for this class was generated from the following file:
- OKW/Develop/GUI/Selenium/SeListBox.cs