From 78815c68dd49937eb9e95b399b96b62b9fd7df8e Mon Sep 17 00:00:00 2001 From: AEkaterina Date: Tue, 5 Mar 2024 02:36:06 +0400 Subject: [PATCH] updated pdfs iOS --- src/test/java/screens/pdf/NavigationBarPdfScreen.java | 2 +- src/test/java/stepdefinitions/PdfSteps.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/screens/pdf/NavigationBarPdfScreen.java b/src/test/java/screens/pdf/NavigationBarPdfScreen.java index 3f1cdaa..e4ee07c 100644 --- a/src/test/java/screens/pdf/NavigationBarPdfScreen.java +++ b/src/test/java/screens/pdf/NavigationBarPdfScreen.java @@ -21,7 +21,7 @@ public class NavigationBarPdfScreen extends Screen { private final IButton btnSettings = getElementFactory().getButton(By.xpath("//android.widget.Button[@content-desc=\"Settings\"]"), "Settings button"); private final IButton btnBookmark = getElementFactory().getButton(LocatorUtils.getLocator( new AndroidLocator(By.xpath("")), - new IosLocator(By.xpath("//XCUIElementTypeNavigationBar//XCUIElementTypeButton[@name=\"Bookmark\"]"))), "Bookmark button"); + new IosLocator(By.xpath("//XCUIElementTypeNavigationBar//XCUIElementTypeButton[@name=\"Add Bookmark\"]"))), "Bookmark button"); public NavigationBarPdfScreen() { super(LocatorUtils.getLocator( diff --git a/src/test/java/stepdefinitions/PdfSteps.java b/src/test/java/stepdefinitions/PdfSteps.java index 4855910..3da745b 100644 --- a/src/test/java/stepdefinitions/PdfSteps.java +++ b/src/test/java/stepdefinitions/PdfSteps.java @@ -141,7 +141,7 @@ public void comparePageNumbers(String pageInfoKey, String libraryName) { @Then("Current page number is equal to {string} on pdf reader screen") public void checkPageNumber(String pageNumberKey) { - String pageNumber = Integer.toString(context.get(pageNumberKey)); + String pageNumber = context.get(pageNumberKey); Assert.assertEquals("Page number is wrong", pageNumber, readerPdfScreen.getCurrentPageNumber()); }