Hello,
I want to invoke the AcceptDependantRequestCommand. Is this possible and if so how? Would I need to set an automationId on the CollectionView or work directly on the button.
Add AutomationId="testButton"
directly like following code.
<Button
AutomationId="testButton"
Grid.Column="1"
Command="{Binding AcceptDependantRequestCommand}"
CommandParameter="{Binding .}"
Style="{StaticResource PositiveSmallButtonStyle}"
Text="{x:Static resx:AppResources.AcceptText}" />
Then open your Tests.cs, add test method and add following code.
app.Tap(c => c.Marked("testButton"));
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.