import { BottomBarPanel } from "../.."; import { AbstractElement } from "../AbstractElement"; import { WebElement } from 'selenium-webdriver'; import { ElementWithContexMenu } from "../ElementWithContextMenu"; /** * Problems view in the bottom panel */ export declare class ProblemsView extends AbstractElement { constructor(panel?: BottomBarPanel); /** * Set the filter using the input box on the problems view * @param pattern filter to use, preferably a glob pattern * @returns Promise resolving when the filter pattern is filled in */ setFilter(pattern: string): Promise; /** * Clear all filters * @returns Promise resolving to the filter field WebElement */ clearFilter(): Promise; /** * Collapse all collapsible markers in the problems view * @returns Promise resolving when the collapse all button is pressed */ collapseAll(): Promise; /** * @deprecated The method should not be used and getAllVisibleMarkers() should be used instead. */ getAllMarkers(type: MarkerType): Promise; /** * Get all visible markers from the problems view with the given type. * Warning: this only returns the markers that are visible, and not the * entire list, so calls to this function may change depending on the * environment in which the tests are running in. * To get all markers regardless of type, use MarkerType.Any * @param type type of markers to retrieve * @returns Promise resolving to array of Marker objects */ getAllVisibleMarkers(type: MarkerType): Promise; /** * Gets the count badge * @returns Promise resolving to the WebElement representing the count badge */ getCountBadge(): Promise; } /** * Page object for a Marker in Problems view */ export declare class Marker extends ElementWithContexMenu { constructor(element: WebElement, view: ProblemsView); /** * Get the type of the marker. Possible types are: * - File * - Error * - Warning * @returns Promise resolving to a MarkerType */ getType(): Promise; /** * Get the full text of the Marker row * @returns Promise resolving to a Marker row text */ getText(): Promise; /** * Get the Marker label text * @returns Promise resolving to a Marker label */ getLabel(): Promise; /** * Expand/Collapse the Marker if possible * @param expand True to expand, False to collapse * @returns Promise resolving when the expand/collapse twistie is clicked */ toggleExpand(expand: boolean): Promise; } /** * Possible types of markers * - File = expandable item representing a file * - Error = an error marker * - Warning = a warning marker * - Any = any of the above */ export declare enum MarkerType { File = "file", Error = "error", Warning = "warning", Any = "any" }