Given beneath are the strategies to perform console activities −
- sendKeys − Sends keys to the console portrayal in the program. Uncommon keys that are not content, spoke to as Keys are perceived both as a major aspect of successions of characters, or separately.
- pressKey − Press a key on the console that isn't content. The keys, for example, work keys "F1", "F2", "Tab", "Control", and so on. In the event that keyToPress is an arrangement of characters, diverse driver executions may decide to toss a special case or to peruse just the primary character in the succession.
- releaseKey − Release a key on the console in the wake of executing the keypress occasion. It as a rule holds useful for non content characters.
Here are the language structure to call console capacities utilizing Selenium WebDriver.
void sendKeys(java.lang.CharSequence keysToSend)
void pressKey(java.lang.CharSequence keyToPress)
void releaseKey(java.lang.CharSequence keyToRelease)
