Skip to content

Commit

Permalink
updated pdfs iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
AEkaterina committed Mar 4, 2024
1 parent e2f0e9c commit 78815c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/java/screens/pdf/NavigationBarPdfScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/stepdefinitions/PdfSteps.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 78815c6

Please sign in to comment.