INJIMOB-3030 fixed the automation issue (#1855)

* INJIMOB-2904

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* INJIMOB-3029

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* INJIMOB-3029

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* resolve conflicts

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

* INJIMOB-3030

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>

---------

Signed-off-by: Anup Nehe <anup.nehe@technoforte.co.in>
This commit is contained in:
anup-nehe
2025-03-13 16:19:07 +05:30
committed by GitHub
parent d9b003bfd1
commit e47066ef24
2 changed files with 13 additions and 2 deletions

View File

@@ -70,6 +70,11 @@ public class AddNewCardPage extends BasePage{
@iOSXCUITFindBy(accessibility = "issuerHeading-MockMdl")
private WebElement downloadViaMockCertify;
@AndroidFindBy(xpath = "//*[@resource-id=\"issuerSearchBar\"]")
@iOSXCUITFindBy(accessibility = "issuerSearchBar")
private WebElement IssuerSearchBar;
//android.view.ViewGroup[@resource-id="searchIssuerIcon"]
@AndroidFindBy(accessibility = "credentialTypeHeading-DrivingLicenseCredential")
@iOSXCUITFindBy(accessibility = "credentialTypeHeading-DrivingLicenseCredential")
private WebElement credentialTypeHeadingMockVerifiableCredential_mdoc;
@@ -209,8 +214,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

@@ -25,7 +25,7 @@ public class VerifyWelcomePagesTest extends IosBaseTest {
SecureSharingPage secureSharingPage = new SecureSharingPage(driver);
assertTrue(secureSharingPage.verifyLanguageforSecureSharingPageLoaded("English"), "Secure Sharing");
assertEquals(secureSharingPage.getSecureSharingDescription("English"), "Share your cards securely in a hassle free way and avail various services.");
assertTrue(secureSharingPage.getSecureSharingDescription("English"), "Share your cards securely in a hassle free way and avail various services.");
secureSharingPage.clickOnNextButton();
TrustedDigitalWalletPage trustedDigitalWalletPage = new TrustedDigitalWalletPage(driver);