Index

$ A B C D E F G H I L M N O P S T W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

$

$(String, Object...) - Static method in class dev.comfast.cf.CfApi
 
$(String, Object...) - Method in interface dev.comfast.cf.CfLocator
get sub-locator related to current one
$(String, Object...) - Method in class dev.comfast.cf.se.SeleniumLocator
 

A

action(long, Runnable, String, Object...) - Method in class dev.comfast.cf.CfAbstractLocator
action(Runnable, String, Object...) - Method in class dev.comfast.cf.CfAbstractLocator
action(Supplier<T>, String, Object...) - Method in class dev.comfast.cf.CfAbstractLocator
Does an action, wraps it into: - Event: can set Before and After listeners to it - Waiter - action will be repeated in case of fail var someText = action(() -> grabSomeText(1), "grab some text", 1)
add(String) - Method in class dev.comfast.cf.common.selector.SelectorChain
 
addJsTools() - Method in class dev.comfast.cf.common.utils.BrowserContent
Add $ and $$ JS methods to current page for convenience
after(AfterEvent<Command>) - Method in class dev.comfast.cf.common.utils.Tracer
 
after(AfterEvent<T>) - Method in class dev.comfast.cf.common.utils.EventStats
Collect times for statistics
allMatch(Condition...) - Static method in class dev.comfast.cf.common.conditions.Conditions
 
AllMatch - Class in dev.comfast.cf.common.conditions
Condition that pass if all sub-conditions are met.
AllMatch(Condition...) - Constructor for class dev.comfast.cf.common.conditions.AllMatch
 
appear - Static variable in class dev.comfast.cf.common.conditions.Conditions
Pass if element is visible.
ARROW - Static variable in class dev.comfast.cf.common.selector.ChainPointerMessage
 

B

beClickable - Static variable in class dev.comfast.cf.common.conditions.Conditions
Pass if element can be clicked. i.e. it exists, visible and enabled
beDisabled - Static variable in class dev.comfast.cf.common.conditions.Conditions
Pass if element is disabled
beEnabled - Static variable in class dev.comfast.cf.common.conditions.Conditions
Pass if element is enabled
BrowserContent - Class in dev.comfast.cf.common.utils
Utility class to (re)write browser html / css / js using JavaScript
BrowserContent() - Constructor for class dev.comfast.cf.common.utils.BrowserContent
 
build() - Method in class dev.comfast.cf.common.conditions.ConditionImpl.ConditionImplBuilder
 
build(int, String) - Method in class dev.comfast.cf.common.selector.ChainPointerMessage
Generate command with pointer to selector index, eg. for index = 1:
builder() - Static method in class dev.comfast.cf.common.conditions.ConditionImpl
 

C

canEqual(Object) - Method in class dev.comfast.cf.CfAbstractLocator
 
canEqual(Object) - Method in class dev.comfast.cf.common.selector.SelectorChain
 
CfAbstractLocator - Class in dev.comfast.cf
 
CfAbstractLocator(SelectorChain) - Constructor for class dev.comfast.cf.CfAbstractLocator
 
CfApi - Class in dev.comfast.cf
 
CfFoundLocator - Interface in dev.comfast.cf
Points to specific DOM element.
CfFrameworkError - Exception in dev.comfast.cf.common.errors
Indicates that something went wrong in the framework.
CfFrameworkError(String, Object...) - Constructor for exception dev.comfast.cf.common.errors.CfFrameworkError
 
CfFrameworkError(String, Throwable, Object...) - Constructor for exception dev.comfast.cf.common.errors.CfFrameworkError
 
CfLocator - Interface in dev.comfast.cf
 
chain - Variable in class dev.comfast.cf.CfAbstractLocator
 
ChainPointerMessage - Class in dev.comfast.cf.common.selector
Generate message with pointer to selector index.
ChainPointerMessage(SelectorChain) - Constructor for class dev.comfast.cf.common.selector.ChainPointerMessage
 
clear() - Method in interface dev.comfast.cf.CfLocator
Clear given input/textarea/select/checkbox
clear() - Method in class dev.comfast.cf.se.SeleniumLocator
 
clearAll() - Method in class dev.comfast.cf.common.utils.BrowserContent
Clear all html content
click() - Method in interface dev.comfast.cf.CfLocator
Click on element
click() - Method in class dev.comfast.cf.se.SeleniumLocator
 
condition(String, Function<CfFoundLocator, Boolean>) - Static method in class dev.comfast.cf.common.conditions.Conditions
Condition that pass if given testFunction pass.
Condition - Interface in dev.comfast.cf.common.conditions
Represents a condition that can be checked on an element.
ConditionFailed - Exception in dev.comfast.cf.common.errors
Indicates that condition was not met.
ConditionFailed(String, Object...) - Constructor for exception dev.comfast.cf.common.errors.ConditionFailed
 
ConditionFailed(String, Throwable, Object...) - Constructor for exception dev.comfast.cf.common.errors.ConditionFailed
 
ConditionImpl - Class in dev.comfast.cf.common.conditions
Represents a condition that can be checked against a CfLocator.
ConditionImpl.ConditionImplBuilder - Class in dev.comfast.cf.common.conditions
 
Conditions - Class in dev.comfast.cf.common.conditions
Predefined conditions and factory methods.
Conditions() - Constructor for class dev.comfast.cf.common.conditions.Conditions
 
config - Static variable in class dev.comfast.cf.CfApi
 
containText(String) - Static method in class dev.comfast.cf.common.conditions.Conditions
 
count() - Method in interface dev.comfast.cf.CfLocator
 
count() - Method in class dev.comfast.cf.se.SeleniumLocator
 

D

dev.comfast.cf - package dev.comfast.cf
 
dev.comfast.cf.common.conditions - package dev.comfast.cf.common.conditions
 
dev.comfast.cf.common.errors - package dev.comfast.cf.common.errors
 
dev.comfast.cf.common.selector - package dev.comfast.cf.common.selector
 
dev.comfast.cf.common.utils - package dev.comfast.cf.common.utils
 
dev.comfast.cf.se - package dev.comfast.cf.se
 
dev.comfast.cf.se.infra - package dev.comfast.cf.se.infra
 
disappear - Static variable in class dev.comfast.cf.common.conditions.Conditions
Pass if element is not visible.
doExecuteJs(String, Object...) - Method in class dev.comfast.cf.se.SeleniumLocator
Execute JS, where variable: el ===> current element
doFind() - Method in class dev.comfast.cf.se.FoundElement
 
doFind() - Method in class dev.comfast.cf.se.SeleniumLocator
 
doTryFind() - Method in class dev.comfast.cf.se.SeleniumLocator
 
dragTo(CfLocator) - Method in interface dev.comfast.cf.CfLocator
Drag current element onto other element
dragTo(CfLocator) - Method in class dev.comfast.cf.se.SeleniumLocator
Uses javaScript implementation.
driverEvents - Static variable in class dev.comfast.cf.CfApi
 
DriverSessionCache - Class in dev.comfast.cf.se.infra
Caches WebDriver session to avoid creating new session on each test.
DriverSessionCache(Supplier<RemoteWebDriver>) - Constructor for class dev.comfast.cf.se.infra.DriverSessionCache
 
DriverSource - Class in dev.comfast.cf.se.infra
One stop point for get WebDriver instances Manages Webdriver lifetime.

E

ElementFindFail - Exception in dev.comfast.cf.common.errors
Indicates that element was not found at given index in selector chain.
ElementFindFail(SelectorChain, int, Throwable) - Constructor for exception dev.comfast.cf.common.errors.ElementFindFail
 
equals(Object) - Method in class dev.comfast.cf.CfAbstractLocator
 
equals(Object) - Method in class dev.comfast.cf.common.selector.SelectorChain
 
EventStats<T> - Class in dev.comfast.cf.common.utils
Measure all Events and able to print out statistics.
EventStats(String) - Constructor for class dev.comfast.cf.common.utils.EventStats
 
execute(Command) - Method in class dev.comfast.cf.se.infra.FixedSessionExecutor
 
executeJs(String, Object...) - Static method in class dev.comfast.cf.CfApi
 
executeJs(String, Object...) - Method in interface dev.comfast.cf.CfLocator
Executes JavaScript code, where "this" is current element
executeJs(String, Object...) - Method in class dev.comfast.cf.se.SeleniumLocator
 
exists - Static variable in class dev.comfast.cf.common.conditions.Conditions
Pass if element exist in DOM.
exists() - Method in interface dev.comfast.cf.CfLocator
 
exists() - Method in class dev.comfast.cf.se.SeleniumLocator
 
expect(CfLocator) - Method in class dev.comfast.cf.common.conditions.AllMatch
 
expect(CfLocator) - Method in interface dev.comfast.cf.common.conditions.Condition
throw if condition not pass
expect(CfLocator) - Method in class dev.comfast.cf.common.conditions.ConditionImpl
 

F

find() - Method in interface dev.comfast.cf.CfLocator
Force find action.
find() - Method in interface dev.comfast.cf.se.Finder
 
find() - Method in class dev.comfast.cf.se.SeleniumLocator
 
find() - Method in class dev.comfast.cf.se.WebElementFinder
 
findAll() - Method in interface dev.comfast.cf.se.Finder
 
findAll() - Method in class dev.comfast.cf.se.WebElementFinder
 
Finder<T> - Interface in dev.comfast.cf.se
 
FixedSessionExecutor - Class in dev.comfast.cf.se.infra
Used to create custom RemoteWebDriver instance
FixedSessionExecutor(URL, SessionId) - Constructor for class dev.comfast.cf.se.infra.FixedSessionExecutor
 
flatText(String) - Static method in class dev.comfast.cf.common.utils.TextUtils
Replace all whitespaces/newlines with single space
focus() - Method in interface dev.comfast.cf.CfLocator
Focus on element using JS
focus() - Method in class dev.comfast.cf.se.SeleniumLocator
 
forEach(Consumer<CfFoundLocator>) - Method in interface dev.comfast.cf.CfLocator
Iterate thorough all elements matched by locator
forEach(Consumer<CfFoundLocator>) - Method in class dev.comfast.cf.se.SeleniumLocator
 
formatLogMessage(AfterEvent<Command>) - Method in class dev.comfast.cf.common.utils.Tracer
 
FoundElement - Class in dev.comfast.cf.se
 
FoundElement(SelectorChain, WebElement) - Constructor for class dev.comfast.cf.se.FoundElement
 

G

get() - Method in class dev.comfast.cf.se.infra.DriverSessionCache
Gets WebDriver instance.
getAttribute(String) - Method in interface dev.comfast.cf.CfLocator
 
getAttribute(String) - Method in class dev.comfast.cf.se.SeleniumLocator
 
getChain() - Method in exception dev.comfast.cf.common.errors.ElementFindFail
 
getCssValue(String) - Method in interface dev.comfast.cf.CfLocator
 
getCssValue(String) - Method in class dev.comfast.cf.se.SeleniumLocator
 
getDriver() - Static method in class dev.comfast.cf.CfApi
 
getDriver() - Static method in class dev.comfast.cf.se.infra.DriverSource
 
getFailIndex() - Method in exception dev.comfast.cf.common.errors.ElementFindFail
 
getMessage() - Method in exception dev.comfast.cf.common.errors.ElementFindFail
 
getName() - Method in class dev.comfast.cf.common.conditions.AllMatch
 
getName() - Method in interface dev.comfast.cf.common.conditions.Condition
 
getName() - Method in class dev.comfast.cf.common.conditions.ConditionImpl
 
getPointer() - Method in exception dev.comfast.cf.common.errors.ElementFindFail
Returns pointer to element in selector chain. e.g.
getTagName() - Method in interface dev.comfast.cf.CfLocator
 
getTagName() - Method in class dev.comfast.cf.se.SeleniumLocator
 
getText() - Method in class dev.comfast.cf.CfAbstractLocator
 
getText() - Method in interface dev.comfast.cf.CfLocator
 
getValue() - Method in class dev.comfast.cf.CfAbstractLocator
 
getValue() - Method in interface dev.comfast.cf.CfLocator
 
getWaiter() - Static method in class dev.comfast.cf.CfApi
 

H

hasAttribute(String) - Static method in class dev.comfast.cf.common.conditions.Conditions
 
hasAttribute(String, String) - Static method in class dev.comfast.cf.common.conditions.Conditions
 
hasClass(String) - Method in class dev.comfast.cf.CfAbstractLocator
 
hasClass(String) - Method in interface dev.comfast.cf.CfLocator
 
hasCssClass(String) - Static method in class dev.comfast.cf.common.conditions.Conditions
 
hashCode() - Method in class dev.comfast.cf.CfAbstractLocator
 
hashCode() - Method in class dev.comfast.cf.common.selector.SelectorChain
 
hasText(String) - Static method in class dev.comfast.cf.common.conditions.Conditions
 
haveCount(int) - Static method in class dev.comfast.cf.common.conditions.Conditions
 
hover() - Method in interface dev.comfast.cf.CfLocator
Hover mouse on element
hover() - Method in class dev.comfast.cf.se.SeleniumLocator
 

I

innerHtml() - Method in class dev.comfast.cf.CfAbstractLocator
 
innerHtml() - Method in interface dev.comfast.cf.CfLocator
 
IS_XPATH - Static variable in class dev.comfast.cf.common.selector.SelectorParser
 
isDisplayed() - Method in interface dev.comfast.cf.CfLocator
 
isDisplayed() - Method in class dev.comfast.cf.se.SeleniumLocator
 
isPassIfNotFound() - Method in class dev.comfast.cf.common.conditions.AllMatch
true if all conditions allow pass if not found
isPassIfNotFound() - Method in interface dev.comfast.cf.common.conditions.Condition
 
isPassIfNotFound() - Method in class dev.comfast.cf.common.conditions.ConditionImpl
 
isXpath(String) - Static method in class dev.comfast.cf.common.selector.SelectorParser
 

L

locatorEvents - Static variable in class dev.comfast.cf.CfApi
 

M

map(Function<CfFoundLocator, T>) - Method in interface dev.comfast.cf.CfLocator
Does mapping against each element found by locator
map(Function<CfFoundLocator, T>) - Method in class dev.comfast.cf.se.SeleniumLocator
 

N

name(String) - Method in class dev.comfast.cf.common.conditions.ConditionImpl.ConditionImplBuilder
 
negate() - Method in interface dev.comfast.cf.common.conditions.Condition
 
negate(String) - Method in class dev.comfast.cf.common.conditions.AllMatch
 
negate(String) - Method in interface dev.comfast.cf.common.conditions.Condition
 
negate(String) - Method in class dev.comfast.cf.common.conditions.ConditionImpl
 
negated(boolean) - Method in class dev.comfast.cf.common.conditions.ConditionImpl.ConditionImplBuilder
 
normalizeChildSelector(String) - Static method in class dev.comfast.cf.common.selector.SelectorParser
If XPATH passed without dot like "//some/xpath" method will add it like: ".
not(Condition) - Static method in class dev.comfast.cf.common.conditions.Conditions
 
not(Condition, String) - Static method in class dev.comfast.cf.common.conditions.Conditions
 
nth(int) - Method in interface dev.comfast.cf.CfLocator
nth element found by locator
nth(int) - Method in class dev.comfast.cf.se.SeleniumLocator
 

O

open(String) - Static method in class dev.comfast.cf.CfApi
Open given url, run browser when needed.
openResourceFile(String) - Method in class dev.comfast.cf.common.utils.BrowserContent
Copy given resource file to temp folder and open it in browser.
outerHtml() - Method in class dev.comfast.cf.CfAbstractLocator
 
outerHtml() - Method in interface dev.comfast.cf.CfLocator
 

P

passIfNotFound(boolean) - Method in class dev.comfast.cf.common.conditions.ConditionImpl.ConditionImplBuilder
 
printStats() - Method in class dev.comfast.cf.common.utils.EventStats
 

S

SelectorChain - Class in dev.comfast.cf.common.selector
Represents chain of CSS / XPath selectors
SelectorChain(String) - Constructor for class dev.comfast.cf.common.selector.SelectorChain
 
SelectorParser - Class in dev.comfast.cf.common.selector
 
SeleniumLocator - Class in dev.comfast.cf.se
 
SeleniumLocator(SelectorChain) - Constructor for class dev.comfast.cf.se.SeleniumLocator
 
SeleniumLocator(String, Object...) - Constructor for class dev.comfast.cf.se.SeleniumLocator
 
setBody(String) - Method in class dev.comfast.cf.common.utils.BrowserContent
Set body tag content
setChecked(boolean) - Method in interface dev.comfast.cf.CfLocator
Check/uncheck checkbox
setChecked(boolean) - Method in class dev.comfast.cf.se.SeleniumLocator
 
setScriptTag(String) - Method in class dev.comfast.cf.common.utils.BrowserContent
Adds script tag to head section
setStyle(String) - Method in class dev.comfast.cf.common.utils.BrowserContent
Set style tag to head section
setValue(String) - Method in interface dev.comfast.cf.CfLocator
Generic set value of element.
setValue(String) - Method in class dev.comfast.cf.se.SeleniumLocator
 
should(Condition) - Method in interface dev.comfast.cf.CfLocator
Wait for given condition match
should(Condition) - Method in class dev.comfast.cf.se.SeleniumLocator
 
shouldNot(Condition) - Method in interface dev.comfast.cf.CfLocator
Wait fo given condition not match
split() - Method in class dev.comfast.cf.common.selector.SelectorChain
 

T

tap() - Method in interface dev.comfast.cf.CfLocator
Tap gesture on element
tap() - Method in class dev.comfast.cf.se.SeleniumLocator
 
test(CfLocator) - Method in class dev.comfast.cf.common.conditions.ConditionImpl
Executes test against given locator.
testFunc(Function<CfFoundLocator, Boolean>) - Method in class dev.comfast.cf.common.conditions.ConditionImpl.ConditionImplBuilder
 
TextUtils - Class in dev.comfast.cf.common.utils
 
TextUtils() - Constructor for class dev.comfast.cf.common.utils.TextUtils
 
toBuilder() - Method in class dev.comfast.cf.common.conditions.ConditionImpl
 
toString() - Method in class dev.comfast.cf.CfAbstractLocator
 
toString() - Method in class dev.comfast.cf.common.conditions.ConditionImpl.ConditionImplBuilder
 
toString() - Method in class dev.comfast.cf.common.conditions.ConditionImpl
 
toString() - Method in exception dev.comfast.cf.common.errors.ConditionFailed
 
toString() - Method in exception dev.comfast.cf.common.errors.ElementFindFail
 
toString() - Method in class dev.comfast.cf.common.selector.SelectorChain
 
Tracer - Class in dev.comfast.cf.common.utils
Print out all internal WebDriver events with its times.
Tracer() - Constructor for class dev.comfast.cf.common.utils.Tracer
 
tryFind() - Method in interface dev.comfast.cf.CfLocator
Force find action, doesn't throw exception.
tryFind() - Method in class dev.comfast.cf.se.SeleniumLocator
 
type(String) - Method in interface dev.comfast.cf.CfLocator
Type keys into element
type(String) - Method in class dev.comfast.cf.se.SeleniumLocator
 

W

waitFor(Function<CfLocator, Object>, long) - Method in interface dev.comfast.cf.CfLocator
Wait for given function return truth value (true, 1, non null object etc.)
waitFor(Function<CfLocator, Object>, long) - Method in class dev.comfast.cf.se.SeleniumLocator
 
WebElementFinder - Class in dev.comfast.cf.se
 
WebElementFinder(SelectorChain) - Constructor for class dev.comfast.cf.se.WebElementFinder
 
$ A B C D E F G H I L M N O P S T W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form