You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scenario:
Same app for three platforms and UI some UI is native to platform or some in web view.
Example:
The login page is created for all three platform (Android,iOS,Web) with a native components.
-> Create a page object in your automation as given below:
@iOSFindBy(id = "CONTINUE AS A GUEST >") @findby(id="continue_as_guest_btn")
@AndroidFindBy(id = "guest_login")
public WebElement lnkContinueAsGuest;
//Event on element
public void clickContinueAsGuest(){
lnkContinueAsGuest.click();
}
Expected: While running for iOS, Serenity should use platform-specific locator strategy
Result: Serenity is using only @findby locator strategy for finding an element for Android and iOS.
The text was updated successfully, but these errors were encountered:
Scenario:
Same app for three platforms and UI some UI is native to platform or some in web view.
Example:
The login page is created for all three platform (Android,iOS,Web) with a native components.
-> Create a page object in your automation as given below:
@iOSFindBy(id = "CONTINUE AS A GUEST >")
@findby(id="continue_as_guest_btn")
@AndroidFindBy(id = "guest_login")
public WebElement lnkContinueAsGuest;
//Event on element
public void clickContinueAsGuest(){
lnkContinueAsGuest.click();
}
Expected: While running for iOS, Serenity should use platform-specific locator strategy
Result: Serenity is using only @findby locator strategy for finding an element for Android and iOS.
The text was updated successfully, but these errors were encountered: