本文整理汇总了TypeScript中e2e-test/core/pageObjects.Selector.fromAriaLabel方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Selector.fromAriaLabel方法的具体用法?TypeScript Selector.fromAriaLabel怎么用?TypeScript Selector.fromAriaLabel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类e2e-test/core/pageObjects.Selector
的用法示例。
在下文中一共展示了Selector.fromAriaLabel方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: ClickablePageObject
export const dashboardsPageFactory = (dashboardTitle: string) =>
new TestPage<DashboardsPage>({
url: '/dashboards',
pageObjects: {
dashboard: new ClickablePageObject(Selector.fromAriaLabel(dashboardTitle)),
},
});
示例2: ClickablePageObject
import { ClickablePageObjectType, ClickablePageObject, Selector } from 'e2e-test/core/pageObjects';
import { TestPage } from 'e2e-test/core/pages';
export interface CreateDashboardPage {
addQuery: ClickablePageObjectType;
}
export const createDashboardPage = new TestPage<CreateDashboardPage>({
url: '/dashboard/new',
pageObjects: {
addQuery: new ClickablePageObject(Selector.fromAriaLabel('Add Query CTA button')),
},
});
示例3: ClickablePageObject
import { ClickablePageObject, Selector, ClickablePageObjectType } from 'e2e-test/core/pageObjects';
import { TestPage } from 'e2e-test/core/pages';
export interface AddDataSourcePage {
testDataDB: ClickablePageObjectType;
}
export const addDataSourcePage = new TestPage<AddDataSourcePage>({
url: '/datasources/new',
pageObjects: {
testDataDB: new ClickablePageObject(Selector.fromAriaLabel('TestData DB datasource plugin')),
},
});
示例4: ClickablePageObject
import { ClickablePageObjectType, ClickablePageObject, Selector } from 'e2e-test/core/pageObjects';
import { TestPage } from 'e2e-test/core/pages';
export interface SharePanelModal {
directLinkRenderedImage: ClickablePageObjectType;
}
export const sharePanelModal = new TestPage<SharePanelModal>({
pageObjects: {
directLinkRenderedImage: new ClickablePageObject(Selector.fromAriaLabel('Link to rendered image')),
},
});
示例5: InputPageObject
import {
ClickablePageObjectType,
ClickablePageObject,
Selector,
InputPageObjectType,
InputPageObject,
} from 'e2e-test/core/pageObjects';
import { TestPage } from 'e2e-test/core/pages';
export interface SaveDashboardModal {
name: InputPageObjectType;
save: ClickablePageObjectType;
}
export const saveDashboardModal = new TestPage<SaveDashboardModal>({
pageObjects: {
name: new InputPageObject(Selector.fromAriaLabel('Save dashboard title field')),
save: new ClickablePageObject(Selector.fromAriaLabel('Save dashboard button')),
},
});
示例6: InputPageObject
import {
InputPageObject,
ClickablePageObject,
Selector,
InputPageObjectType,
ClickablePageObjectType,
} from 'e2e-test/core/pageObjects';
import { TestPage } from 'e2e-test/core/pages';
export interface LoginPage {
username: InputPageObjectType;
password: InputPageObjectType;
submit: ClickablePageObjectType;
}
export const loginPage = new TestPage<LoginPage>({
url: '/login',
pageObjects: {
username: new InputPageObject(Selector.fromAriaLabel('Username input field')),
password: new InputPageObject(Selector.fromAriaLabel('Password input field')),
submit: new ClickablePageObject(Selector.fromAriaLabel('Login button')),
},
});
示例7: 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')),
},
});
示例8: ClickablePageObject
import {
ClickablePageObjectType,
PageObjectType,
ClickablePageObject,
PageObject,
Selector,
} from 'e2e-test/core/pageObjects';
import { TestPage } from 'e2e-test/core/pages';
export interface EditDataSourcePage {
saveAndTest: ClickablePageObjectType;
alert: PageObjectType;
alertMessage: PageObjectType;
}
export const editDataSourcePage = new TestPage<EditDataSourcePage>({
pageObjects: {
saveAndTest: new ClickablePageObject(Selector.fromAriaLabel('Save and Test button')),
alert: new PageObject(Selector.fromAriaLabel('Datasource settings page Alert')),
alertMessage: new PageObject(Selector.fromAriaLabel('Datasource settings page Alert message')),
},
});
示例9: ClickablePageObject
import { ClickablePageObjectType, ClickablePageObject, Selector } from 'e2e-test/core/pageObjects';
import { TestPage } from 'e2e-test/core/pages';
export interface Panel {
panelTitle: ClickablePageObjectType;
share: ClickablePageObjectType;
}
export const panel = new TestPage<Panel>({
pageObjects: {
panelTitle: new ClickablePageObject(Selector.fromAriaLabel('Panel Title')),
share: new ClickablePageObject(Selector.fromAriaLabel('Share panel menu item')),
},
});