Toast Message Appium Library

Hi ,

I am using Appium Library for connecting with Android Devices for testing Mobile Applications , Now I want to check whether the Toast Message appear in the screen or not and I want to capture the Toast Message . Please guide me

Nagendran.

I know this is coming late.

I was able to detect Toast messages using Wait Until Page Contains Element

The code:

# login_page.robot
...

*** Variables ***
...
${TOAST_MESSAGE}    xpath=//android.widget.Toast[@text="Toast message."]

...
*** Keywords ***
...
Detect Toast Message After Login
...
    Wait Until Page Contains Element    ${TOAST_MESSAGE}
    Wait Until Page Contains    Toast message.    # Alternative

Make sure to install UiAutomator2 Android driver.