14 namespace OKW.GUI.Selenium.ADF
17 using System.Collections.Generic;
23 using OpenQA.Selenium;
83 #endregion Constructors
94 public virtual IWebElement
FindNode(
string fpsXPATH2Node)
96 this.LogFunctionStartDebug(
"FindNode",
"String fpsXPATH2Node", fpsXPATH2Node);
99 IWebElement lvDomTreeRoot = Me();
101 IWebElement lvElementLabel = lvDomTreeRoot;
102 IWebElement lvElementGuard;
104 IWebElement lvReturnElement = null;
106 lvDomTreeRoot.Highlight();
109 List<string> lvls_Nodes;
113 for (
int lvi_i = 0; lvi_i < lvls_Nodes.Count; lvi_i++)
117 lvElementLabel = lvElementLabel.FindElement(By.XPath(
"//*[text()='" + lvls_Nodes[lvi_i] +
"']"));
118 lvElementGuard = lvElementLabel;
119 lvElementGuard.Highlight();
127 if (lvElementGuard.GetAttribute(
"class") ==
"xso")
133 lvElementGuard = lvElementGuard.FindElement(By.XPath(
".."));
137 if (lvi_i == lvls_Nodes.Count - 1)
140 lvReturnElement = lvElementLabel;
147 lvElementGuard.Highlight();
148 IWebElement ElementIMG = lvElementGuard.FindElement(By.XPath(
".//a"));
149 ElementIMG.Highlight();
153 ElementIMG.Highlight();
156 System.Threading.Thread.Sleep(2000);
161 Logger.Instance.
LogPrint(
"Knoten " + lvls_Nodes[lvi_i] +
"nicht aufklappbar");
162 this.LogFunctionEndDebug();
168 this.LogFunctionEndDebug(lvReturnElement.ToString());
169 return lvReturnElement;
179 public virtual void Select(List<string> fpsValues)
181 IWebElement ElementNode;
183 for (
int i = 0; i < fpsValues.Count; i++)
185 ElementNode = this.FindNode(fpsValues[i]);
192 public void Click_On(
string Click_Type)
194 throw new NotImplementedException();
197 public void Select(System.Collections.Generic.List<
string> Values,
string Click_Type)
199 throw new NotImplementedException();
void LogPrint(string fps_Message)
LogPrint Function: Prints the values of expressions to the results file.
virtual IWebElement FindNode(string fpsXPATH2Node)
Ermittelt den das Dom Element welches den gegebene Pfad ermittel.
Klasse enthält OKW-Hilfsfunktionen.
static OKW_Ini Instance
Singelton-Pattern: Instanz gibt die aktuelle, gültige und einzige Innstanz der Klasse zurück...
virtual void Select(List< string > fpsValues)
Wählt den als Parameter gegebene Knoten im Baum aus: In der standard Implementierung wird ein Klick a...
afTree(string Locator)
Konstruktor.
string PathSep
Öffentliches Property "PathSep".
OKW.OKW_Ini ist die Klasse zur Konfigurationsdatei OKW_Ini.xml.
Die Klasse OKW.GUI.Selenium.ADF.afTree ist eine OKW-Automatisierungsklasse für ein Oracle-ADF Tree-Ob...
OKW_CustomSettings OKW_CustomSettings
Dieses Feld hält den Abschnitt OKW_CustomSettings der OKW_Ini.xml vor.
static List< string > StrSplit(string fpsString2Split, string fpsSeparator)
Splittet einen string am angegebenen Separator auf. Der Separator kann aus mehr als einem Zeichen bes...
static bool MatchStr(string fpsPattern, string fpsStringToMatch)
Quelle: http://stackoverflow.com/questions/6907720/need-to-perform-wildcard-etc-search-on-a-string-us...