FinderFilter
This class provides filtering methods for Finder. This class is Mixined to "Finder" class
Static Method Summary
| Static Public Methods | ||
| public static |
|
|
| public static |
beDisabled(bool: *): string |
|
| public static |
beSelected(bool: *): string |
|
| public static |
|
|
| public static |
haveAttribute(attrName: *, value: *): string |
|
| public static |
|
|
| public static |
haveContent(content: *): string |
|
| public static |
|
|
| public static |
Alias of haveContent |
|
| public static |
|
|
| public static |
|
|
| public static |
|
|
| public static |
notHaveAttribute(attrName: *, value: *): string |
|
| public static |
notHaveClass(classname: *): string |
|
| public static |
notHaveContent(content: *): string |
|
| public static |
notHaveStyle(styleName: *, value: *): string |
|
| public static |
notHaveText(text: *): string Alias of notHaveContent |
|
| public static |
notHaveValue(value: *): string |
|
| public static |
|
|
| public static |
textIncludes(content: *): string |
|
| public static |
|
|
| public static |
valueIncludes(value: *): string |
|
| public static |
valueMatch(regexp: *): string |
|
Method Summary
| Public Methods | ||
| public |
|
|
| public |
beSelected(): Finder |
|
| public |
|
|
| public |
|
|
| public |
haveAttribute(attrName: *, value: *): Finder |
|
| public |
haveContent(content: *): Finder |
|
| public |
haveCssClass(classname: *): Finder |
|
| public |
haveCssProperty(propName: *, value: *): Finder |
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
notHaveAttribute(attrName: *, value: *): Finder |
|
| public |
notHaveContent(content: *): Finder |
|
| public |
notHaveCssClass(classname: *): Finder |
|
| public |
notHaveCssProperty(propName: *, value: *): Finder |
|
| public |
notHaveText(text: *): Finder |
|
| public |
notHaveValue(val: *): Finder |
|
| public |
|
|
| public |
textIncludes(content: *): Finder |
|
| public |
|
|
| public |
valueIncludes(value: *): Finder |
|
| public |
valueMatch(regexp: *): Finder |
|
Static Public Methods
public static beChecked(bool: *): string source
Params:
| Name | Type | Attribute | Description |
| bool | * |
Return:
| string | return function code to select elements which have given value as element.checked attribute. |
public static beDisabled(bool: *): string source
Params:
| Name | Type | Attribute | Description |
| bool | * |
Return:
| string | return function code to select elements which have given value as element.disabled attribute. |
public static beSelected(bool: *): string source
Params:
| Name | Type | Attribute | Description |
| bool | * |
Return:
| string | return function code to select elements which have given value as element.selected attribute. |
public static haveAttribute(attrName: *, value: *): string source
Params:
| Name | Type | Attribute | Description |
| attrName | * | ||
| value | * |
Return:
| string | return function code to select elements which have given value in element.getAttribute(attrName) |
public static haveClass(classname: *): string source
Params:
| Name | Type | Attribute | Description |
| classname | * |
Return:
| string | return function code to select elements which have given value in element.classList attribute. |
public static haveContent(content: *): string source
Params:
| Name | Type | Attribute | Description |
| content | * |
Return:
| string | return function code to select elements which have given content as element.textContent |
public static haveStyle(styleName: *, value: *): string source
Params:
| Name | Type | Attribute | Description |
| styleName | * | ||
| value | * |
Return:
| string | return function code to select elements which have given value in window.getComputedStyle(element) |
public static haveText(text: *): string source
Alias of haveContent
Params:
| Name | Type | Attribute | Description |
| text | * |
Return:
| string | return function code to select elements which have given content as element.textContent |
public static isClickable(): string source
Return:
| string | return css selector string to select clickable elements like a, button, input[type=button] |
public static notHaveAttribute(attrName: *, value: *): string source
Params:
| Name | Type | Attribute | Description |
| attrName | * | ||
| value | * |
Return:
| string | return function code to select elements which do not have given value in element.getAttribute(attrName) |
public static notHaveClass(classname: *): string source
Params:
| Name | Type | Attribute | Description |
| classname | * |
Return:
| string | return function code to select elements which do not have given value in element.classList attribute. |
public static notHaveContent(content: *): string source
Params:
| Name | Type | Attribute | Description |
| content | * |
Return:
| string | return function code to select elements which do not have given content as element.textContent |
public static notHaveStyle(styleName: *, value: *): string source
Params:
| Name | Type | Attribute | Description |
| styleName | * | ||
| value | * |
Return:
| string | return function code to select elements which do not have given value in window.getComputedStyle(element) |
public static notHaveText(text: *): string source
Alias of notHaveContent
Params:
| Name | Type | Attribute | Description |
| text | * |
Return:
| string | return function code to select elements which do not have given content as element.textContent |
public static notHaveValue(value: *): string source
Params:
| Name | Type | Attribute | Description |
| value | * |
Return:
| string | return function code to select elements which do not have given value as element.value |
public static textIncludes(content: *): string source
Params:
| Name | Type | Attribute | Description |
| content | * |
Return:
| string | return function code to select elements which includes given content as element.textContent |
public static textMatch(regexp: *): string source
Params:
| Name | Type | Attribute | Description |
| regexp | * |
Return:
| string | return function code to select elements which match given regexp as element.textContent |
Public Methods
public haveAttribute(attrName: *, value: *): Finder source
Params:
| Name | Type | Attribute | Description |
| attrName | * | ||
| value | * |
public haveCssProperty(propName: *, value: *): Finder source
Params:
| Name | Type | Attribute | Description |
| propName | * | ||
| value | * |
public notHaveAttribute(attrName: *, value: *): Finder source
Params:
| Name | Type | Attribute | Description |
| attrName | * | ||
| value | * |
public notHaveCssClass(classname: *): Finder source
Params:
| Name | Type | Attribute | Description |
| classname | * |
public notHaveCssProperty(propName: *, value: *): Finder source
Params:
| Name | Type | Attribute | Description |
| propName | * | ||
| value | * |
