Auto-tools/Projects/Robocop/WritingTests: Difference between revisions

Jump to navigation Jump to search
Line 16: Line 16:
= APIs  =
= APIs  =


The three main interfaces that are used are Actions, Driver and Element.  
The main interfaces are Actions, Elements, and Driver.  


Actions has a list of commonly used non-element specific actions that can be taken on the application, such as clicking, dragging and sending key events.
Actions provides commonly used non-element specific actions that can be taken on the application, such as clicking, dragging and sending key events.
<pre>
<pre>
Actions
Actions
Line 47: Line 47:
   //This is used to find elements given their id's name.
   //This is used to find elements given their id's name.
   Element findElement(String name);
   Element findElement(String name);
  //This will cause this process to spin until the gecko fires a specific JSON event, such as DOMContentLoaded
  void waitForGeckoEvent(String geckoEvent);
   //This is used for getting information on scrolls. NOTE: It must be used for the next three methods to return useful information
   //This is used for getting information on scrolls. NOTE: It must be used for the next three methods to return useful information
   void setupScrollHandling();
   void setupScrollHandling();
Confirmed users
1,759

edits

Navigation menu