Actions¶
There are 2 versions of the API for browser operations: The standard one, that supports multiple connected browser
instance, under InBrowser, and the singleton browser version, under InBrowserSinglton .
The difference is that the single-browser-instance API is simplified. For example:
// standard interface:
// Assume we have: InBrowser browser = .... ;
browser.clickAt(myElement);
browser.dragAndDrop(myElement).to(otherElement);
// Single browser version:
// assume we have static imports from InBrowserSingleton
clickAt(myElement);
dragAndDrop(myElement).to(otherElement);
Supported Operations¶
Supported operations include:
InBrowser.clickOn,InBrowser.clickAt- click an element. The difference between the two is that the former expects the element to be clickable.InBrowser.doubleClickOnInBrowser.dragAndDrop- to another element or to a location by coordinatesInBrowser.scroll- scroll up,down,left or right.InBrowser.scrollTo- scroll to the location of an elementInBrowser.scrollElement- scroll within an element. Useful for grid, especially when they are virtualizedInBrowser.pressKeyDown,InBrowser.releaseKey- on an element or in the browser in generalInBrowser.sendKeys- send text to element or to browser in generalInBrowser.hoverOver- hover over an element