appium-remote-debugger
Version:
Appium proxy for Remote Debugger protocol
27 lines • 1.18 kB
TypeScript
import type { RemoteDebugger } from '../remote-debugger';
import type { StringRecord } from '@appium/types';
/**
* Retrieves all cookies for the current page by sending a Page.getCookies
* command to the remote debugger.
*
* @returns A promise that resolves to a dictionary containing the cookies.
*/
export declare function getCookies(this: RemoteDebugger): Promise<StringRecord>;
/**
* Sets a cookie on the current page by sending a Page.setCookie command
* to the remote debugger.
*
* @param cookie - Dictionary containing the cookie properties to set.
* @returns A promise that resolves when the cookie has been set.
*/
export declare function setCookie(this: RemoteDebugger, cookie: StringRecord): Promise<any>;
/**
* Deletes a cookie from the current page by sending a Page.deleteCookie
* command to the remote debugger.
*
* @param cookieName - The name of the cookie to delete.
* @param url - The URL associated with the cookie to delete.
* @returns A promise that resolves when the cookie has been deleted.
*/
export declare function deleteCookie(this: RemoteDebugger, cookieName: string, url: string): Promise<any>;
//# sourceMappingURL=cookies.d.ts.map