Skip to content

Commit

Permalink
Expanded documentation for Call component method. #65
Browse files Browse the repository at this point in the history
  • Loading branch information
jussimalinen committed May 8, 2015
1 parent b4f5bee commit a494b34
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ private Method getMethodByNameAndArgumentCount(Class klass, String name, int arg
throw new RuntimeException(String.format("Method \"%s\" with %d argument(s) doesn't exist.", name, argCount));
}

@RobotKeyword("Call Component Method")
@RobotKeyword("Calls a method from specified component.\n\n"
+ "Arguments are automatically converted if possible to type expected by the method.\n\n"
+ "Example:\n"
+ "| Call Component Method | buttonId | setToolTipText | new tooltip text |")
@ArgumentNames({"identifier", "method", "*args"})
public Object callComponentMethod(String identifier, String method, String[] args) {
Object component = operator(identifier).getSource();
Expand Down

0 comments on commit a494b34

Please sign in to comment.