OpenKeyWord  Version: 426, Datum:
SeTextField.cs
1 #region Header
2 /*
3  ==============================================================================
4  Author: Zoltan Hrabovszki <zh@openkeyword.de>
5 
6  Copyright © 2012, 2013, 2014, 2015 IT-Beratung Hrabovszki
7  www.OpenKeyWord.de
8  ==============================================================================
9 
10  This file is part of OpenKeyWord.
11 
12  OpenKeyWord is free software: you can redistribute it and/or modify
13  it under the terms of the GNU General Public License as published by
14  the Free Software Foundation, either version 3 of the License, or
15  (at your option) any later version.
16 
17  OpenKeyWord is distributed in the hope that it will be useful,
18  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  GNU General Public License for more details.
21 
22  You should have received a copy of the GNU General Public License
23  along with OpenKeyWord. If not, see <http://www.gnu.org/licenses/>.
24 
25  Diese Datei ist Teil von OpenKeyWord.
26 
27  OpenKeyWord ist Freie Software: Sie können es unter den Bedingungen
28  der GNU General Public License, wie von der Free Software Foundation,
29  Version 3 der Lizenz oder (nach Ihrer Wahl) jeder späteren
30  veröffentlichten Version, weiterverbreiten und/oder modifizieren.
31 
32  OpenKeyWord wird in der Hoffnung, dass es nützlich sein wird, aber
33  OHNE JEDE GEWÄHRLEISTUNG, bereitgestellt; sogar ohne die implizite
34  Gewährleistung der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK.
35  Siehe die GNU General Public License für weitere Details.
36 
37  Sie sollten eine Kopie der GNU General Public License zusammen mit
38  OpenKeyWord erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>.
39 */
40 #endregion Header
41 
42 namespace OKW.GUI.Selenium
43 {
44  using System;
45  using System.Collections.Generic;
46 
47  using OKW.GUI;
48  using OKW.Log;
49 
50  using OpenQA.Selenium;
51 
52  // , IOKW_SimpleDataObj
63  {
64  #region Constructors
65 
70  public SeTextField(string Locator)
71  : base(Locator)
72  {
73  }
74 
75  #endregion Constructors
76 
77  #region Methods
78 
93  public override List<string> GetValue()
94  {
95  List<string> lvLsReturn = new List<string>();
96  bool bOK = false;
97 
98  try
99  {
100  this.LogFunctionStartDebug("GetValue");
101 
102  // Get Value from TextField and put this into the return List<string>
103  lvLsReturn.Add(this.Me().GetAttribute("value"));
104  bOK = true;
105  }
106  finally
107  {
108  if (bOK)
109  {
110  this.LogFunctionEndDebug(lvLsReturn.ToString());
111  }
112  else
113  {
114  this.LogFunctionEndDebug();
115  }
116  }
117 
118  return lvLsReturn;
119  }
120 
132  public virtual void SetValue(List<string> fpsValues)
133  {
134  this.LogFunctionStartDebug("SetValue", "fps_Values", fpsValues.ToString());
135 
136  try
137  {
138  IWebElement lvWebElement = this.Me();
139 
140  this.Me().SetAttribute("value", fpsValues[0]);
141  }
142  finally
143  {
144  this.LogFunctionEndDebug();
145  }
146 
147  return;
148  }
149 
150  #endregion Methods
151  }
152 }
SeTextField(string Locator)
Definition: SeTextField.cs:70
virtual void SetValue(List< string > fpsValues)
Setzen einen gegebenen Wert im Objekt. GUI-Automatisierungswerkzeug: Selenium.
Definition: SeTextField.cs:132
override List< string > GetValue()
Ermittelt den textuellen Inhalt eines Textfeldes. . GUI-Automatisierungswerkzeug: Selenium...
Definition: SeTextField.cs:93
Description of SeSimpleDataObjBase.
Definition: Core.cs:40
Diese Klasse implmenetiert die Methoden der IOKW_SimpleDataObj für ein DOM-Texfield ...
Definition: SeTextField.cs:62