本文整理匯總了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;
});