Ensure page closure after use for all pages so that unnecessary pages are not loaded.
This commit is contained in:
@@ -58,6 +58,7 @@ public static class GoogleMessages
|
||||
string messageText = await messageElement.InnerTextAsync();
|
||||
|
||||
await originalPage.BringToFrontAsync();
|
||||
await msgPage.CloseAsync();
|
||||
return messageText;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user