'How to handle concurrent POST request in selenium Node JS

How to handle concurrent POST requests?

Example Code

async function getPageContent(){
        
    await driver.get(profileURL);
        let headline = await driver
                .findElement(By.id("main"))
                .getText()
                .then((res) => {
                  return res;
                });
    }

user-1 : POST : www.google.com
user-2 : POST : www.facebook.com
user-3 : POST : www.amazon.com
user-4 : POST : www.azure.com

How to handle these requests in selenium ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source