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.SeAnyWin Class Reference
Inheritance diagram for OKW.GUI.Selenium.SeAnyWin:
Collaboration diagram for OKW.GUI.Selenium.SeAnyWin:

Public Member Functions

 SeAnyWin (string Locator, params OKWLocator[] fpLocators)
 
virtual void ClickOn ()
 
virtual bool GetExists ()
 
virtual bool GetIsActive ()
 
virtual bool LogExists ()
 
virtual bool LogIsActive ()
 
virtual IWebElement Me ()
 
virtual bool MemorizeExists ()
 
virtual bool MemorizeIsActive ()
 
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 ()
 
virtual List< string > GetValue ()
 Holt den aktuellen Text aus einem HTML-Tag. More...
 
virtual List< string > LogValue ()
 Ermittelt den Wert des Objktes für das Schlüsselwort Loggewert. More...
 
virtual List< string > MemorizeValue ()
 
virtual 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.AnyWinBase
 AnyWinBase (string fpsLocator, params OKWLocator[] fpLocators)
 
void LogFunctionStartDebug (string fpsMethodName, string P1_Name, string P1_Value)
 

Protected Attributes

Log.Logger MyLogger = Log.Logger.Instance
 
OKW_Wait4Value MyWait4Value = new OKW_Wait4Value()
 
LogMessenger LM = new LogMessenger("GUI")
 

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)
 
- Properties inherited from OKW.GUI.AnyWinBase
string Locator [get]
 
OKWLocator LOCATOR [get]
 

Detailed Description

Author
Zoltán Hrabovszki
Date
2013.11.11

Member Function Documentation

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

Reimplemented in OKW.GUI.Selenium.SeLink.

151  {
152  try
153  {
154  this.LogFunctionStartDebug("ClickOn");
155 
156  // Wenn das Objekt nicht existiert mit Exception beenden...
157  if (!this.GetExists())
158  {
159  string lvsLM = this.LM.GetMessage("Common", "OKWGUIObjectNotFoundException", "SeAnyWin.TypeKey()");
160  throw new OKWGUIObjectNotFoundException(lvsLM);
161  }
162 
163  this.Me().Click();
164  }
165  finally
166  {
167  this.LogFunctionEndDebug();
168  }
169 
170  return;
171  }
virtual bool GetExists()
Definition: SeAnyWin.cs:181
virtual List<string> OKW.GUI.Selenium.SeAnyWin.GetCaption ( )
virtual
Author
Zoltán Hrabovszki
Date
2013.12.07

Reimplemented in OKW.GUI.Selenium.SePushButton.

1369  {
1370  List<string> lvLsReturn = new List<string>();
1371  bool bOK = false;
1372  try
1373  {
1374  MyLogger.LogFunctionStartDebug("GetCaption");
1375 
1376  // Wenn das Objekt nicht existiert mit Exception beenden...
1377  if (!this.GetExists())
1378  {
1379  string lvsLM = this.LM.GetMessage("Common", "OKWGUIObjectNotFoundException", "GetCaption()");
1380  throw new OKWGUIObjectNotFoundException(lvsLM);
1381  }
1382 
1383  // The Attribute "value" wird als Beschriftung angezeigt...
1384  lvLsReturn.Add(this.Me().GetAttribute("textContent"));
1385  bOK = true;
1386  }
1387  finally
1388  {
1389  if (bOK)
1390  {
1391  MyLogger.LogFunctionEndDebug(lvLsReturn);
1392  }
1393  else
1394  {
1395  MyLogger.LogFunctionEndDebug();
1396  }
1397  }
1398 
1399  return lvLsReturn;
1400  }
virtual bool GetExists()
Definition: SeAnyWin.cs:181
virtual bool OKW.GUI.Selenium.SeAnyWin.GetExists ( )
virtual
Author
Zoltán Hrabovszki
Date
2013.11.11
182  {
183  this.MyLogger.LogFunctionStartDebug("Exists");
184  bool lvbReturn = false;
185  bool bOK = false;
186 
187  try
188  {
189  this.Me();
190  lvbReturn = true;
191  bOK = true;
192  }
193  catch (OKWGUIObjectNotFoundException)
194  {
195  this.MyLogger.LogPrintDebug("NoSuchElementException");
196  lvbReturn = false;
197  bOK = true;
198  }
199  finally
200  {
201  if (bOK)
202  {
203  this.MyLogger.LogFunctionEndDebug(lvbReturn);
204  }
205  else
206  {
207  this.MyLogger.LogFunctionEndDebug();
208  }
209  }
210 
211  return lvbReturn;
212  }
virtual bool OKW.GUI.Selenium.SeAnyWin.GetHasFocus ( )
virtual
Author
Zoltán Hrabovszki
Date
2013.11.11
1075  {
1076  bool lvbReturn = false;
1077  bool bOK = false;
1078 
1079  try
1080  {
1081  this.LogFunctionStartDebug("GetHasFocus");
1082 
1083  // Wenn das Objekt nicht existiert mit Exception beenden...
1084  if (!this.GetExists())
1085  {
1086  string lvsLM = this.LM.GetMessage("Common", "OKWGUIObjectNotFoundException", "GetTooltip()");
1087  throw new OKWGUIObjectNotFoundException(lvsLM);
1088  }
1089 
1090  IWebElement currentElement = SeDriver.Instance.driver.SwitchTo().ActiveElement();
1091 
1092  lvbReturn = currentElement.Equals(this.Me());
1093  bOK = true;
1094  }
1095  finally
1096  {
1097  if (bOK)
1098  {
1099  MyLogger.LogFunctionEndDebug(lvbReturn);
1100  }
1101  else
1102  {
1103  MyLogger.LogFunctionEndDebug();
1104  }
1105  }
1106 
1107  return lvbReturn;
1108  }
virtual bool GetExists()
Definition: SeAnyWin.cs:181
virtual bool OKW.GUI.Selenium.SeAnyWin.GetIsActive ( )
virtual
Author
Zoltán Hrabovszki
Date
2014.04.19

Reimplemented in OKW.GUI.Selenium.SeLink.

223  {
224  bool lvbReturn = false;
225  bool bOK = false;
226  var lvDisabled = string.Empty;
227 
228  try
229  {
230  this.MyLogger.LogFunctionStartDebug("GetIsActive");
231 
232  // Wenn das Objekt nicht existiert mit Exception beenden...
233  if (!this.GetExists())
234  {
235  string lvsLM = this.LM.GetMessage("Common", "OKWGUIObjectNotFoundException", "SeAnyWin.TypeKey()");
236  throw new OKWGUIObjectNotFoundException(lvsLM);
237  }
238 
239  lvDisabled = this.Me().GetAttribute("disabled");
240 
241  if (lvDisabled == null || lvDisabled != "true")
242  {
243  lvbReturn = true;
244  }
245  else
246  {
247  lvbReturn = false;
248  }
249 
250  bOK = true;
251  }
252  finally
253  {
254  if (bOK)
255  {
256  this.MyLogger.LogFunctionEndDebug(lvbReturn);
257  }
258  else
259  {
260  this.MyLogger.LogFunctionEndDebug();
261  }
262  }
263 
264  return lvbReturn;
265  }
virtual bool GetExists()
Definition: SeAnyWin.cs:181
virtual List<string> OKW.GUI.Selenium.SeAnyWin.GetLabel ( )
virtual
Author
Zoltán Hrabovszki
Date
2014.06.17
862  {
863  List<string> lvLsReturn = new List<string>();
864  bool bOK = false;
865  try
866  {
867  MyLogger.LogFunctionStartDebug("GetTooltip");
868 
869  // Wenn das Objekt nicht existiert mit Exception beenden...
870  if (!this.GetExists())
871  {
872  string lvsLM = this.LM.GetMessage("Common", "OKWGUIObjectNotFoundException", "GetTooltip()");
873  throw new OKWGUIObjectNotFoundException(lvsLM);
874  }
875 
876  // 1. Schritt: Attribute "id" is shown as Tooltip...
877  string lvsID = this.Me().GetAttribute("id");
878 
879  // 2.schritt nun Tag Label mit for= "${lvsID}" finden.
880  IWebElement label = SeDriver.Instance.driver.FindElement(By.XPath( "//label[@for='" + lvsID + "']" ));
881  lvLsReturn.Add(label.GetAttribute("textContent"));
882  bOK = true;
883  }
884  finally
885  {
886  if (bOK)
887  {
888  MyLogger.LogFunctionEndDebug(lvLsReturn);
889  }
890  else
891  {
892  MyLogger.LogFunctionEndDebug();
893  }
894  }
895 
896  return lvLsReturn;
897  }
virtual bool GetExists()
Definition: SeAnyWin.cs:181
virtual List<string> OKW.GUI.Selenium.SeAnyWin.GetTooltip ( )
virtual
Author
Zoltán Hrabovszki
Date
2013.12.07
816  {
817  List<string> lvLsReturn = new List<string>();
818  bool bOK = false;
819  try
820  {
821  MyLogger.LogFunctionStartDebug("GetTooltip");
822 
823  // Wenn das Objekt nicht existiert mit Exception beenden...
824  if (!this.GetExists())
825  {
826  string lvsLM = this.LM.GetMessage("Common", "OKWGUIObjectNotFoundException", "GetTooltip()");
827  throw new OKWGUIObjectNotFoundException(lvsLM);
828  }
829 
830  // The Attribute "Title" is shown as Tooltip...
831  lvLsReturn.Add(this.Me().GetAttribute("title"));
832  bOK = true;
833  }
834  finally
835  {
836  if (bOK)
837  {
838  MyLogger.LogFunctionEndDebug(lvLsReturn);
839  }
840  else
841  {
842  MyLogger.LogFunctionEndDebug();
843  }
844  }
845 
846  return lvLsReturn;
847  }
virtual bool GetExists()
Definition: SeAnyWin.cs:181
virtual List<string> OKW.GUI.Selenium.SeAnyWin.GetValue ( )
virtual

Holt den aktuellen Text aus einem HTML-Tag.

Standardmäßig wird "innerText" ausgelesen.

Returns

Reimplemented in OKW.GUI.Selenium.SeListBox, OKW.GUI.Selenium.SeCheckBox, OKW.GUI.Selenium.SeLink, OKW.GUI.Selenium.SeTextField, and OKW.GUI.Selenium.SeSimpleDataObjBase.

1409  {
1410  List<string> lvLsReturn = new List<string>();
1411  bool bOK = false;
1412 
1413  try
1414  {
1415  this.LogFunctionStartDebug("GetValue");
1416 
1417  // Get Value from TextField and put this into the return List<string>
1418  lvLsReturn.Add(this.Me().GetAttribute("textContent"));
1419  bOK = true;
1420  }
1421  finally
1422  {
1423  if (bOK)
1424  {
1425  this.LogFunctionEndDebug(lvLsReturn.ToString());
1426  }
1427  else
1428  {
1429  this.LogFunctionEndDebug();
1430  }
1431  }
1432 
1433  return lvLsReturn;
1434  }
virtual List<string> OKW.GUI.Selenium.SeAnyWin.LogCaption ( )
virtual
Author
Zoltán Hrabovszki
Date
2013.12.07

Reimplemented in OKW.GUI.Selenium.SePushButton.

1289  {
1290  List<string> lvLsReturn = new List<string>();
1291  bool bOK = false;
1292 
1293  try
1294  {
1295  MyLogger.LogFunctionStartDebug("LogCaption");
1296 
1297  lvLsReturn = this.GetCaption();
1298 
1299  bOK = true;
1300  }
1301  finally
1302  {
1303  if (bOK)
1304  {
1305  MyLogger.LogFunctionEndDebug(lvLsReturn);
1306  }
1307  else
1308  {
1309  MyLogger.LogFunctionEndDebug();
1310  }
1311  }
1312 
1313  return lvLsReturn;
1314  }
virtual bool OKW.GUI.Selenium.SeAnyWin.LogExists ( )
virtual
Author
Zoltán Hrabovszki
Date
2013.12.07
282  {
283  bool lvbReturn = false;
284  bool bOK = false;
285 
286  try
287  {
288  this.MyLogger.LogFunctionStartDebug("LogExists");
289 
290  lvbReturn = this.GetExists();
291 
292  bOK = true;
293  }
294  finally
295  {
296  if (bOK)
297  {
298  this.MyLogger.LogFunctionEndDebug(lvbReturn);
299  }
300  else
301  {
302  this.MyLogger.LogFunctionEndDebug();
303  }
304  }
305 
306  return lvbReturn;
307  }
virtual bool OKW.GUI.Selenium.SeAnyWin.LogHasFocus ( )
virtual

Ermittelt für LoggeWert, ob das aktuelle Objekt den Fokus hat.

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

Returns
true falls Objekt den Fokus hat, sonst false
Author
Zoltan Hrabovszki
Date
2013.04.11
1121  {
1122  bool lvbReturn = false;
1123  bool bOK = false;
1124 
1125  try
1126  {
1127  this.LogFunctionStartDebug("LogHasFocus");
1128 
1129  lvbReturn = this.GetHasFocus();
1130  bOK = true;
1131  }
1132  finally
1133  {
1134  if (bOK)
1135  {
1136  MyLogger.LogFunctionEndDebug(lvbReturn);
1137  }
1138  else
1139  {
1140  MyLogger.LogFunctionEndDebug();
1141  }
1142  }
1143 
1144  return lvbReturn;
1145  }
virtual bool OKW.GUI.Selenium.SeAnyWin.LogIsActive ( )
virtual
Author
Zoltán Hrabovszki
Date
2013.12.07

Reimplemented in OKW.GUI.Selenium.SeLink.

324  {
325  bool lvbReturn = false;
326  bool bOK = false;
327 
328  try
329  {
330  this.MyLogger.LogFunctionStartDebug("LogIsActive");
331 
332  lvbReturn = this.GetIsActive();
333 
334  bOK = true;
335  }
336  finally
337  {
338  if (bOK)
339  {
340  this.MyLogger.LogFunctionEndDebug(lvbReturn);
341  }
342  else
343  {
344  this.MyLogger.LogFunctionEndDebug();
345  }
346  }
347 
348  return lvbReturn;
349  }
virtual List<string> OKW.GUI.Selenium.SeAnyWin.LogLabel ( )
virtual
Author
Zoltán Hrabovszki
Date
2013.12.07
956  {
957  List<string> lvLsReturn = new List<string>();
958  bool bOK = false;
959 
960  try
961  {
962  MyLogger.LogFunctionStartDebug("LogLabel");
963 
964  lvLsReturn = this.GetLabel();
965 
966  bOK = true;
967  }
968  finally
969  {
970  if (bOK)
971  {
972  MyLogger.LogFunctionEndDebug(lvLsReturn);
973  }
974  else
975  {
976  MyLogger.LogFunctionEndDebug();
977  }
978  }
979 
980  return lvLsReturn;
981  }
virtual List<string> OKW.GUI.Selenium.SeAnyWin.LogTooltip ( )
virtual
Author
Zoltán Hrabovszki
Date
2013.12.07
914  {
915  List<string> lvLsReturn = new List<string>();
916  bool bOK = false;
917 
918  try
919  {
920  MyLogger.LogFunctionStartDebug("LogTooltip");
921 
922  lvLsReturn = this.GetTooltip();
923 
924  bOK = true;
925  }
926  finally
927  {
928  if (bOK)
929  {
930  MyLogger.LogFunctionEndDebug(lvLsReturn);
931  }
932  else
933  {
934  MyLogger.LogFunctionEndDebug();
935  }
936  }
937 
938  return lvLsReturn;
939  }
virtual List<string> OKW.GUI.Selenium.SeAnyWin.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 in OKW.GUI.Selenium.SeLink, and OKW.GUI.Selenium.SeSimpleDataObjBase.

1447  {
1448  bool bOK = false;
1449  List<string> lvLsReturn = new List<string>();
1450 
1451  try
1452  {
1453  MyLogger.LogFunctionStartDebug("LogValue");
1454  lvLsReturn = this.GetValue();
1455  bOK = true;
1456  }
1457  finally
1458  {
1459  if (bOK)
1460  {
1461  MyLogger.LogFunctionEndDebug(lvLsReturn);
1462  }
1463  else
1464  {
1465  MyLogger.LogFunctionEndDebug();
1466  }
1467  }
1468 
1469  return lvLsReturn;
1470  }
virtual IWebElement OKW.GUI.Selenium.SeAnyWin.Me ( )
virtual
Author
Zoltán Hrabovszki
Date
2013.11.11
360  {
361  this.MyLogger.LogFunctionStartDebug("Me");
362  IWebElement me = null;
363 
364  ReadOnlyCollection<IWebElement> meme;
366 
367  try
368  {
369  //me = SeDriver.Instance.driver.FindElement(By.XPath(this.Locator));
370  meme = SeDriver.Instance.driver.FindElements(By.XPath(this.Locator));
371 
372  if (meme.Count == 0)
373  {
374  string lvsPrintMe = "GUI-Objekt wurde nicht gefunden: Locator: >>" + this.Locator + "<<";
375 
376  this.MyLogger.LogPrint( "????????????????????????????????????????????????????????????" );
377  this.MyLogger.LogPrint( lvsPrintMe );
378  this.MyLogger.LogPrint( "????????????????????????????????????????????????????????????" );
379 
380  throw new OKWGUIObjectNotFoundException( lvsPrintMe );
381  }
382  else if (meme.Count > 1)
383  {
384  string lvsPrintMe = "Locator ist nicht eindeutig, es wurden mehrer GUI-Objekt gefunden:\n Locator: >>" + this.Locator + "<<";
385 
386  this.MyLogger.LogPrint( "????????????????????????????????????????????????????????????" );
387  this.MyLogger.LogPrint( lvsPrintMe );
388  this.MyLogger.LogPrint( "????????????????????????????????????????????????????????????" );
389 
390  throw new OKWGUIObjectNotFoundException( lvsPrintMe );
391  }
392  else
393  {
394  me = meme[0];
395  }
396  }
397  finally
398  {
399  if (me != null)
400  {
401  me.Highlight();
402  this.MyLogger.LogFunctionEndDebug(me.ToString());
403  }
404  else
405  {
406  this.MyLogger.LogFunctionEndDebug();
407  }
408  }
409 
410  return me;
411  }
virtual List<string> OKW.GUI.Selenium.SeAnyWin.MemorizeCaption ( )
virtual
Author
Zoltán Hrabovszki
Date
2013.12.07

Reimplemented in OKW.GUI.Selenium.SePushButton.

1331  {
1332  bool bOK = false;
1333  List<string> lvLsReturn = null;
1334 
1335  try
1336  {
1337  MyLogger.LogFunctionStartDebug("MemorizeCaption");
1338 
1339  lvLsReturn = this.GetCaption();
1340  bOK = true;
1341  }
1342  finally
1343  {
1344  if (bOK)
1345  {
1346  MyLogger.LogFunctionEndDebug(lvLsReturn);
1347  }
1348  else
1349  {
1350  MyLogger.LogFunctionEndDebug();
1351  }
1352  }
1353 
1354  return lvLsReturn;
1355  }
virtual bool OKW.GUI.Selenium.SeAnyWin.MemorizeExists ( )
virtual
Author
Zoltán Hrabovszki
Date
2013.12.07
428  {
429  bool bOK = false;
430  bool lvbReturn = false;
431 
432  try
433  {
434  this.MyLogger.LogFunctionStartDebug("MemorizeExists");
435 
436  lvbReturn = this.GetExists();
437  bOK = true;
438  }
439  finally
440  {
441  if (bOK)
442  {
443  this.MyLogger.LogFunctionEndDebug(lvbReturn);
444  }
445  else
446  {
447  this.MyLogger.LogFunctionEndDebug();
448  }
449  }
450 
451  return lvbReturn;
452  }
virtual bool OKW.GUI.Selenium.SeAnyWin.MemorizeHasFocus ( )
virtual
Author
Zoltán Hrabovszki
Date
2013.12.07
1161  {
1162  bool lvbReturn = false;
1163  bool bOK = false;
1164 
1165  try
1166  {
1167  this.LogFunctionStartDebug("MemorizeHasFocus");
1168 
1169  lvbReturn = this.GetHasFocus();
1170  bOK = true;
1171  }
1172  finally
1173  {
1174  if (bOK)
1175  {
1176  MyLogger.LogFunctionEndDebug(lvbReturn);
1177  }
1178  else
1179  {
1180  MyLogger.LogFunctionEndDebug();
1181  }
1182  }
1183 
1184  return lvbReturn;
1185  }
virtual bool OKW.GUI.Selenium.SeAnyWin.MemorizeIsActive ( )
virtual
Author
Zoltán Hrabovszki
Date
2014.04.19

Reimplemented in OKW.GUI.Selenium.SeLink.

466  {
467  bool bOK = false;
468  bool lvbReturn = false;
469 
470  try
471  {
472  this.MyLogger.LogFunctionStartDebug("MemorizeIsActive");
473 
474  lvbReturn = this.GetIsActive();
475  bOK = true;
476  }
477  finally
478  {
479  if (bOK)
480  {
481  this.MyLogger.LogFunctionEndDebug(lvbReturn);
482  }
483  else
484  {
485  this.MyLogger.LogFunctionEndDebug();
486  }
487  }
488 
489  return lvbReturn;
490  }
virtual List<string> OKW.GUI.Selenium.SeAnyWin.MemorizeLabel ( )
virtual
Author
Zoltán Hrabovszki
Date
2013.12.07
1039  {
1040  bool bOK = false;
1041  List<string> lvLsReturn = null;
1042 
1043  try
1044  {
1045  MyLogger.LogFunctionStartDebug("MemorizeLabel");
1046 
1047  lvLsReturn = this.GetLabel();
1048  bOK = true;
1049  }
1050  finally
1051  {
1052  if (bOK)
1053  {
1054  MyLogger.LogFunctionEndDebug(lvLsReturn);
1055  }
1056  else
1057  {
1058  MyLogger.LogFunctionEndDebug();
1059  }
1060  }
1061 
1062  return lvLsReturn;
1063  }
virtual List<string> OKW.GUI.Selenium.SeAnyWin.MemorizeTooltip ( )
virtual
Author
Zoltán Hrabovszki
Date
2013.12.07
998  {
999  bool bOK = false;
1000  List<string> lvLsReturn = null;
1001 
1002  try
1003  {
1004  MyLogger.LogFunctionStartDebug("MemorizeTooltip");
1005 
1006  lvLsReturn = this.GetTooltip();
1007  bOK = true;
1008  }
1009  finally
1010  {
1011  if (bOK)
1012  {
1013  MyLogger.LogFunctionEndDebug(lvLsReturn);
1014  }
1015  else
1016  {
1017  MyLogger.LogFunctionEndDebug();
1018  }
1019  }
1020 
1021  return lvLsReturn;
1022  }
virtual List<string> OKW.GUI.Selenium.SeAnyWin.MemorizeValue ( )
virtual
Author
Zoltán Hrabovszki
Date
2013.12.14

Reimplemented in OKW.GUI.Selenium.SeLink, and OKW.GUI.Selenium.SeSimpleDataObjBase.

1487  {
1488  List<string> lvLsReturn = new List<string>();
1489  bool bOK = false;
1490 
1491  try
1492  {
1493  MyLogger.LogFunctionStartDebug("Memorize");
1494  lvLsReturn = this.GetValue();
1495  bOK = true;
1496  }
1497  finally
1498  {
1499  if (bOK)
1500  {
1501  MyLogger.LogFunctionEndDebug(lvLsReturn);
1502  }
1503  else
1504  {
1505  MyLogger.LogFunctionEndDebug();
1506  }
1507  }
1508 
1509  return lvLsReturn;
1510  }
virtual bool OKW.GUI.Selenium.SeAnyWin.NotExists ( )
virtual
Author
Zoltán Hrabovszki
Date
2013.11.11
505  {
506  this.MyLogger.LogFunctionStartDebug("Exists");
507  bool lvb_Return = false;
508  bool bOK = false;
509 
510  try
511  {
512  this.Me();
513  lvb_Return = true;
514  bOK = true;
515  }
516  catch (NoSuchElementException)
517  {
518  this.MyLogger.LogPrint("NoSuchElementException");
519  lvb_Return = true;
520  bOK = true;
521  }
522  finally
523  {
524  if (bOK)
525  {
526  this.MyLogger.LogFunctionEndDebug(lvb_Return);
527  }
528  else
529  {
530  this.MyLogger.LogFunctionEndDebug();
531  }
532  }
533 
534  return lvb_Return;
535  }
virtual void OKW.GUI.Selenium.SeAnyWin.SetFocus ( )
virtual
Author
Zoltán Hrabovszki
Date
2013.11.11
550  {
551  this.LogFunctionStartDebug("SetFocus");
552 
553  try
554  {
555  // Wenn das Objekt nicht existiert mit Exception beenden...
556  if (!this.GetExists())
557  {
558  string lvsLM = this.LM.GetMessage("Common", "OKWGUIObjectNotFoundException", "SetFocus()");
559  throw new OKWGUIObjectNotFoundException(lvsLM);
560  }
561 
562  this.Me().SendKeys(string.Empty);
563  }
564  finally
565  {
566  this.LogFunctionEndDebug();
567  }
568 
569  return;
570  }
virtual bool GetExists()
Definition: SeAnyWin.cs:181
virtual void OKW.GUI.Selenium.SeAnyWin.TypeKey ( List< string >  fps_Values)
virtual
Author
Zoltan Hrabovszki
Date
2013.04.11
583  {
584  try
585  {
586  this.LogFunctionStartDebug("TypeKey", "fps_Values", fps_Values.ToString());
587 
588  // Wenn das Objekt nicht existiert mit Exception beenden...
589  if (!this.GetExists())
590  {
591  string lvsLM = this.LM.GetMessage("Common", "OKWGUIObjectNotFoundException", "SeAnyWin.TypeKey()");
592  throw new OKWGUIObjectNotFoundException(lvsLM);
593  }
594 
595  // We are using a local-Variable to prevent multiple call of Me() in foreach-loop
596  IWebElement lv_WebElement = this.Me();
597 
598  // Loop through all List-Values with foreach...
599  foreach (string lvsValue in fps_Values)
600  {
601  Logger.Instance.LogPrintDebug(">>" + lvsValue + "<<");
602  lv_WebElement.SendKeys(lvsValue);
603  }
604  }
605  finally
606  {
607  this.LogFunctionEndDebug();
608  }
609 
610  return;
611  }
virtual bool GetExists()
Definition: SeAnyWin.cs:181
virtual List<string> OKW.GUI.Selenium.SeAnyWin.VerifyCaption ( List< string >  fplsExpectedValue)
virtual
Author
Zoltán Hrabovszki
Date
2013.12.07

Reimplemented in OKW.GUI.Selenium.SePushButton.

1243  {
1244  MyLogger.LogFunctionStartDebug("VerifyCaption", "fplsExpectedValue", fplsExpectedValue[0]);
1245 
1246  List<string> lvLsReturn = new List<string>();
1247  bool bOK = false;
1248 
1249  try
1250  {
1251  // GetValue_TOOLTIP als delegaten definieren
1252  OKW_Wait4Value.ListStringCallBack myCallBack = this.GetCaption;
1253 
1254  // Nun mit dem erwarteten Sollwert und GetValue_TOOLTIP ggf. auf den Wert Warten.
1255  lvLsReturn = MyWait4Value.Wait4Value(fplsExpectedValue, myCallBack);
1256 
1257  bOK = true;
1258  }
1259  finally
1260  {
1261  if (bOK)
1262  {
1263  MyLogger.LogFunctionEndDebug(lvLsReturn);
1264  }
1265  else
1266  {
1267  MyLogger.LogFunctionEndDebug();
1268  }
1269  }
1270 
1271  return lvLsReturn;
1272  }
virtual bool OKW.GUI.Selenium.SeAnyWin.VerifyExists ( bool  fpbExpectedValue)
virtual
Author
Zoltán Hrabovszki
Date
2013.12.07
628  {
629  this.MyLogger.LogFunctionStartDebug("VerifyExists", "fpbExpectedValue", fpbExpectedValue.ToString());
630 
631  bool lvbReturn = true;
632  bool bOK = false;
633 
634  try
635  {
636  // GetExists als delegaten definieren
637  OKW_Wait4Value.BoolCallBack myCallBack = this.GetExists;
638 
639  // Nun mit dem erwarteten Sollwert und GetExists ggf. auf den erwartetetn Wert warten.
640  lvbReturn = this.MyWait4Value.Wait4Value(fpbExpectedValue, myCallBack);
641 
642  if (fpbExpectedValue == true && lvbReturn != fpbExpectedValue )
643  {
644  this.MyLogger.LogPrint( string.Format( "Locator: >>{0}<<", this.Locator) );
645  }
646 
647  bOK = true;
648  }
649  finally
650  {
651  if (bOK)
652  {
653  this.MyLogger.LogFunctionEndDebug(lvbReturn);
654  }
655  else
656  {
657  this.MyLogger.LogFunctionEndDebug();
658  }
659  }
660 
661  return lvbReturn;
662  }
virtual bool OKW.GUI.Selenium.SeAnyWin.VerifyHasFocus ( bool  fpbExpectedValue)
virtual

Ermittelt den textuellen Inhalt des ToolTips.

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

Returns
true falls Objekt den Fokus hat, sonst false.
Author
Zoltan Hrabovszki
Date
2013.04.11
1198  {
1199  bool lvbReturn = false;
1200  bool bOK = false;
1201 
1202  try
1203  {
1204  MyLogger.LogFunctionStartDebug("VerifyHasFocus", "fpbExpectedValue", fpbExpectedValue.ToString());
1205 
1206  // GetValue_TOOLTIP als delegaten definieren
1207  OKW_Wait4Value.BoolCallBack myCallBack = this.GetHasFocus;
1208 
1209  // Nun mit dem erwarteten Sollwert und GetHasFocus ggf. auf den Wert Warten.
1210  lvbReturn = MyWait4Value.Wait4Value(fpbExpectedValue, myCallBack);
1211  bOK = true;
1212  }
1213  finally
1214  {
1215  if (bOK)
1216  {
1217  MyLogger.LogFunctionEndDebug(lvbReturn);
1218  }
1219  else
1220  {
1221  MyLogger.LogFunctionEndDebug();
1222  }
1223  }
1224 
1225  return lvbReturn;
1226  }
virtual bool OKW.GUI.Selenium.SeAnyWin.VerifyIsActive ( bool  fpbExpectedValue)
virtual
Author
Zoltán Hrabovszki
Date
2013.12.07
676  {
677  this.MyLogger.LogFunctionStartDebug("VerifyIsActive", "fpbExpectedValue", fpbExpectedValue.ToString());
678 
679  bool lvbReturn = true;
680  bool bOK = false;
681 
682  try
683  {
684  // GetExists als delegaten definieren
685  OKW_Wait4Value.BoolCallBack myCallBack = this.GetIsActive;
686 
687  // Nun mit dem erwarteten Sollwert und GetIsActive ggf. auf den erwarteten Wert warten.
688  lvbReturn = this.MyWait4Value.Wait4Value(fpbExpectedValue, myCallBack);
689 
690  bOK = true;
691  }
692  finally
693  {
694  if (bOK)
695  {
696  this.MyLogger.LogFunctionEndDebug(lvbReturn);
697  }
698  else
699  {
700  this.MyLogger.LogFunctionEndDebug();
701  }
702  }
703 
704  return lvbReturn;
705  }
virtual List<string> OKW.GUI.Selenium.SeAnyWin.VerifyLabel ( List< string >  fplsExpectedValue)
virtual
Author
Zoltán Hrabovszki
Date
2013.12.07
772  {
773  MyLogger.LogFunctionStartDebug("VerifyLabel", "fplsExpectedValue", fplsExpectedValue[0]);
774 
775  List<string> lvLsReturn = new List<string>();
776  bool bOK = false;
777 
778  try
779  {
780  // GetLabel als delegaten definieren
781  OKW_Wait4Value.ListStringCallBack myCallBack = this.GetLabel;
782 
783  // Nun mit dem erwarteten Sollwert und GetValue_TOOLTIP ggf. auf den Wert Warten.
784  lvLsReturn = MyWait4Value.Wait4Value(fplsExpectedValue, myCallBack);
785 
786  bOK = true;
787  }
788  finally
789  {
790  if (bOK)
791  {
792  MyLogger.LogFunctionEndDebug(lvLsReturn);
793  }
794  else
795  {
796  MyLogger.LogFunctionEndDebug();
797  }
798  }
799 
800  return lvLsReturn;
801  }
virtual List<string> OKW.GUI.Selenium.SeAnyWin.VerifyTooltip ( List< string >  fplsExpectedValue)
virtual
Author
Zoltán Hrabovszki
Date
2013.12.07
722  {
723  MyLogger.LogFunctionStartDebug("VerifyTooltip", "fplsExpectedValue", fplsExpectedValue[0]);
724 
725  List<string> lvLsReturn = new List<string>();
726  bool bOK = false;
727 
728  try
729  {
730  // GetValue_TOOLTIP als delegaten definieren
731  OKW_Wait4Value.ListStringCallBack myCallBack = this.GetTooltip;
732 
733  // Nun mit dem erwarteten Sollwert und GetValue_TOOLTIP ggf. auf den Wert Warten.
734  lvLsReturn = MyWait4Value.Wait4Value(fplsExpectedValue, myCallBack);
735 
736  bOK = true;
737  }
738  finally
739  {
740  if (bOK)
741  {
742  MyLogger.LogFunctionEndDebug(lvLsReturn);
743  }
744  else
745  {
746  MyLogger.LogFunctionEndDebug();
747  }
748  }
749 
750  return lvLsReturn;
751  }
virtual List<string> OKW.GUI.Selenium.SeAnyWin.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 in OKW.GUI.Selenium.SeLink, and OKW.GUI.Selenium.SeSimpleDataObjBase.

1524  {
1525  List<string> lvLsReturn = new List<string>();
1526  bool bOK = false;
1527 
1528  try
1529  {
1530  MyLogger.LogFunctionStartDebug("Memorize", "fplsExpectedValue", fplsExpectedValue[0]);
1531 
1532  // GetValue als delegaten definieren
1533  OKW_Wait4Value.ListStringCallBack myCallBack = this.GetValue;
1534 
1535  // Nun mit dem erwarteten Sollwert und GetValue ggf. auf den Wert Warten.
1536  lvLsReturn = MyWait4Value.Wait4Value(fplsExpectedValue, myCallBack);
1537 
1538  bOK = true;
1539  }
1540  finally
1541  {
1542  if (bOK)
1543  {
1544  MyLogger.LogFunctionEndDebug(lvLsReturn);
1545  }
1546  else
1547  {
1548  MyLogger.LogFunctionEndDebug();
1549  }
1550  }
1551 
1552  return lvLsReturn;
1553  }

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