/** * Create action with specified name for webelement self. * * @param self - instance of class that support DescribedElement * @param name - name of returned Action * @return created Action instance */ protected Action getAction(DescribedElement self, String name) { Action action = factory.createAction(); action.setName(name); action.setWebelement((Webelement) element(self)); return action; }