OpenKeyWord  Build_ID: 457, Datum: 01.02.2020 07:45:48
Dont repeat yourself. - Do it once and only once!
SeAnyChildWindow.java
1 /*
2  ==============================================================================
3  Author: Zoltán Hrabovszki <zh@openkeyword.de>
4 
5  Copyright © 2012 - 2019 IT-Beratung Hrabovszki
6  www.OpenKeyWord.de
7  ==============================================================================
8 
9  This file is part of OpenKeyWord.
10 
11  OpenKeyWord is free software: you can redistribute it and/or modify
12  it under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenKeyWord is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  GNU General Public License for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenKeyWord. If not, see <http://www.gnu.org/licenses/>.
23 
24  Diese Datei ist Teil von OpenKeyWord.
25 
26  OpenKeyWord ist Freie Software: Sie können es unter den Bedingungen
27  der GNU General Public License, wie von der Free Software Foundation,
28  Version 3 der Lizenz oder (nach Ihrer Wahl) jeder späteren
29  veröffentlichten Version, weiterverbreiten und/oder modifizieren.
30 
31  OpenKeyWord wird in der Hoffnung, dass es nützlich sein wird, aber
32  OHNE JEDE GEWÄHRLEISTUNG, bereitgestellt; sogar ohne die implizite
33  Gewährleistung der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK.
34  Siehe die GNU General Public License für weitere Details.
35 
36  Sie sollten eine Kopie der GNU General Public License zusammen mit
37  OpenKeyWord erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>.
38 */
39 
40 package okw.gui.adapter.selenium;
41 
42 import java.util.*;
43 
44 import okw.exceptions.OKWFrameObjectMethodNotImplemented;
45 import okw.exceptions.OKWGUIObjectNotFoundException;
46 import okw.gui.*;
47 import okw.gui.adapter.selenium.webdriver.SeDriver;
48 import okw.log.Logger_Sngltn;
49 import okw.LogMessenger;
50 import okw.OKW_Const_Sngltn;
51 
52 import org.apache.commons.lang3.StringUtils;
53 import org.openqa.selenium.By;
54 import org.openqa.selenium.WebElement;
55 
74 public class SeAnyChildWindow extends AnyChildwindow
75 {
76  protected LogMessenger LM = new LogMessenger( "GUI" );
77 
78  //protected OKWLocatorXPath _locator = null;
79 
88  protected String iframeID = null;
89 
90  public String get_iframeID() throws OKWGUIObjectNotFoundException
91  {
92  LogFunctionStartDebug( this.getClass().getSimpleName() + ".get_iframeID" );
93 
94  // Wenn die iframeID
95  if ( iframeID == null )
96  {
97  try
98  {
99  String myLocator = this.getLocator();
100 
101  LogPrintDebug( "Find iframe ID for the Locator: '" + myLocator + "'..." );
102  // ID ist noch nicht ermittelt -> ID Ermitteln
103  String myiframeID = SeDriver.getInstance().getFrameID4Locator( myLocator );
104  LogPrintDebug( "Frame ID found: '" + myiframeID + "'" );
105 
106  // Denn Aktuellen wert merken.
107  set_iframeID( myiframeID );
108  }
109  finally
110  {
112  }
113  }
114  else
115  {
117  }
118 
119  return iframeID;
120  }
121 
122  public void set_iframeID( String iframeID )
123  {
124  LogFunctionStartDebug( "SeAnyChildWindow.set_iframeID", "iframeID", iframeID );
125  this.iframeID = iframeID;
127  }
128 
129  public SeAnyChildWindow( )
130  {
131  _locator = new OKWLocatorXPath( );
132  }
133 
134 
148  public SeAnyChildWindow( String fpsLocator, OKWLocatorBase... locators )
149  {
150  _locator = new OKWLocatorXPath( fpsLocator, locators );
151  this.iframeID = null;
152  }
153 
154 
168  public void ClickOn()
169  {
170  try
171  {
172  this.LogFunctionStartDebug( "ClickOn" );
173 
174  // Warten auf das Objekt. Wenn es nicht existiert wird mit OKWGUIObjectNotFoundException beendet...
175  this.WaitForMe();
176 
177  this.Me().click();
178  }
179  finally
180  {
181  this.LogFunctionEndDebug();
182  }
183  }
184 
185 
195  public ArrayList<String> getCaption()
196  {
197  ArrayList<String> lvLsReturn = new ArrayList<String>();
198 
199  try
200  {
201  this.LogFunctionStartDebug( "GetCaption" );
202 
203  // Warten auf das Objekt. Wenn es nicht existiert wird mit OKWGUIObjectNotFoundException beendet...
204  this.WaitForMe();
205 
206  // The Attribute "textContent" wird als Beschriftung angezeigt...
207  String myAttribute = this.Me().getAttribute( "textContent" );
208  myAttribute = StringUtils.normalizeSpace( myAttribute );
209 
210  lvLsReturn.add( myAttribute );
211  }
212  finally
213  {
214  this.LogFunctionEndDebug( lvLsReturn );
215  }
216  return lvLsReturn;
217  }
218 
234  public Boolean getExists()
235  {
236  Boolean lvbReturn = false;
237  List<WebElement> meme = null;
238 
239  String myLocator = null;
240 
241  try
242  {
243  LogFunctionStartDebug( "getExists" );
244 
245  myLocator = this.getLocator();
246 
247  // Wenn iframe gesetz umschalten auf das iframe sonst zurücksetzten auf default.
248  meme = SeDriver.getInstance().getElements( get_iframeID(), myLocator );
249 
250  if ( meme.size() == 0 )
251  {
252  lvbReturn = false;
253  }
254  else if ( meme.size() > 1 )
255  {
256  String lvsPrintMe = "Locator ist nicht eindeutig, es wurden mehrer GUI-Objekt gefunden: Locator: >>" + this.getLocator() + "<<";
257  LogWarning( lvsPrintMe );
258 
259  lvbReturn = false;
260  }
261  else
262  {
263  lvbReturn = true;
264  }
265  }
267  {
268  LogPrintDebug( "OKWGUIObjectNotFoundException" );
269  lvbReturn = false;
270  }
271  finally
272  {
273  LogFunctionEndDebug( lvbReturn );
274  }
275  return lvbReturn;
276  }
277 
288  public Boolean getHasFocus()
289  {
290  Boolean lvbReturn = false;
291 
292  try
293  {
294  this.LogFunctionStartDebug( "getHasFocus" );
295 
296  // Warten auf das Objekt. Wenn es nicht existiert wird mit OKWGUIObjectNotFoundException beendet...
297  this.WaitForMe();
298 
299  WebElement currentElement = SeDriver.getInstance().getDriver().switchTo().activeElement();
300 
301  lvbReturn = currentElement.equals( this.Me() );
302  }
303  finally
304  {
305  this.LogFunctionEndDebug( lvbReturn );
306  }
307 
308  return lvbReturn;
309  }
310 
319  public Boolean getIsActive()
320  {
321  Boolean lvbReturn = false;
322  String lvDisabled = null;
323 
324  try
325  {
326  LogFunctionStartDebug( "getIsActive" );
327 
328  // Warten auf das Objekt. Wenn es nicht existiert wird mit OKWGUIObjectNotFoundException beendet...
329  this.WaitForMe();
330 
331  lvDisabled = this.Me().getAttribute( "disabled" );
332 
333  if ( lvDisabled != null )
334  {
335  if ( lvDisabled.equals( "true" ) )
336  lvbReturn = false;
337  }
338  else
339  {
340  lvbReturn = true;
341  }
342 
343  }
344  finally
345  {
346  this.LogFunctionEndDebug( lvbReturn );
347  }
348 
349  return lvbReturn;
350  }
351 
363  public ArrayList<String> getLabel()
364  {
365  ArrayList<String> lvLsReturn = new ArrayList<String>();
366 
367  try
368  {
369  this.LogFunctionStartDebug( "getLabel" );
370 
371  // Warten auf das Objekt. Wenn es nicht existiert wird mit OKWGUIObjectNotFoundException beendet...
372  this.WaitForMe();
373 
374  // 1. Schritt: Attribute "id" is shown as Tooltip...
375  String lvsID = this.Me().getAttribute( "id" );
376 
377  // 2.schritt nun Tag Label mit for= "${lvsID}" finden.
378  WebElement label = SeDriver.getInstance().getDriver().findElement( By.xpath( "//label[@for='" + lvsID + "']" ) );
379 
380  // The Attribute "textContent" wird als Beschriftung angezeigt...
381  String myAttribute = label.getAttribute( "textContent" );
382  myAttribute = StringUtils.normalizeSpace( myAttribute );
383 
384  lvLsReturn.add( myAttribute );
385  }
386  finally
387  {
388  this.LogFunctionEndDebug( lvLsReturn );
389  }
390 
391  return lvLsReturn;
392  }
393 
394 
408  public ArrayList<String> getTooltip()
409 
410  {
411  ArrayList<String> lvLsReturn = new ArrayList<String>();
412 
413  try
414  {
415  this.LogFunctionStartDebug( "GetTooltip" );
416 
417  // Warten auf das Objekt. Wenn es nicht existiert wird mit OKWGUIObjectNotFoundException beendet...
418  this.WaitForMe();
419 
420  // The Attribute "title" is shown as Tooltip...
421  String myAttribute = this.Me().getAttribute( "title" );
422  myAttribute = StringUtils.normalizeSpace( myAttribute );
423 
424  lvLsReturn.add( myAttribute );
425  }
426  finally
427  {
428  this.LogFunctionEndDebug( lvLsReturn );
429  }
430 
431  return lvLsReturn;
432  }
433 
451  public ArrayList<String> getValue()
452  {
453  ArrayList<String> lvLsReturn = new ArrayList<String>();
454 
455  try
456  {
457  this.LogFunctionStartDebug( "getValue" );
458 
459  // Warten auf das Objekt. Wenn es nicht existiert wird mit OKWGUIObjectNotFoundException beendet...
460  this.WaitForMe();
461 
462  // Get Value from TextField and put this into the return ArrayList<String>
463  lvLsReturn.add( this.Me().getAttribute( "textContent" ) );
464  }
465  finally
466  {
467  this.LogFunctionEndDebug( lvLsReturn );
468  }
469 
470  return lvLsReturn;
471  }
472 
473 
489  public ArrayList<String> LogCaption()
490  {
491  ArrayList<String> lvLsReturn = null;
492 
493  try
494  {
495  this.LogFunctionStartDebug( "LogCaption" );
496 
497  lvLsReturn = this.getCaption();
498  }
499  finally
500  {
501  this.LogFunctionEndDebug( lvLsReturn );
502  }
503  return lvLsReturn;
504  }
505 
522  public boolean LogExists()
523  {
524  Boolean lvbReturn = null;
525 
526  try
527  {
528  this.LogFunctionStartDebug( "LogExists" );
529 
530  lvbReturn = this.getExists();
531  }
532  finally
533  {
534  this.LogFunctionEndDebug( lvbReturn );
535  }
536 
537  return lvbReturn;
538  }
539 
556  public boolean LogHasFocus()
557  {
558  Boolean lvbReturn = null;
559 
560  try
561  {
562  this.LogFunctionStartDebug( "LogHasFocus" );
563 
564  lvbReturn = this.getHasFocus();
565  }
566  finally
567  {
568  this.LogFunctionEndDebug( lvbReturn );
569  }
570 
571  return lvbReturn;
572  }
573 
590  public boolean LogIsActive()
591  {
592  Boolean lvbReturn = null;
593 
594  try
595  {
596  this.LogFunctionStartDebug( "LogIsActive" );
597 
598  lvbReturn = this.getIsActive();
599  }
600  finally
601  {
602  this.LogFunctionEndDebug( lvbReturn );
603  }
604 
605  return lvbReturn;
606  }
607 
623  public ArrayList<String> LogLabel()
624  {
625  ArrayList<String> lvLsReturn = null;
626 
627  try
628  {
629  this.LogFunctionStartDebug( "LogLabel" );
630 
631  lvLsReturn = this.getLabel();
632  }
633  finally
634  {
635  this.LogFunctionEndDebug( lvLsReturn );
636  }
637 
638  return lvLsReturn;
639  }
640 
656  public ArrayList<String> LogPlaceholder()
657  {
658  ArrayList<String> lvLsReturn = null;
659 
660  try
661  {
662  this.LogFunctionStartDebug( "LogLabel" );
663 
664  lvLsReturn = this.getLabel();
665  }
666  finally
667  {
668  this.LogFunctionEndDebug( lvLsReturn );
669  }
670 
671  return lvLsReturn;
672  }
673 
689  public ArrayList<String> LogTooltip()
690  {
691  ArrayList<String> lvLsReturn = null;
692 
693  try
694  {
695  this.LogFunctionStartDebug( "LogTooltip" );
696 
697  lvLsReturn = this.getTooltip();
698  }
699  finally
700  {
701  this.LogFunctionEndDebug( lvLsReturn );
702  }
703 
704  return lvLsReturn;
705  }
706 
724  public ArrayList<String> LogValue()
725  {
726  ArrayList<String> lvLsReturn = new ArrayList<String>();
727 
728  try
729  {
730  this.LogFunctionStartDebug( "LogValue" );
731 
732  lvLsReturn = this.getValue();
733  }
734  finally
735  {
736  this.LogFunctionEndDebug( lvLsReturn );
737  }
738 
739  return lvLsReturn;
740  }
741 
751  public WebElement Me()
752  {
753  WebElement me = null;
754 
755  me = SeDriver.getInstance().getElement( get_iframeID(), this.getLocator() );
756 
757  return me;
758  }
759 
775  public ArrayList<String> MemorizeCaption()
776  {
777  ArrayList<String> lvLsReturn = null;
778 
779  try
780  {
781  this.LogFunctionStartDebug( "MemorizeCaption" );
782 
783  lvLsReturn = this.getCaption();
784  }
785  finally
786  {
787  this.LogFunctionEndDebug( lvLsReturn );
788  }
789 
790  return lvLsReturn;
791  }
792 
809  public boolean MemorizeExists()
810  {
811  Boolean lvbReturn = false;
812 
813  try
814  {
815  this.LogFunctionStartDebug( "MemorizeExists" );
816 
817  lvbReturn = this.getExists();
818  }
819  finally
820  {
821  this.LogFunctionEndDebug( lvbReturn );
822  }
823 
824  return lvbReturn;
825  }
826 
842  public boolean MemorizeHasFocus()
843  {
844  Boolean lvbReturn = null;
845 
846  try
847  {
848  this.LogFunctionStartDebug( "MemorizeHasFocus" );
849 
850  lvbReturn = this.getHasFocus();
851  }
852  finally
853  {
854  this.LogFunctionEndDebug( lvbReturn );
855  }
856 
857  return lvbReturn;
858  }
859 
877  public boolean MemorizeIsActive()
878  {
879  Boolean lvbReturn = false;
880 
881  try
882  {
883  LogFunctionStartDebug( "MemorizeIsActive" );
884 
885  lvbReturn = this.getIsActive();
886  }
887  finally
888  {
889  LogFunctionEndDebug( lvbReturn );
890  }
891 
892  return lvbReturn;
893  }
894 
910  public ArrayList<String> MemorizeLabel()
911  {
912  ArrayList<String> lvLsReturn = null;
913 
914  try
915  {
916  LogFunctionStartDebug( "MemorizeLabel" );
917 
918  lvLsReturn = this.getLabel();
919  }
920  finally
921  {
922  LogFunctionEndDebug( lvLsReturn );
923  }
924 
925  return lvLsReturn;
926  }
927 
943  public ArrayList<String> MemorizePlaceholder()
944  {
945  ArrayList<String> lvLsReturn = null;
946 
947  try
948  {
949  this.LogFunctionStartDebug( "MemorizePlaceholder" );
950 
951  lvLsReturn = this.getPlaceholder();
952  }
953  finally
954  {
955  this.LogFunctionEndDebug( lvLsReturn );
956  }
957 
958  return lvLsReturn;
959  }
960 
961 
978  public ArrayList<String> MemorizeTooltip()
979  {
980  ArrayList<String> lvLsReturn = null;
981 
982  try
983  {
984  this.LogFunctionStartDebug( "MemorizeTooltip" );
985 
986  lvLsReturn = this.getTooltip();
987  }
988  finally
989  {
990  this.LogFunctionEndDebug( lvLsReturn );
991  }
992 
993  return lvLsReturn;
994  }
995 
1010  public ArrayList<String> MemorizeValue()
1011  {
1012  ArrayList<String> lvLsReturn = new ArrayList<String>();
1013 
1014  try
1015  {
1016  this.LogFunctionStartDebug( "MemorizeValue" );
1017 
1018  lvLsReturn = this.getValue();
1019  }
1020  finally
1021  {
1022  this.LogFunctionEndDebug( lvLsReturn );
1023  }
1024 
1025  return lvLsReturn;
1026  }
1027 
1042  public Boolean _NotExists() throws Exception
1043  {
1044  LogFunctionStartDebug( "NotExists" );
1045  Boolean lvb_Return = null;
1046 
1047  try
1048  {
1049  this.Me();
1050  lvb_Return = false;
1051  }
1052  catch (NoSuchElementException e)
1053  {
1054  LogPrint( "NoSuchElementException" );
1055  lvb_Return = true;
1056  }
1057  finally
1058  {
1059  LogFunctionEndDebug( lvb_Return );
1060  }
1061  return lvb_Return;
1062  }
1063 
1073  public void Select( ArrayList<String> Values )
1074  {
1075 
1076  try
1077  {
1078  this.LogFunctionStartDebug( "Select" );
1079 
1080  String lvsLM = this.LM.GetMessage( "Common", "OKWFrameObjectMethodNotImplemented", "Select( ArrayList<String> )" );
1081  throw new OKWFrameObjectMethodNotImplemented( lvsLM );
1082  }
1083  finally
1084  {
1085  this.LogFunctionEndDebug();
1086  }
1087  }
1088 
1102  public void SelectMenu()
1103  {
1104  // ArrayList<String> lvLsReturn = new ArrayList<String>();
1105  try
1106  {
1107  this.LogFunctionStartDebug( "SelectMenu" );
1108 
1109  String lvsLM = this.LM.GetMessage( "Common", "OKWFrameObjectMethodNotImplemented", "SelectMenu()" );
1110  throw new OKWFrameObjectMethodNotImplemented( lvsLM );
1111  }
1112  finally
1113  {
1114  this.LogFunctionEndDebug();
1115  }
1116  }
1117 
1128  public void SelectMenu( ArrayList<String> Values )
1129  {
1130 
1131  try
1132  {
1133  this.LogFunctionStartDebug( "SelectMenu_Value" );
1134 
1135  String lvsLM = this.LM.GetMessage( "Common", "OKWFrameObjectMethodNotImplemented", "SelectMenu_Value()" );
1136  throw new OKWFrameObjectMethodNotImplemented( lvsLM );
1137  }
1138  finally
1139  {
1140  this.LogFunctionEndDebug();
1141  }
1142  }
1143 
1158  public void SetFocus() throws Exception
1159  {
1160 
1161  try
1162  {
1163  LogFunctionStartDebug( "SetFocus" );
1164 
1165  // Warten auf das Objekt. Wenn es nicht existiert wird mit OKWGUIObjectNotFoundException beendet...
1166  this.WaitForMe();
1167 
1168  this.Me().sendKeys( "" );
1169  }
1170  finally
1171  {
1173  }
1174  }
1175 
1185  public void SetValue( ArrayList<String> Values )
1186  {
1187 
1188  try
1189  {
1190  LogFunctionStartDebug( "SetValue" );
1191 
1192  String lvsLM = this.LM.GetMessage( "Common", "OKWGUIObjectNotFoundException", "SetValue()" );
1193  throw new OKWFrameObjectMethodNotImplemented( lvsLM );
1194  }
1195  finally
1196  {
1198  }
1199  }
1200 
1212  public void TypeKey( ArrayList<String> fps_Values )
1213  {
1214  try
1215  {
1216  LogFunctionStartDebug( "TypeKey", "fps_Values", fps_Values.toString() );
1217 
1218  // Warten auf das Objekt. Wenn es nicht existiert wird mit OKWGUIObjectNotFoundException beendet...
1219  this.WaitForMe();
1220 
1221  // We are using a local-Variable to prevent multiple call of Me() in foreach-loop
1222  WebElement lv_WebElement = this.Me();
1223 
1224  // Loop through all List-Values with foreach...
1225  for ( String Value : fps_Values )
1226  {
1227  Logger_Sngltn.getInstance().LogPrintDebug( ">>" + Value + "<<" );
1228 
1229  if ( Value.equals( OKW_Const_Sngltn.getInstance().GetOKWConst4Internalname( "DELETE" ) ) )
1230  {
1231  lv_WebElement.clear();
1232  }
1233  else
1234  {
1235  lv_WebElement.sendKeys( Value );
1236  }
1237  }
1238  }
1239  finally
1240  {
1242  }
1243  }
1244 
1258  public ArrayList<String> VerifyCaption()
1259  {
1260  ArrayList<String> lvLsReturn = new ArrayList<String>();
1261 
1262  try
1263  {
1264  this.LogFunctionStartDebug( "VerifyCaption" );
1265 
1266  // Nun mit dem erwarteten Sollwert und GetValue_TOOLTIP ggf. auf den Wert Warten.
1267  lvLsReturn = this.getCaption();
1268  }
1269  finally
1270  {
1271  this.LogFunctionEndDebug( lvLsReturn );
1272  }
1273 
1274  return lvLsReturn;
1275  }
1276 
1290  public Boolean VerifyExists()
1291  {
1292 
1293  Boolean lvbReturn = null;
1294 
1295  try
1296  {
1297  this.LogFunctionStartDebug( "VerifyExists" );
1298  lvbReturn = this.getExists();
1299  }
1300  finally
1301  {
1302  this.LogFunctionEndDebug( lvbReturn );
1303  }
1304 
1305  return lvbReturn;
1306  }
1307 
1320  public Boolean VerifyIsActive()
1321  {
1322 
1323  Boolean lvbReturn = null;
1324 
1325  try
1326  {
1327  LogFunctionStartDebug( "VerifyIsActive" );
1328 
1329  // Wert GetIsActive ggf. auf den erwarteten Wert warten.
1330  lvbReturn = this.getIsActive();
1331  }
1332  finally
1333  {
1334  LogFunctionEndDebug( lvbReturn );
1335  }
1336 
1337  return lvbReturn;
1338  }
1339 
1354  public Boolean VerifyHasFocus()
1355  {
1356  Boolean lvbReturn = false;
1357 
1358  try
1359  {
1360  this.LogFunctionStartDebug( "VerifyHasFocus" );
1361 
1362  lvbReturn = this.getHasFocus();
1363  }
1364  finally
1365  {
1366  this.LogFunctionEndDebug( lvbReturn );
1367  }
1368  return lvbReturn;
1369  }
1370 
1387  public ArrayList<String> VerifyLabel()
1388  {
1389  ArrayList<String> lvLsReturn = new ArrayList<String>();
1390 
1391  try
1392  {
1393  this.LogFunctionStartDebug( "VerifyLabel" );
1394 
1395  lvLsReturn = this.getLabel();
1396  }
1397  finally
1398  {
1399  this.LogFunctionEndDebug( lvLsReturn );
1400  }
1401 
1402  return lvLsReturn;
1403  }
1404 
1405 
1422  @Override
1423  public Integer VerifyMaxLength()
1424  {
1425  Integer lvLsReturn = null;
1426 
1427  try
1428  {
1429  this.LogFunctionStartDebug( "VerifyMaxLength" );
1430 
1431  lvLsReturn = this.getMaxLength();
1432  }
1433  finally
1434  {
1435  this.LogFunctionEndDebug( lvLsReturn.toString( ) );
1436  }
1437 
1438  return lvLsReturn;
1439  }
1440 
1441 
1458  @Override
1459  public Integer VerifyMinLength()
1460  {
1461  Integer lvLsReturn = null;
1462 
1463  try
1464  {
1465  this.LogFunctionStartDebug( "VerifyMinLength" );
1466 
1467  lvLsReturn = this.getMinLength();
1468  }
1469  finally
1470  {
1471  this.LogFunctionEndDebug( lvLsReturn.toString( ) );
1472  }
1473 
1474  return lvLsReturn;
1475  }
1476 
1500  public ArrayList<String> VerifyPlaceholder()
1501  {
1502  ArrayList<String> lvLsReturn = new ArrayList<String>();
1503 
1504  try
1505  {
1506  this.LogFunctionStartDebug( "VerifyPlaceholder" );
1507 
1508  lvLsReturn = this.getPlaceholder();
1509  }
1510  finally
1511  {
1512  this.LogFunctionEndDebug( lvLsReturn );
1513  }
1514 
1515  return lvLsReturn;
1516  }
1517 
1518 
1531  public ArrayList<String> VerifyTooltip()
1532  {
1533  ArrayList<String> lvLsReturn = new ArrayList<String>();
1534 
1535  try
1536  {
1537  this.LogFunctionStartDebug( "VerifyTooltip" );
1538 
1539  lvLsReturn = this.getTooltip();
1540  }
1541  finally
1542  {
1543  this.LogFunctionEndDebug( lvLsReturn );
1544  }
1545 
1546  return lvLsReturn;
1547  }
1548 
1559  public ArrayList<String> VerifyValue()
1560  {
1561  ArrayList<String> lvLsReturn = null;
1562 
1563  try
1564  {
1565  this.LogFunctionStartDebug( "VerifyValue" );
1566 
1567  // get the Actual Value.
1568  lvLsReturn = this.getValue();
1569  }
1570  finally
1571  {
1572  this.LogFunctionEndDebug( lvLsReturn );
1573  }
1574 
1575  return lvLsReturn;
1576  }
1577 
1582  public Boolean WaitForMe()
1583  {
1584  Boolean lvbReturn = super.WaitForMe();
1585 
1586  if ( !lvbReturn )
1587  {
1588  ResOpenList( "GUI-Object not found..." );
1589  LogPrint( "Locator: '" + this.getLocator() + "'" );
1590  ResCloseList();
1591 
1592  String lvsLM = this.LM.GetMessage( "Common", "OKWGUIObjectNotFoundException", "WaitForMe()" );
1593  throw new OKWGUIObjectNotFoundException( lvsLM );
1594  }
1595  return lvbReturn;
1596  }}
okw.gui.adapter.selenium.SeAnyChildWindow.getTooltip
ArrayList< String > getTooltip()
Ermittelt den textuellen Inhalt des ToolTips.
Definition: SeAnyChildWindow.java:408
okw.gui.OKWLocatorBase
Definition: OKWLocatorBase.java:3
okw.gui.OKWLocatorXPath
Definition: OKWLocatorXPath.java:5
okw.gui.adapter.selenium.SeAnyChildWindow.MemorizeCaption
ArrayList< String > MemorizeCaption()
Das ist die GUI-Adapter Methode, die durch das Schlüsselwort MemorizeCaption( FN, MemKey ) aufgerufen...
Definition: SeAnyChildWindow.java:775
okw.gui.adapter.selenium.SeAnyChildWindow.VerifyIsActive
Boolean VerifyIsActive()
Ermittelt/Prüft, ob das aktuelle Objekt aktiv ist.
Definition: SeAnyChildWindow.java:1320
okw.gui.adapter.selenium.SeAnyChildWindow.VerifyHasFocus
Boolean VerifyHasFocus()
Ermittelt ob das GUI-Objekt den Fokus hat.
Definition: SeAnyChildWindow.java:1354
okw.gui.AnyWinBase.getLocator
String getLocator()
Holt den vollständig (rekursiv) aufgelösten (z.B.
Definition: AnyWinBase.java:114
okw.gui.adapter.selenium.SeAnyChildWindow.WaitForMe
Boolean WaitForMe()
Wartet auf das Objekt Wenn kein Fenster gefunden wird,.
Definition: SeAnyChildWindow.java:1582
okw.gui.adapter.selenium.SeAnyChildWindow.LogTooltip
ArrayList< String > LogTooltip()
Das ist die GUI-Adapter Methode, die durch das Schlüsselwort refLogTooltip aufgerufen wird.
Definition: SeAnyChildWindow.java:689
okw.gui.adapter.selenium.webdriver.SeDriver
Pattern Singelton.
Definition: SeDriver.java:60
okw.gui.adapter.selenium.SeAnyChildWindow.MemorizeValue
ArrayList< String > MemorizeValue()
Das ist die GUI-Adapter Methode, die durch das Schlüsselwort refMemorizeValue aufgerufen wird.
Definition: SeAnyChildWindow.java:1010
okw.LogMessenger
LogMessenger liest Log-Meldungen sprachspezifisch für die im Konstruktor gegeben Klasse aus der Zugeh...
Definition: LogMessenger.java:84
okw.gui.adapter.selenium.SeAnyChildWindow.getHasFocus
Boolean getHasFocus()
Methode liefert den aktuellen Zustand Wert des Focus.
Definition: SeAnyChildWindow.java:288
okw.gui.adapter.selenium.SeAnyChildWindow.getCaption
ArrayList< String > getCaption()
Ermittelt den textuellen Inhalt der Überschrift eines HTML-Tags anhand des Attributee "textContent".
Definition: SeAnyChildWindow.java:195
okw.gui.adapter.selenium.SeAnyChildWindow.getValue
ArrayList< String > getValue()
Liest den aktuellen sichtbaren Wert/Text des HTML-Tags aus.
Definition: SeAnyChildWindow.java:451
okw.gui.adapter.selenium.SeAnyChildWindow.LogValue
ArrayList< String > LogValue()
Das ist die GUI-Adapter Methode, die durch das Schlüsselwort refLogValue aufgerufen wird.
Definition: SeAnyChildWindow.java:724
okw.gui.adapter.selenium.SeAnyChildWindow.VerifyCaption
ArrayList< String > VerifyCaption()
Ermittelt den textuellen Inhalt des ToolTips.
Definition: SeAnyChildWindow.java:1258
okw.log.Logger_Sngltn.getInstance
static Logger_Sngltn getInstance()
Zentrale Logger-Klasse stellt Logger-Methoden innerhalb von OKW zur Verfügung.
Definition: Logger_Sngltn.java:88
okw.gui.adapter.selenium.SeAnyChildWindow.getExists
Boolean getExists()
Prüft die Existenz des aktuellen Objektes.
Definition: SeAnyChildWindow.java:234
okw.gui.adapter.selenium.SeAnyChildWindow.LogIsActive
boolean LogIsActive()
Das ist die GUI-Adapter Methode, die durch das Schlüsselwort refLogIsActive aufgerufen wird.
Definition: SeAnyChildWindow.java:590
okw.gui.AnyWinBase.LogFunctionEndDebug
void LogFunctionEndDebug()
Methode ruft die Methode Logger.Instance.LogFunctionEndDebug() auf.
Definition: AnyWinBase.java:298
okw.gui.adapter.selenium.SeAnyChildWindow.LogLabel
ArrayList< String > LogLabel()
Das ist die GUI-Adapter Methode, die durch das Schlüsselwort refLogLabel aufgerufen wird.
Definition: SeAnyChildWindow.java:623
okw.gui.adapter.selenium.SeAnyChildWindow.VerifyLabel
ArrayList< String > VerifyLabel()
Ermittelt den textuellen Inhalt des Labels für Prüfewert.
Definition: SeAnyChildWindow.java:1387
okw.gui.adapter.selenium.SeAnyChildWindow
Definition: SeAnyChildWindow.java:74
okw.gui.adapter.selenium.SeAnyChildWindow.LogCaption
ArrayList< String > LogCaption()
Das ist die GUI-Adapter Methode, die durch das Schlüsselwort LogCaption( FN, ExpVal ) aufgerufen wird...
Definition: SeAnyChildWindow.java:489
okw.gui.adapter.selenium.SeAnyChildWindow.VerifyMaxLength
Integer VerifyMaxLength()
Ermittelt die maximale Lenge des Wertes für Prüfewert.
Definition: SeAnyChildWindow.java:1423
okw.gui.adapter.selenium.SeAnyChildWindow.VerifyValue
ArrayList< String > VerifyValue()
Ermittelt den textuellen Inhalt des markierten Textes für Prüfewert.
Definition: SeAnyChildWindow.java:1559
okw.gui.adapter.selenium.SeAnyChildWindow.MemorizeExists
boolean MemorizeExists()
Das ist die GUI-Adapter Methode, die durch das Schlüsselwort refMemorizeExists aufgerufen wird.
Definition: SeAnyChildWindow.java:809
okw.exceptions.OKWGUIObjectNotFoundException
Diese Ausnahme wird ausgelöst, wenn ein GUI-Objekt zu den im Frame gegebenen Objekterkennungseigensch...
Definition: OKWGUIObjectNotFoundException.java:69
okw.gui.adapter.selenium.SeAnyChildWindow.MemorizeLabel
ArrayList< String > MemorizeLabel()
Das ist die GUI-Adapter Methode, die durch das Schlüsselwort refMemorizeLabel aufgerufen wird.
Definition: SeAnyChildWindow.java:910
okw.gui.adapter.selenium.SeAnyChildWindow.MemorizeHasFocus
boolean MemorizeHasFocus()
Das ist die GUI-Adapter Methode, die durch das Schlüsselwort refMemorizeHasFocus aufgerufen wird.
Definition: SeAnyChildWindow.java:842
okw.gui.adapter.selenium.SeAnyChildWindow.VerifyPlaceholder
ArrayList< String > VerifyPlaceholder()
Ermittelt den Text-Inhalt des Platzhalter für VerifyPlaceholder().
Definition: SeAnyChildWindow.java:1500
okw.exceptions.OKWFrameObjectMethodNotImplemented
Die Ausnahme OKWFrameObjectMethodNotImplemented wird ausgelöst, wenn im Frame Objekt eine gegebene Me...
Definition: OKWFrameObjectMethodNotImplemented.java:65
okw.gui.adapter.selenium.SeAnyChildWindow.SetValue
void SetValue(ArrayList< String > Values)
Definition: SeAnyChildWindow.java:1185
okw.gui.adapter.selenium.SeAnyChildWindow.SelectMenu
void SelectMenu()
Muss in den Menü-Objekten Implementiert werden!
Definition: SeAnyChildWindow.java:1102
okw.gui.adapter.selenium.SeAnyChildWindow.MemorizeIsActive
boolean MemorizeIsActive()
Das ist die GUI-Adapter Methode, die durch das Schlüsselwort refMemorizeIsActive aufgerufen wird.
Definition: SeAnyChildWindow.java:877
okw.gui.adapter.selenium.SeAnyChildWindow.getLabel
ArrayList< String > getLabel()
Ermittelt den textuellen Inhalt des Labels.
Definition: SeAnyChildWindow.java:363
okw.gui.adapter.selenium.webdriver.SeDriver.getFrameID4Locator
String getFrameID4Locator(String fpsLocator)
Ermittelt die iFrame ID zum gegeben Lokator fpsLocator.
Definition: SeDriver.java:215
okw.gui.adapter.selenium.webdriver.SeDriver.getInstance
static SeDriver getInstance()
Gibt die Instance für die einzige Instanz dieser Klasse zurück.
Definition: SeDriver.java:102
okw.gui.adapter.selenium.SeAnyChildWindow.LogExists
boolean LogExists()
Das ist die GUI-Adapter Methode, die durch das Schlüsselwort refLogExists aufgerufen wird.
Definition: SeAnyChildWindow.java:522
okw.gui.AnyChildwindow
Definition: AnyChildwindow.java:60
okw.gui.adapter.selenium.SeAnyChildWindow.MemorizePlaceholder
ArrayList< String > MemorizePlaceholder()
Das ist die GUI-Adapter Methode, die durch das Schlüsselwort refMemorizePlaceholder aufgerufen wird.
Definition: SeAnyChildWindow.java:943
okw.gui.adapter.selenium.SeAnyChildWindow._NotExists
Boolean _NotExists()
Prüft die nicht Existenz des aktuellen Objektes.
Definition: SeAnyChildWindow.java:1042
okw.gui.adapter.selenium.SeAnyChildWindow.VerifyExists
Boolean VerifyExists()
Ermittelt/Prüft, ob das aktuelle Objekt existiert.
Definition: SeAnyChildWindow.java:1290
okw.log.Logger_Sngltn.LogPrintDebug
void LogPrintDebug(String fpsMessage)
Loggt eine Nachricht.
Definition: Logger_Sngltn.java:520
okw.gui.adapter.selenium.SeAnyChildWindow.SeAnyChildWindow
SeAnyChildWindow(String fpsLocator, OKWLocatorBase... locators)
Konstruktor der Klasse.
Definition: SeAnyChildWindow.java:148
okw.gui.adapter.selenium.SeAnyChildWindow.getIsActive
Boolean getIsActive()
Ermittelt, ob das aktuellen Objekt aktiv ist.
Definition: SeAnyChildWindow.java:319
okw.gui.adapter.selenium.SeAnyChildWindow.VerifyMinLength
Integer VerifyMinLength()
Ermittelt die monimale Lenge des Wertes für Prüfewert.
Definition: SeAnyChildWindow.java:1459
okw.gui.adapter.selenium.SeAnyChildWindow.MemorizeTooltip
ArrayList< String > MemorizeTooltip()
Das ist die GUI-Adapter Methode, die durch das Schlüsselwort refMemorizeTooltip aufgerufen wird.
Definition: SeAnyChildWindow.java:978
okw.gui.adapter.selenium.SeAnyChildWindow.LogHasFocus
boolean LogHasFocus()
Das ist die GUI-Adapter Methode, die durch das Schlüsselwort refLogHasFocus aufgerufen wird.
Definition: SeAnyChildWindow.java:556
okw.gui.adapter.selenium.SeAnyChildWindow.VerifyTooltip
ArrayList< String > VerifyTooltip()
Ermittelt den textuellen Inhalt des ToolTips für Prüfewert.
Definition: SeAnyChildWindow.java:1531
okw.gui.adapter.selenium.SeAnyChildWindow.Select
void Select(ArrayList< String > Values)
Definition: SeAnyChildWindow.java:1073
okw.gui.adapter.selenium.SeAnyChildWindow.SetFocus
void SetFocus()
Setzt den Focus auf das Objekt.
Definition: SeAnyChildWindow.java:1158
okw.LogMessenger.GetMessage
String GetMessage(String MethodName, String TextKey)
Holt die Log-Meldung für MethodeNmae/Textkey ohne weitere Parameter.
Definition: LogMessenger.java:137
okw.gui.adapter.selenium.SeAnyChildWindow.iframeID
String iframeID
If iframeID IS null the iFrame is to be checked else if iframeID IS "" then iFrame is switchTo "defau...
Definition: SeAnyChildWindow.java:88
okw.OKW_Const_Sngltn.getInstance
static OKW_Const_Sngltn getInstance()
Holt die einzige Instanz dieser Klasse.
Definition: OKW_Const_Sngltn.java:277
okw.OKW_Const_Sngltn
OKW_Const verwaltet die sprachabhängigen OKW-Konstanten.
Definition: OKW_Const_Sngltn.java:127
okw.gui.adapter.selenium.webdriver.SeDriver.getElements
List< WebElement > getElements(String fpsFrameID, String fpsLocator)
Ermittelt das Webelement mit der gegebenen frameID und dem gegebenen Locator.
Definition: SeDriver.java:430
okw.gui.adapter.selenium.SeAnyChildWindow.Me
WebElement Me()
Ermittelt aus dem gegebenen Locator das DOM-Elelement, welches das Objekt representiert.
Definition: SeAnyChildWindow.java:751
okw.gui.adapter.selenium.SeAnyChildWindow.TypeKey
void TypeKey(ArrayList< String > fps_Values)
Tastatureingabe in das aktuelle Objekt.
Definition: SeAnyChildWindow.java:1212
okw.gui.adapter.selenium.SeAnyChildWindow.SelectMenu
void SelectMenu(ArrayList< String > Values)
Muss in den Menü-Objekten Implementiert werden! Daher wird hier ein OKWFrameObjectMethodNotImplemente...
Definition: SeAnyChildWindow.java:1128
okw.gui.AnyWinBase.LogFunctionStartDebug
void LogFunctionStartDebug(String fpsMethodName)
Methode ruft die Methode Logger.Instance.LogFunctionStartDebug(fps_FunctionName), und erweitert den g...
Definition: AnyWinBase.java:212
okw.gui.adapter.selenium.webdriver.SeDriver.getElement
WebElement getElement(String fpsFrameID, String fpsLocator)
Ermittelt das Webelement mit der gegebenen frameID und dem gegebenen Locator.
Definition: SeDriver.java:369
okw.log.Logger_Sngltn
Definition: Logger_Sngltn.java:54
okw.gui.adapter.selenium.SeAnyChildWindow.ClickOn
void ClickOn()
Das ist die GUI-Adapter Methode, die durch das Schlüsselwort ClickOn( FN ) aufgerufen wird.
Definition: SeAnyChildWindow.java:168
okw.OKW_Const_Sngltn.GetOKWConst4Internalname
String GetOKWConst4Internalname(String fpsInternalname)
Methode ermittelt für Internalname und der aktuell eingestellten Sprache den Wert für OKWConst.
Definition: OKW_Const_Sngltn.java:608
okw.gui.adapter.selenium.SeAnyChildWindow.LogPlaceholder
ArrayList< String > LogPlaceholder()
Das ist die GUI-Adapter Methode, die durch das Schlüsselwort refLogPlaceholder aufgerufen wird.
Definition: SeAnyChildWindow.java:656