OpenKeyWord  Build_ID: 457, Datum: 01.02.2020 07:45:48
Dont repeat yourself. - Do it once and only once!
SeImage.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 package okw.gui.adapter.selenium;
40 
41 import java.util.ArrayList;
42 
43 import okw.exceptions.OKWFrameObjectMethodNotImplemented;
44 import okw.gui.OKWLocatorBase;
45 
112 public class SeImage extends SeAnyChildWindow
113 {
114 
118  public SeImage( String Locator, OKWLocatorBase... Locators )
119  {
120  super( Locator, Locators );
121  }
122 
123 
131  @Override
132  public ArrayList<String> getValue()
133  {
134  ArrayList<String> lvLsReturn = new ArrayList<String>();
135 
136  try
137  {
138  this.LogFunctionStartDebug( "getValue" );
139 
140  // Warten auf das Objekt. Wenn es nicht existiert wird mit OKWGUIObjectNotFoundException beendet...
141  this.WaitForMe();
142 
143  // Get Value from TextField and put this into the return ArrayList<String>
144  lvLsReturn.add( this.Me().getAttribute( "src" ) );
145  }
146  finally
147  {
148  this.LogFunctionEndDebug( lvLsReturn );
149  }
150 
151  return lvLsReturn;
152  }
153 
163  public ArrayList<String> getCaption()
164  {
165  ArrayList<String> lvLsReturn = new ArrayList<String>();
166 
167  try
168  {
169  this.LogFunctionStartDebug( "GetCaption" );
170 
171  // Warten auf das Objekt. Wenn es nicht existiert wird mit OKWGUIObjectNotFoundException beendet...
172  this.WaitForMe();
173 
174  // The Attribute "value" wird als Beschriftung angezeigt...
175  lvLsReturn.add( this.Me().getAttribute( "alt" ) );
176  }
177  finally
178  {
179  this.LogFunctionEndDebug( lvLsReturn );
180  }
181  return lvLsReturn;
182  }
183 
184 
185  public void SetFocus( ) throws Exception
186  {
187  // TODO: /todo Meldung in xml-Auslagern
188  throw new OKWFrameObjectMethodNotImplemented("The method 'public void SetFocus( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
189  }
190 
191 
192  public void TypeKey(ArrayList<String> Val )
193  {
194  // TODO: /todo Meldung in xml-Auslagern
195  throw new OKWFrameObjectMethodNotImplemented("The method 'public void TypeKey( ArrayList<String> Val ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
196  }
197 }
okw.gui.OKWLocatorBase
Definition: OKWLocatorBase.java:3
okw.gui.adapter.selenium.SeImage.getValue
ArrayList< String > getValue()
Der Wert eines img ist der Wert des Attributtes src.
Definition: SeImage.java:132
okw.gui.adapter.selenium.SeAnyChildWindow.WaitForMe
Boolean WaitForMe()
Wartet auf das Objekt Wenn kein Fenster gefunden wird,.
Definition: SeAnyChildWindow.java:1582
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.SeImage.TypeKey
void TypeKey(ArrayList< String > Val)
Tastatureingabe in das aktuelle Objekt.
Definition: SeImage.java:192
okw.gui.adapter.selenium.SeImage.SetFocus
void SetFocus()
Setzt den Focus auf das Objekt.
Definition: SeImage.java:185
okw.gui.adapter.selenium.SeImage.SeImage
SeImage(String Locator, OKWLocatorBase... Locators)
Definition: SeImage.java:118
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.SeImage.getCaption
ArrayList< String > getCaption()
Ermittelt den textuellen Inhalt der Caption.
Definition: SeImage.java:163
okw.gui.adapter.selenium.SeImage
Definition: SeImage.java:112
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