@@ -0,0 +1,909 @@
+package capture;%0A%0Aimport org.openqa.selenium.WebElement;%0A%0Apublic class CommandNEW %7B%0A%0A%09public String action;%0A%09public String using;%0A%09public String value;%0A%09%0A%09public Command(final String action, final String using, final String value)%0A%09%7B%0A%09%09this.action = action;%0A%09%09this.using = using;%0A%09%09this.value = value;%0A%09%7D%0A%09%0A%09public Command(final String action, final WebElement element)%0A%09%7B%0A%09%09this.action = action;%0A%09%09%0A%09%09String id;%0A%09%09String text;%0A%09%09if(!(id = element.getAttribute(%22id%22)).isEmpty())%0A%09%09%7B%0A%09%09%09this.using = %22id%22;%0A%09%09%09this.value = id;%0A%09%09%7D%0A%09%09else if (!(text = element.getText()).isEmpty())%0A%09%09%7B%0A%09%09%09this.using = %22linktext%22;%0A%09%09%09this.value = text;%0A%09%09%7D%0A%09%09else%0A%09%09%7B%0A%09%09%09this.using = %22css%22;%0A%09%09%09this.value = element.getTagName() + %22.%22 + element.getAttribute(%22class%22);%0A%09%09%7D%0A%09%7D%0A%09%0A%09public String getAction() %7B%0A%09 return action;%0A%09%7D%0A%09 %0A%09public String getUsing() %7B%0A%09 return using;%0A%09%7D%0A%09   %0A%09public String getValue() %7B%0A%09 return value;%0A%09%7D%0A%7D%0A

Create CommandNEW.java