/** * Text field class */ export declare class TextField { /** * To enter text in text field * * ```js * * TextField.enterText("Project Name","Project_123"); * ``` * * @param {String} fieldLbl //Label of the input box * @param {String} valueToEnter // Value you want to enter into the text box * */ static enterText(fieldLbl: string, valueToEnter: string | number): Promise; /** * To enter text in text field using the placeholder attribute * * ``js * TextField.enterTextUsingPlaceHolder("Enter Project Name","Project_123"); * ``` * * @param {String} placeholder // input Box placeholder * @param {String} valueToEnter //Value to enter into the textbox * */ static enterTextUsingPlaceHolder(placeholder: string, valueToEnter: string | number): Promise; /** * To enter text in text field by passing locator * * ``js * TextField.enterTextUsingLocator("//input[@id='emailID']","Project_123"); * ``` * * @param {String} locator located by xpath | CSS * @param {String} dataToFill //Value to enter into the textbox * */ static enterTextUsingLocator(locator: string, dataToFill: string | number): Promise; /** * To enter text in text field by passing locator * * ``js * TextField.enterTextUsingLocator("//input[@id='emailID']","Project_123"); * ``` * * @param {String} locator located by xpath | CSS * @param {String} dataToFill //Value to enter into the textbox * */ static clearFieldenterTextUsingLocator(locator: string, dataToFill: string | number): Promise; /** * Types out the given string or the array of keys provided. * * ```js * When passing in a string * await Textfield.type('//div/input','Type this out.'); * * When passing in an array * await Textfield.type('//div/input',['T', 'E', 'X', 'T']); * ``` * * @param { string } locator xpath of the input box * @param {string | Array } key or array of keys to type. Type out given array of keys or a string of text * */ static type(locator: string, key: string | Array): Promise; /** * Types out the given text into an active field. * * ```js * When passing in a string * await Textfield.typeText('Type this out.'); * * When passing in an array * await Textfield.typeText(['T', 'E', 'X', 'T']); * ``` * * @param {string | Array } key or array of keys to type. Type out given array of keys or a string of text * */ static typeText(key: string | Array): Promise; }