UNPKG

@redhat-developer/page-objects

Version:

Page Object API implementation for a VS Code editor used by ExTester framework.

52 lines (51 loc) 2.1 kB
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License", destination); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { WebElement } from 'selenium-webdriver'; import { TreeSection } from '../TreeSection'; import { CustomTreeItem } from '../custom/CustomTreeItem'; export declare class VariableSectionItem extends CustomTreeItem { constructor(element: WebElement, viewPart: TreeSection); /** * Get name of the variable. * @returns a promise resolving to variable name string */ getVariableName(): Promise<string>; /** * Get value of the variable. * @returns a promise resolving to value string of the variable */ getVariableValue(): Promise<string>; /** * Get variable name tooltip. * @returns a promise resolving to variable name tooltip string * @deprecated For VS Code 1.88+ this method won't be working any more */ getVariableNameTooltip(): Promise<string>; /** * Get variable value tooltip. * @returns a promise resolving to variable value tooltip string * @deprecated For VS Code 1.89+ this method won't be working any more */ getVariableValueTooltip(): Promise<string>; getLabel(): Promise<string>; getTooltip(): Promise<string>; /** * Assign new value to the variable. * @param value new value */ setVariableValue(value: string): Promise<void>; }