In one test, I look for a warning message - it has this format in the repository:
here is my code:container/container/container/container/table/container[@accessibilitylabel='Uploads']/container/
picture[@accessibilityid='warning.png']
Code: Select all
int intTimeOut=5000;
if(Common .RepoItemInfo .WaitForControl (
repo.IOS365Agile.Com365agileEnterprise365AgileTEST.LayoutContainer.WarningPngInfo,
intTimeOut,"Warning Triangle found.",false ,""))
{
I am only interested in finding it if it is visible.
How do I go about this?