示例#1
0
 @Override
 public void ClickRandom(SeleniumCommands commands) {
   ((ByXPath) commands).clickRandomElementByXPath(xpath);
 }
示例#2
0
 @Override
 public void WaitForElement(SeleniumCommands commands) {
   ((ByXPath) commands).waitForXPath(xpath);
 }
示例#3
0
 @Override
 public void EnterWebFrame(SeleniumCommands commands) {
   ((ByXPath) commands).enterWebFrameByXPath(xpath);
 }
示例#4
0
 @Override
 public void ComboBoxRandom(SeleniumCommands commands) {
   ((ByXPath) commands).comboBoxRandomByXPath(xpath);
 }
示例#5
0
 @Override
 public void ComboBoxIndex(int index, SeleniumCommands commands) {
   if (index < 0) throw new IllegalArgumentException("Index must be greater then 0");
   ((ByXPath) commands).comboBoxIndexByXPath(index, xpath);
 }
示例#6
0
 @Override
 public void ComboBoxText(String visibleText, SeleniumCommands commands) {
   if (visibleText == null)
     throw new NullPointerException("String visibleText must not be Null");
   ((ByXPath) commands).comboBoxVisibleTextByXPath(visibleText, xpath);
 }
示例#7
0
 @Override
 public void Type(String input, SeleniumCommands commands) {
   if (input == null) throw new NullPointerException("String input must not be Null");
   ((ByXPath) commands).typeByXPath(input, xpath);
 }
示例#8
0
 @Override
 public void CheckBox(boolean selected, SeleniumCommands commands) {
   ((ByXPath) commands).checkBoxByXPath(selected, xpath);
 }