OpenKeyWord  Build Tag: jenkins-DoxyGen_EN-107, Build ID: 2015-03-08_20-51-06
 All Classes Namespaces Functions Variables Properties Pages
OKW.GUI.Selenium.SeLink Class Reference

TODO: Description of SeLink. More...

Inheritance diagram for OKW.GUI.Selenium.SeLink:
Collaboration diagram for OKW.GUI.Selenium.SeLink:

Public Member Functions

 SeLink (string Locator, params OKWLocator[] fpLocators)
 
virtual void ClickOn ()
 
virtual List< string > GetValue_CONTENT ()
 
List< string > GetValue_CONTENT (List< string > fpExpected)
 
override bool GetIsActive ()
 
override bool LogIsActive ()
 
override bool MemorizeIsActive ()
 
virtual bool VerifyIsActive ()
 
override List< string > GetValue ()
 Holt den aktuellen Text aus dem Textfoil. More...
 
override List< string > LogValue ()
 Ermittelt den Wert des Objktes für das Schlüsselwort Loggewert. More...
 
override List< string > MemorizeValue ()
 
override List< string > VerifyValue (List< string > fplsExpectedValue)
 Ermittelt den textuellen Inhalt des markierten Textes für Prüfewert. More...
 
- Public Member Functions inherited from OKW.GUI.Selenium.SeAnyWin
 SeAnyWin (string Locator, params OKWLocator[] fpLocators)
 
virtual bool GetExists ()
 
virtual bool LogExists ()
 
virtual IWebElement Me ()
 
virtual bool MemorizeExists ()
 
virtual bool NotExists ()
 
virtual void SetFocus ()
 
virtual void TypeKey (List< string > fps_Values)
 
virtual bool VerifyExists (bool fpbExpectedValue)
 
virtual bool VerifyIsActive (bool fpbExpectedValue)
 
virtual List< string > VerifyTooltip (List< string > fplsExpectedValue)
 
virtual List< string > VerifyLabel (List< string > fplsExpectedValue)
 
virtual List< string > GetTooltip ()
 
virtual List< string > GetLabel ()
 
virtual List< string > LogTooltip ()
 
virtual List< string > LogLabel ()
 
virtual List< string > MemorizeTooltip ()
 
virtual List< string > MemorizeLabel ()
 
virtual bool GetHasFocus ()
 
virtual bool LogHasFocus ()
 Ermittelt für LoggeWert, ob das aktuelle Objekt den Fokus hat. More...
 
virtual bool MemorizeHasFocus ()
 
virtual bool VerifyHasFocus (bool fpbExpectedValue)
 Ermittelt den textuellen Inhalt des ToolTips. More...
 
virtual List< string > VerifyCaption (List< string > fplsExpectedValue)
 
virtual List< string > LogCaption ()
 
virtual List< string > MemorizeCaption ()
 
virtual List< string > GetCaption ()
 
- Public Member Functions inherited from OKW.GUI.AnyWinBase
 AnyWinBase (string fpsLocator, params OKWLocator[] fpLocators)
 
void LogFunctionStartDebug (string fpsMethodName, string P1_Name, string P1_Value)
 

Additional Inherited Members

- Protected Member Functions inherited from OKW.GUI.AnyWinBase
void LogFunctionEndDebug ()
 
void LogFunctionEndDebug (string fpsReturn)
 
void LogFunctionEndDebug (bool fpbReturn)
 
void LogFunctionEndDebug (List< string > fpLsReturn)
 
void LogFunctionStartDebug (string fpsMethodName)
 
- Protected Attributes inherited from OKW.GUI.Selenium.SeAnyWin
Log.Logger MyLogger = Log.Logger.Instance
 
OKW_Wait4Value MyWait4Value = new OKW_Wait4Value()
 
LogMessenger LM = new LogMessenger("GUI")
 
- Properties inherited from OKW.GUI.AnyWinBase
string Locator [get]
 
OKWLocator LOCATOR [get]
 

Detailed Description

TODO: Description of SeLink.

Member Function Documentation

virtual void OKW.GUI.Selenium.SeLink.ClickOn ( )
virtual
Author
Zoltán Hrabovszki
Date
2013.11.11

Reimplemented from OKW.GUI.Selenium.SeAnyWin.

76  {
77  try
78  {
79  this.LogFunctionStartDebug("ClickOn");
80 
81  // Wenn das Objekt nicht existiert mit Exception beenden...
82  if (!this.GetExists())
83  {
84  string lvsLM = this.LM.GetMessage("Common", "OKWGUIObjectNotFoundException", "SeAnyWin.TypeKey()");
85  throw new OKWGUIObjectNotFoundException(lvsLM);
86  }
87 
88  this.Me().Click();
89  }
90  finally
91  {
92  this.LogFunctionEndDebug();
93  }
94 
95  return;
96  }
virtual bool GetExists()
Definition: SeAnyWin.cs:181
override bool OKW.GUI.Selenium.SeLink.GetIsActive ( )
virtual
Author
Zoltán Hrabovszki
Date
2014.11.26

Reimplemented from OKW.GUI.Selenium.SeAnyWin.

122  {
123  throw new NotImplementedException("Link cannot be Active");
124  }
override List<string> OKW.GUI.Selenium.SeLink.GetValue ( )
virtual

Holt den aktuellen Text aus dem Textfoil.

Returns

Reimplemented from OKW.GUI.Selenium.SeAnyWin.

146  {
147 
148  List<string> lvLsReturn = new List<string>();
149  bool bOK = false;
150  try
151  {
152  MyLogger.LogFunctionStartDebug("GetCaption");
153 
154  // Wenn das Objekt nicht existiert mit Exception beenden...
155  if (!this.GetExists())
156  {
157  string lvsLM = this.LM.GetMessage("Common", "OKWGUIObjectNotFoundException", "GetCaption()");
158  throw new OKWGUIObjectNotFoundException(lvsLM);
159  }
160 
161  // The Attribute "value" wird als Beschriftung angezeigt...
162  lvLsReturn.Add(this.Me().GetAttribute("href"));
163  bOK = true;
164  }
165  finally
166  {
167  if (bOK)
168  {
169  MyLogger.LogFunctionEndDebug(lvLsReturn);
170  }
171  else
172  {
173  MyLogger.LogFunctionEndDebug();
174  }
175  }
176 
177  return lvLsReturn;
178  }
virtual bool GetExists()
Definition: SeAnyWin.cs:181
override bool OKW.GUI.Selenium.SeLink.LogIsActive ( )
virtual
Author
Zoltán Hrabovszki
Date
2013.12.07

Reimplemented from OKW.GUI.Selenium.SeAnyWin.

127  {
128  throw new NotImplementedException("Link cannot be Active");
129  }
override List<string> OKW.GUI.Selenium.SeLink.LogValue ( )
virtual

Ermittelt den Wert des Objktes für das Schlüsselwort Loggewert.

Diese Methode ist der Einstiegspunkt für MerkeWert-Anpassungen durch Methoden überschreibung.

Returns
Rückgabe des Textuellen Inhaltes der markierten Textes.
Author
Zoltan Hrabovszki
Date
2013.12.14

Reimplemented from OKW.GUI.Selenium.SeAnyWin.

191  {
192  bool bOK = false;
193  List<string> lvLsReturn = new List<string>();
194 
195  try
196  {
197  MyLogger.LogFunctionStartDebug("LogValue");
198  lvLsReturn = this.GetValue();
199  bOK = true;
200  }
201  finally
202  {
203  if (bOK)
204  {
205  MyLogger.LogFunctionEndDebug(lvLsReturn);
206  }
207  else
208  {
209  MyLogger.LogFunctionEndDebug();
210  }
211  }
212 
213  return lvLsReturn;
214  }
override bool OKW.GUI.Selenium.SeLink.MemorizeIsActive ( )
virtual
Author
Zoltán Hrabovszki
Date
2014.04.19

Reimplemented from OKW.GUI.Selenium.SeAnyWin.

132  {
133  throw new NotImplementedException("Link cannot be Active");
134  }
override List<string> OKW.GUI.Selenium.SeLink.MemorizeValue ( )
virtual
Author
Zoltán Hrabovszki
Date
2013.12.14

Reimplemented from OKW.GUI.Selenium.SeAnyWin.

231  {
232  List<string> lvLsReturn = new List<string>();
233  bool bOK = false;
234 
235  try
236  {
237  MyLogger.LogFunctionStartDebug("Memorize");
238  lvLsReturn = this.GetValue();
239  bOK = true;
240  }
241  finally
242  {
243  if (bOK)
244  {
245  MyLogger.LogFunctionEndDebug(lvLsReturn);
246  }
247  else
248  {
249  MyLogger.LogFunctionEndDebug();
250  }
251  }
252 
253  return lvLsReturn;
254  }
override List<string> OKW.GUI.Selenium.SeLink.VerifyValue ( List< string >  fplsExpectedValue)
virtual

Ermittelt den textuellen Inhalt des markierten Textes für Prüfewert.

Diese Methode ist der Einstiegspunkt für PrüfeWert-Anpassungen durch Methodenüberschreibung.

Returns
Rückgabe des Textuellen Inhaltes der markierten Textes. Es wird immer der aktuelle Wert des Objektes zurückgeliefert.
Author
Zoltan Hrabovszki
Date
2013.12.14

Reimplemented from OKW.GUI.Selenium.SeAnyWin.

268  {
269  List<string> lvLsReturn = new List<string>();
270  bool bOK = false;
271 
272  try
273  {
274  MyLogger.LogFunctionStartDebug("Memorize", "fplsExpectedValue", fplsExpectedValue[0]);
275 
276  // GetValue als delegaten definieren
277  OKW_Wait4Value.ListStringCallBack myCallBack = this.GetValue;
278 
279  // Nun mit dem erwarteten Sollwert und GetValue ggf. auf den Wert Warten.
280  lvLsReturn = MyWait4Value.Wait4Value(fplsExpectedValue, myCallBack);
281 
282  bOK = true;
283  }
284  finally
285  {
286  if (bOK)
287  {
288  MyLogger.LogFunctionEndDebug(lvLsReturn);
289  }
290  else
291  {
292  MyLogger.LogFunctionEndDebug();
293  }
294  }
295 
296  return lvLsReturn;
297  }

The documentation for this class was generated from the following file: