OpenKeyWord  Build_ID: 457, Datum: 01.02.2020 07:45:48
Dont repeat yourself. - Do it once and only once!
SeButton.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 
44 import okw.exceptions.OKWFrameObjectMethodNotImplemented;
45 import okw.gui.OKWLocatorBase;
46 import org.apache.commons.lang3.StringUtils;
47 
121 public class SeButton extends SeAnyChildWindow
122 {
123 
130  public SeButton( 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 "textContent" wird als Beschriftung angezeigt...
160  String myAttribute = this.Me().getAttribute( "textContent" );
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 
183  @Override
184  public ArrayList<String> VerifyValue( )
185  {
186  throw new OKWFrameObjectMethodNotImplemented("The method 'public ArrayList<String> VerifyValue( )' is not defined for your GUI-Object. Please define first the methode!");
187  }
188 }
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.SeButton
Definition: SeButton.java:121
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.gui.adapter.selenium.SeButton.SeButton
SeButton(String Locator, OKWLocatorBase... Locators)
\~
Definition: SeButton.java:130
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.Me
WebElement Me()
Ermittelt aus dem gegebenen Locator das DOM-Elelement, welches das Objekt representiert.
Definition: SeAnyChildWindow.java:751
okw.gui.adapter.selenium.SeButton.VerifyValue
ArrayList< String > VerifyValue()
Ein SeInputButton hat keinen Wert! -> OKWFrameObjectMethodNotImplemented Auslösen!
Definition: SeButton.java:184
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.SeButton.__getCaption
ArrayList< String > __getCaption()
Ermittelt den textuellen Inhalt der Caption/Überschrift des Objektes.
Definition: SeButton.java:148