INJIMOB-3107 (#1858)

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>
This commit is contained in:
anup-nehe
2025-03-18 10:02:35 +05:30
committed by GitHub
parent 5ab11016c9
commit 5a0d165ff4
2 changed files with 12 additions and 2 deletions

View File

@@ -74,6 +74,10 @@ public class AddNewCardPage extends BasePage{
@iOSXCUITFindBy(accessibility = "credentialTypeHeading-DrivingLicenseCredential")
private WebElement credentialTypeHeadingMockVerifiableCredential_mdoc;
@AndroidFindBy(xpath = "//*[@resource-id=\"issuerSearchBar\"]")
@iOSXCUITFindBy(accessibility = "issuerSearchBar")
private WebElement IssuerSearchBar;
public AddNewCardPage(AppiumDriver driver) {
super(driver);
}
@@ -209,8 +213,14 @@ public class AddNewCardPage extends BasePage{
}
public MockCertifyLoginPage clickOnDownloadViaMockCertify(){
clickOnElement(downloadViaMockCertify);
if(isElementDisplayed(IssuerSearchBar)){
clearTextBoxAndSendKeys(IssuerSearchBar,"mock mobile");
}
clickOnElement(downloadViaMockCertify);
if(isElementDisplayed(downloadViaMockCertify)){
clickOnElement(downloadViaMockCertify);
}
try {
Thread.sleep(3000);
} catch (InterruptedException e) {

View File

@@ -144,7 +144,7 @@ public class MockCertifyLoginPage extends BasePage {
}
public void clickOnVerifyButtonIos() {
((HidesKeyboard) driver).hideKeyboard();
// ((HidesKeyboard) driver).hideKeyoard();
clickOnElement(verifyButton);
}