_button.Image = null;
_imageButton.Source = null;
_listView.ItemsSource = new string[] { null };
- button.Text = _appearText;
+ Device.BeginInvokeOnMainThread(() => button.Text = _appearText);
}
else
{
_button.Image = _fileName;
_imageButton.Source = _fileName;
_listView.ItemsSource = new string[] { _fileName };
- button.Text = _disappearText;
+ Device.BeginInvokeOnMainThread(() => button.Text = _disappearText);
}
})
};
Assert.IsNotNull(imageCell);
RunningApp.Tap("ClickMe");
+ RunningApp.WaitForElement(_appearText);
var elementsAfter = RunningApp.WaitForElement(_fileName);
var imageCellAfter = RunningApp.Query(app => app.Marked(_theListView).Descendant()).Where(x => x.Class.Contains("Image")).FirstOrDefault();
Assert.IsNull(imageCellAfter);