Confirmed users
1,759
edits
m (→Setup) |
m (→APIs) |
||
Line 12: | Line 12: | ||
= APIs = | = APIs = | ||
The three main interfaces that are used are Actions, Driver and Element. Driver finds elements | The three main interfaces that are used are Actions, Driver and Element. Driver finds elements. Element represents each of the available UI objects in Fennec including the Awesomebar, the 'tabs' button, and different lists and menus. 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. | ||
<pre> | <pre> | ||
Line 18: | Line 18: | ||
//This will cause this process to spin until the gecko fires a specific JSON event, such as DOMContentLoaded | //This will cause this process to spin until the gecko fires a specific JSON event, such as DOMContentLoaded | ||
void waitForGeckoEvent(String geckoEvent); | void waitForGeckoEvent(String geckoEvent); | ||
//Clicks the given Key ( | //Clicks the given Key (Actions.SpecialKey.[DOWN|UP|LEFT|RIGHT|ENTER]) | ||
void | void sendSpecialKey(SpecialKey button) | ||
//Sends a string of characters to the system. (most have been implemented but not all) | //Sends a string of characters to the system. (most have been implemented but not all) | ||
void sendKeys(String keysToSend); | void sendKeys(String keysToSend); |