What is the c# alternative of the java code below?
await page.evaluate(() => {
return fetch('url', {method: 'POST', body: 'test' });
});
I need to send a post request using PuppeteerSharp. There are several ways but it seems it is the easiest one, But I did not find any alternative for the fetch method.
for the evaluate
method I found this method await page.EvaluateFunctionAsync
for C#, but How can I use fetch inside?