package net.sf.bloodball.fit;

import java.lang.reflect.Method;

import fit.ActionFixture;
import fit.TypeAdapter;

public class ClickActionFixture extends ActionFixture {

  public void clickAt() throws Exception {
    Method method = method(2);
    Class type1 = method.getParameterTypes()[0];
    String text1 = cells.more.more.text();
    Class type2 = method.getParameterTypes()[1];
    String text2 = cells.more.more.more.text();
    Object args[] = { TypeAdapter.on(actor, type1).parse(text1), TypeAdapter.on(actor, type2).parse(text2)};
    method.invoke(actor, args);
  }

}