本文整理汇总了TypeScript中e2e-test/core/pageObjects.Selector.fromSelector方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Selector.fromSelector方法的具体用法?TypeScript Selector.fromSelector怎么用?TypeScript Selector.fromSelector使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类e2e-test/core/pageObjects.Selector
的用法示例。
在下文中一共展示了Selector.fromSelector方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: ClickablePageObject
import {
SelectPageObjectType,
SelectPageObject,
Selector,
ClickablePageObjectType,
ClickablePageObject,
} from 'e2e-test/core/pageObjects';
import { TestPage } from 'e2e-test/core/pages';
export interface EditPanelPage {
queriesTab: ClickablePageObjectType;
saveDashboard: ClickablePageObjectType;
scenarioSelect: SelectPageObjectType;
showXAxis: ClickablePageObjectType;
visualizationTab: ClickablePageObjectType;
}
export const editPanelPage = new TestPage<EditPanelPage>({
pageObjects: {
queriesTab: new ClickablePageObject(Selector.fromAriaLabel('Queries tab button')),
saveDashboard: new ClickablePageObject(Selector.fromAriaLabel('Save dashboard navbar button')),
scenarioSelect: new SelectPageObject(Selector.fromAriaLabel('Scenario Select')),
showXAxis: new ClickablePageObject(Selector.fromSelector('[aria-label="X-Axis section"] > gf-form-switch')),
visualizationTab: new ClickablePageObject(Selector.fromAriaLabel('Visualization tab button')),
},
});