Tabnine Logo
Action
Code IndexAdd Tabnine to your IDE (free)

How to use
Action
in
com.lohika.alp.log.elements.schema

Best Java code snippets using com.lohika.alp.log.elements.schema.Action (Showing top 7 results out of 315)

origin: com.lohika.alp/alp-selenium

@Override
public Object dragAndDropBy(DescribedElement self, int moveRightBy,
    int moveDownBy) {
  Action action = getAction(self, "drag and drop by");
  action.getArg().add(moveRightBy);
  action.getArg().add(moveDownBy);
  return action;
}
origin: com.lohika.alp/alp-reporter

/**
 * Create an instance of {@link Action }
 * 
 */
public Action createAction() {
  return new Action();
}
origin: com.lohika.alp/alp-reporter

@Override
public String doRender(Object o) {
  if (!(o instanceof Action))
    return null;
  Action action = (Action) o;
  Webelement self = action.getWebelement();
  StringBuilder builder = new StringBuilder();
  builder.append(self.getType() + " " + self.getName());
  builder.append(" -> " + action.getName());
  String arg = action.getArg().size() > 0 ? " "
      + action.getArg().toString() : "";
  builder.append(arg);
  return builder.toString();
}
origin: com.lohika.alp/alp-selenium

/**
 * 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;
}
origin: com.lohika.alp/alp-selenium

@Override
public Object get(DescribedElement self, String url) {
  Action action = getAction(self, "get");
  action.getArg().add(url);
  return action;
}
origin: com.lohika.alp/alp-selenium

@Override
public Object sendKeys(DescribedElement self, CharSequence... keysToSend) {
  Action action = getAction(self, "send keys");
  StringBuilder builder = new StringBuilder();
  for (CharSequence key : keysToSend) {
    builder.append(key);
  }
  action.getArg().add(builder.toString());
  return action;
}
origin: com.lohika.alp/alp-selenium

@Override
public Object dragAndDropOn(DescribedElement self, DescribedElement element) {
  Action action = getAction(self, "drag and drop by");
  action.getArg().add(element);
  return action;
}
com.lohika.alp.log.elements.schemaAction

Javadoc

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 
<complexType> 
<complexContent> 
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 
<sequence> 
<element ref="{http://alp.lohika.com/log/elements/schema}webelement"/> 
<sequence> 
<element name="arg" type="{http://www.w3.org/2001/XMLSchema}anyType" maxOccurs="unbounded" minOccurs="0"/> 
</sequence> 
</sequence> 
<attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> 
</restriction> 
</complexContent> 
</complexType> 

Most used methods

  • getArg
    Gets the value of the arg property. This accessor method returns a reference to the live list, not a
  • <init>
  • getName
    Gets the value of the name property.
  • getWebelement
    Self object on which the action is being performed
  • setName
    Sets the value of the name property.
  • setWebelement
    Sets the value of the webelement property.

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • Path (java.nio.file)
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now