public void addProductFromCategory() {
    SelectSportProduct.click();
    Utils.sleep(1);

    AddToBasket.click();
    Utils.sleep(1);
  }
Esempio n. 2
0
  @Override
  public void run() {
    Integer second10 = second10Init;
    Integer second30 = second30Init;
    while (true) {
      second10--;
      second30--;

      MyRobot.getInstance().getMemory().forgetOldItems();

      if (second10 == 0) {
        second10 = second10Init;
        CommandDispatcher.getInstance().addCommand(new RobotGetOnOff());
        CommandDispatcher.getInstance().addCommand(new RobotCheckSensors());
        MyRobot.getInstance().getFaceController().updateFace();
      }

      if (second30 == 0) {
        second30 = second30Init;
        // CommandDispatcher.getInstance().addCommand(new CheckInternetConnection());
        // CommandDispatcher.getInstance().addCommand(new Alarm());
        // CommandDispatcher.getInstance().addCommand(new Test());
      }
      Utils.sleep(second);
    }
  }