OpenKeyWord  Build_ID: 457, Datum: 01.02.2020 07:45:48
Dont repeat yourself. - Do it once and only once!
SeInputButton.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.ArrayList;
43 import org.apache.commons.lang3.StringUtils;
44 import okw.exceptions.OKWFrameObjectMethodNotImplemented;
45 import okw.gui.OKWLocatorBase;
46 
121 public class SeInputButton extends SeAnyChildWindow
122 {
123 
130  public SeInputButton( String Locator, OKWLocatorBase... Locators )
131  {
132  super( Locator, Locators );
133  }
134 
135 
147  @Override // TODO define Prototype in BaseClass!
148  public ArrayList<String> getCaption()
149  {
150  ArrayList<String> lvLsReturn = new ArrayList<String>();
151  try
152  {
153  this.LogFunctionStartDebug( "GetCaption" );
154 
155  // Warten auf das Objekt. Wenn es nicht existiert mit Exception
156  // beenden...
157  this.WaitForMe();
158 
159  // The Attribute "value" wird als Beschriftung angezeigt...
160  String myAttribute = this.Me().getAttribute( "value" );
161  myAttribute = StringUtils.normalizeSpace( myAttribute );
162 
163  lvLsReturn.add( myAttribute );
164  }
165  finally
166  {
167  this.LogFunctionEndDebug( lvLsReturn );
168  }
169 
170  return lvLsReturn;
171  }
172 
184  @Override
185  public ArrayList<String> getValue()
186  {
187  // ArrayList<String> lvLsReturn = new ArrayList<String>();
188  try
189  {
190  LogFunctionStartDebug( "GetValue" );
191 
192  String lvsLM = this.LM.GetMessage( "Common", "OKWFrameObjectMethodNotImplemented", "getValue()" );
193  throw new OKWFrameObjectMethodNotImplemented( lvsLM );
194  }
195  finally
196  {
198  }
199  // return lvLsReturn;
200  }
201 }
okw.gui.OKWLocatorBase
Definition: OKWLocatorBase.java:3
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.SeInputButton.getCaption
ArrayList< String > getCaption()
Ermittelt den textuellen Inhalt der Caption/Überschrift des Objektes.
Definition: SeInputButton.java:148
okw.gui.AnyWinBase.LogFunctionEndDebug
void LogFunctionEndDebug()
Methode ruft die Methode Logger.Instance.LogFunctionEndDebug() auf.
Definition: AnyWinBase.java:298
okw.gui.adapter.selenium.SeAnyChildWindow
Definition: SeAnyChildWindow.java:74
okw.exceptions.OKWFrameObjectMethodNotImplemented
Die Ausnahme OKWFrameObjectMethodNotImplemented wird ausgelöst, wenn im Frame Objekt eine gegebene Me...
Definition: OKWFrameObjectMethodNotImplemented.java:65
okw.gui.adapter.selenium.SeInputButton.SeInputButton
SeInputButton(String Locator, OKWLocatorBase... Locators)
\~
Definition: SeInputButton.java:130
okw.gui.adapter.selenium.SeInputButton.getValue
ArrayList< String > getValue()
Ein SeInputButton hat keinen Wert! -> OKWFrameObjectMethodNotImplemented Auslösen!
Definition: SeInputButton.java:185
okw.gui.adapter.selenium.SeInputButton
Definition: SeInputButton.java:121
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.Me
WebElement Me()
Ermittelt aus dem gegebenen Locator das DOM-Elelement, welches das Objekt representiert.
Definition: SeAnyChildWindow.java:751
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