OpenKeyWord  Build_ID: 457, Datum: 01.02.2020 07:45:48
Dont repeat yourself. - Do it once and only once!
SeLink.java
1 package okw.gui.adapter.selenium;
2 
3 /*
4  ==============================================================================
5  Author: Zoltán Hrabovszki <zh@openkeyword.de>
6 
7  Copyright © 2012 - 2019 IT-Beratung Hrabovszki
8  www.OpenKeyWord.de
9  ==============================================================================
10 
11  This file is part of OpenKeyWord.
12 
13  OpenKeyWord is free software: you can redistribute it and/or modify
14  it under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenKeyWord is distributed in the hope that it will be useful,
19  but WITHOUT ANY WARRANTY; without even the implied warranty of
20  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  GNU General Public License for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenKeyWord. If not, see <http://www.gnu.org/licenses/>.
25 
26  Diese Datei ist Teil von OpenKeyWord.
27 
28  OpenKeyWord ist Freie Software: Sie können es unter den Bedingungen
29  der GNU General Public License, wie von der Free Software Foundation,
30  Version 3 der Lizenz oder (nach Ihrer Wahl) jeder späteren
31  veröffentlichten Version, weiterverbreiten und/oder modifizieren.
32 
33  OpenKeyWord wird in der Hoffnung, dass es nützlich sein wird, aber
34  OHNE JEDE GEWÄHRLEISTUNG, bereitgestellt; sogar ohne die implizite
35  Gewährleistung der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK.
36  Siehe die GNU General Public License für weitere Details.
37 
38  Sie sollten eine Kopie der GNU General Public License zusammen mit
39  OpenKeyWord erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>.
40 */
41 
42 import java.util.ArrayList;
43 import okw.gui.OKWLocatorBase;
44 
127 public class SeLink extends SeAnyChildWindow
128 {
129 
133  public SeLink( String Locator, OKWLocatorBase... Locators )
134  {
135  super( Locator, Locators );
136  }
137 
147  @Override
148  public Boolean getIsActive()
149  {
150  throw new UnsupportedOperationException( "Link cannot be Active" );
151  }
152 
183  @Override
184  public ArrayList<String> getValue()
185  {
186  ArrayList<String> lvLsReturn = new ArrayList<String>();
187 
188  try
189  {
190  this.LogFunctionStartDebug( "getValue" );
191 
192  // Warten auf das Objekt. Wenn es nicht existiert wird mit OKWGUIObjectNotFoundException beendet...
193  this.WaitForMe();
194 
195  // The Attribute "value" wird als Beschriftung angezeigt...
196  lvLsReturn.add( this.Me().getAttribute( "href" ) );
197  }
198  finally
199  {
200  this.LogFunctionEndDebug( lvLsReturn );
201  }
202 
203  return lvLsReturn;
204  }
205 
219  @Override
220  public void TypeKey(ArrayList<String> fps_Values)
221  {
222  // TODO: /todo Meldung in xml-Auslagern
223  throw new UnsupportedOperationException("The method TypeKey() is not defined for SeLink.");
224  }
225 }
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.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.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