feat: validate single-client broadcast operations
Build web service image / build (push) Successful in 1m9s
Build web service image / build (push) Successful in 1m9s
This commit is contained in:
@@ -500,7 +500,9 @@ public static partial class WechatChatClient
|
||||
var direct = FindByAutomationId(main, $"session_item_{session}");
|
||||
if (direct is not null)
|
||||
{
|
||||
direct.Click();
|
||||
// Use the same visible-center click path as the rest of the UI executor;
|
||||
// FlaUI's Click() can report success without changing WeChat's virtualized chat pane.
|
||||
ClickCenter(direct);
|
||||
await WaitForSessionPageAsync(main, session, cancellationToken).ConfigureAwait(false);
|
||||
return;
|
||||
}
|
||||
@@ -509,7 +511,7 @@ public static partial class WechatChatClient
|
||||
|
||||
private static async Task WaitForSessionPageAsync(AutomationElement main, string session, CancellationToken cancellationToken)
|
||||
{
|
||||
for (var attempt = 0; attempt < 25; attempt++)
|
||||
for (var attempt = 0; attempt < 100; attempt++)
|
||||
{
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
if (IsListeningSession(main, session, independent: false)
|
||||
|
||||
Reference in New Issue
Block a user