flagpole
Version:
Simple and fast DOM integration, headless or headful browser, and REST API testing framework.
87 lines (86 loc) • 2.95 kB
TypeScript
import { iAssertionContext, iValue } from "./interfaces";
import { PuppeteerElement } from "./puppeteerelement";
import { JSHandle, EvaluateFn, SerializableOrJSHandle } from "puppeteer";
export declare const ExtJsComponentTypes: {
actionsheet: string;
audio: string;
button: string;
image: string;
label: string;
loadmask: string;
panel: string;
segmentedbutton: string;
sheet: string;
spacer: string;
titlebar: string;
toolbar: string;
video: string;
carousel: string;
navigationview: string;
datepicker: string;
picker: string;
slider: string;
thumb: string;
tabpanel: string;
viewport: string;
dataview: string;
list: string;
nestedlist: string;
checkboxfield: string;
datepickerfield: string;
emailfield: string;
hiddenfield: string;
numberfield: string;
passwordfield: string;
radiofield: string;
searchfield: string;
selectfield: string;
sliderfield: string;
spinnerfield: string;
textfield: string;
textareafield: string;
togglefield: string;
treelist: string;
urlfield: string;
fieldset: string;
formpanel: string;
};
export declare class ExtJsComponent extends PuppeteerElement implements iValue {
protected _input: JSHandle;
protected _path: string;
get $(): JSHandle;
get path(): string;
get name(): string;
private get _response();
private get _isExtComponent();
static create(handle: JSHandle, context: iAssertionContext, name: string, path?: string): Promise<ExtJsComponent>;
private constructor();
focus(): Promise<any>;
hover(): Promise<void>;
blur(): Promise<any>;
click(): Promise<any>;
find(selector: string): Promise<iValue>;
findAll(selector: string): Promise<iValue[]>;
clear(): Promise<void>;
type(textToType: string, opts: any): Promise<any>;
pressEnter(): Promise<void>;
setValue(text: string): Promise<any>;
getParent(): Promise<ExtJsComponent | iValue>;
getNextSibling(selector: string): Promise<ExtJsComponent | iValue>;
getPreviousSibling(selector: string): Promise<ExtJsComponent | iValue>;
eval(js: EvaluateFn<any>, ...args: SerializableOrJSHandle[]): Promise<any>;
getClosest(selector?: string): Promise<iValue>;
selectOption(valuesToSelect: string | string[]): Promise<void>;
scrollTo(): Promise<void>;
protected _action(eventName: string): Promise<void>;
protected _getClassName(): Promise<string>;
protected _getAttribute(key: string): Promise<string>;
protected _getTagName(): Promise<string>;
protected _getInnerText(): Promise<string>;
protected _getInnerHtml(): Promise<string>;
protected _getOuterHtml(): Promise<string>;
protected _getText(): Promise<string>;
protected _getValue(): Promise<any>;
protected _getData(key: string): Promise<any>;
protected isPasswordField(): Promise<boolean>;
}