|
Ajocado API 1.0.0.Alpha2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExtendedTypedSelenium
Extends the common Selenium API by other useful functions.
| Method Summary | |
|---|---|
boolean |
belongsClass(ElementLocator<?> elementLocator,
String className)
Checks if element given by locator is member of CSS class given by className. |
void |
check(ElementLocator<?> locator,
boolean checked)
Check a toggle-button (checkbox/radio) on or off. |
void |
doCommand(String command,
String param1,
String param2)
Invokes selenium command. |
void |
enableNetworkTrafficCapturing(boolean networkTrafficCapturingEnabled)
Configures if the network traffic should be recorded for Selenium session. |
int |
getCount(IterableLocator<?> locator)
Returns the number of elements that match the specified locator. |
String |
getStyle(ElementLocator<?> elementLocator,
CssProperty property)
Get current style value of element given by locator. |
String |
getStyle(ElementLocator<?> elementLocator,
String property)
Deprecated. |
boolean |
isAttributePresent(AttributeLocator<?> attributeLocator)
Verifies that the specified attribute is defined for the element. |
boolean |
isDisplayed(ElementLocator<?> elementLocator)
Returns whether the element is displayed on the page. |
boolean |
isNetworkTrafficCapturingEnabled()
Returns whether the network traffic should be recorded or not |
boolean |
isStarted()
Indicates if selenium session was already successfully started. |
void |
mouseOutAt(ElementLocator<?> elementLocator,
Point point)
Simulates a user hovering a mouse out of the specified element at specific coordinates relative to element. |
void |
mouseOverAt(ElementLocator<?> elementLocator,
Point point)
Simulates a user hovering a mouse over the specified element at specific coordinates relative to element. |
void |
scrollIntoView(ElementLocator<?> elementLocator,
boolean alignToTop)
Aligns screen to top (resp. |
| Method Detail |
|---|
boolean isStarted()
void enableNetworkTrafficCapturing(boolean networkTrafficCapturingEnabled)
Configures if the network traffic should be recorded for Selenium session.
Have to be configured before the start of the Selenium session.
networkTrafficCapturingEnabled - whether the network traffic should be recorded or notboolean isNetworkTrafficCapturingEnabled()
@Deprecated
String getStyle(ElementLocator<?> elementLocator,
String property)
elementLocator - of element from what we want to get current style valueproperty - CSS style property what we can to recognize
IllegalStateException - if is caught unrecognized throwable
String getStyle(ElementLocator<?> elementLocator,
CssProperty property)
elementLocator - of element from what we want to get current style valueproperty - CSS style property
IllegalStateException - if is caught unrecognized throwable
void scrollIntoView(ElementLocator<?> elementLocator,
boolean alignToTop)
elementLocator - of element which should be screen aligned toalignToTop - should be top border of screen aligned to top border of element
void mouseOverAt(ElementLocator<?> elementLocator,
Point point)
elementLocator - element's locatorpoint - specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the
locator.
void mouseOutAt(ElementLocator<?> elementLocator,
Point point)
elementLocator - element's locatorpoint - specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the
locator.boolean isDisplayed(ElementLocator<?> elementLocator)
elementLocator - element locator
boolean belongsClass(ElementLocator<?> elementLocator,
String className)
className - name of CSS classelementLocator - element's locator
boolean isAttributePresent(AttributeLocator<?> attributeLocator)
attributeLocator - an attribute locator
int getCount(IterableLocator<?> locator)
TypedSelenium
getCount in interface TypedSelenium
void check(ElementLocator<?> locator,
boolean checked)
Check a toggle-button (checkbox/radio) on or off.
locator - an element locatorchecked - if true, toggle-button will be checked on, otherwise checked off
void doCommand(String command,
String param1,
String param2)
command - the command name from Selenium's JavaScript APIparam1 - first parameterparam2 - second parameter
|
Ajocado API 1.0.0.Alpha2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||