New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TOAST validation #86
Comments
+1 my app also uses TOAST, but I haven't been able to identify / locate it yet |
This is a feature very important for validation |
It would be helpful if you could look at how TOAST displays its messaging, or if you solicit an android developer. It would be a good start to know how exactly TOAST works. |
The TOAST is an event that is sent from the execution of some other method. Toast is not a component part of the application layout. We need a method to visualize any text sent on the screen indepedente to be part of the layout or not. For example the the WAITFORTEXT robotium. But I do not know if this method has already Selendroid. |
I understand that it is not apart of the application layout... thus why you can't see it in the inspector. Do you know what the "some other method" is. If I can get that info, then I'll likely be able to figure something out to get the messages. |
Are you able to find the TOAST, if you search in a loop for the text that is displayed?: |
I put the statement in loop. Selendroid couldn't be able to validate the toast. Element wasn't found. while (driver.findElement(By.linkText("Campo(s) não preenchido(s).")).isDisplayed()==true){ |
The command: driver.findeElement(By.linkText("Enter Your Text of Toast"); does not function. |
Is there a way to solve this problem with the newest version of Selendroid? |
I too have this question as i have tried using linktext but things don't work. Please let know when this issue would be solved |
webElement x=driver.findelementby(by.xpath("//Button[@id='showToastButton']"); |
Still unable to capture the toast message, Following is the console log output - INFO: POST redirect to: http://localhost:8080/wd/hub/session/1dda4f0e-3c74-f58d-5c2d-f7df4410d3cc/elements Finding the toast is in while loop. Please help me with this ASAP. |
Please use following code in your selendroid code waitForElement(By.partialLinkText("Your Toast message"), 4, driver); where first parameter is your toast message. Second parameter is Time duration in Seconds,third is driver. |
We have a working e2e test covering this. Lines 87 to 93 in 85b1f6d
|
It is possible to do validation TOAST with Selendroid ?
The text was updated successfully, but these errors were encountered: