本文整理汇总了TypeScript中nativescript-dev-appium.AppiumDriver.compareScreen方法的典型用法代码示例。如果您正苦于以下问题:TypeScript AppiumDriver.compareScreen方法的具体用法?TypeScript AppiumDriver.compareScreen怎么用?TypeScript AppiumDriver.compareScreen使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类nativescript-dev-appium.AppiumDriver
的用法示例。
在下文中一共展示了AppiumDriver.compareScreen方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: it
it("should not do anything when hidden action bar by page", async () => {
const hideActionBarButton = await driver.findElementByAutomationText("HideActionBar");
hideActionBarButton.click();
const screenMatches = await driver.compareScreen("actionBarVisibility-never-hidden", 5);
assert(screenMatches);
});
示例2: it
it("Navigate to scroll events", async () => {
await navigateBackToHome(driver);
const listItem = await scrollToElement(driver, "Horizontal with Variable");
await listItem.click();
const result = await driver.compareScreen("horizontalVariable");
expect(result).to.equal(true);
});
示例3: it
it("should open Date time axis", async () => {
await navigateToView(driver, axesText);
const dateTimeAxisButton = await driver.findElementByText("DateTime Axis");
await dateTimeAxisButton.click();
await driver.wait(animationTime);
const isTrue = await driver.compareScreen("date-time-axis");
expect(isTrue).to.be.true;
});
示例4: it
it("should open Range Bar series", async () => {
await navigateToView(driver, seriesText);
const rangeBarSeriesButton = await driver.findElementByText("Range Bar Series");
await rangeBarSeriesButton.click();
await driver.wait(animationTime);
const isTrue = await driver.compareScreen("range-bar-series");
expect(isTrue).to.be.true;
});