mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-10 14:07:59 -05:00
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:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user