Example #1
0
 @Override
 public void ClickRandom(SeleniumCommands commands) {
   ((ByXPath) commands).clickRandomElementByXPath(xpath);
 }
Example #2
0
 @Override
 public void WaitForElement(SeleniumCommands commands) {
   ((ByXPath) commands).waitForXPath(xpath);
 }
Example #3
0
 @Override
 public void EnterWebFrame(SeleniumCommands commands) {
   ((ByXPath) commands).enterWebFrameByXPath(xpath);
 }
Example #4
0
 @Override
 public void ComboBoxRandom(SeleniumCommands commands) {
   ((ByXPath) commands).comboBoxRandomByXPath(xpath);
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #8
0
 @Override
 public void CheckBox(boolean selected, SeleniumCommands commands) {
   ((ByXPath) commands).checkBoxByXPath(selected, xpath);
 }