Puppeteer + Playwright

This commit is contained in:
2024-05-29 16:42:52 +02:00
parent fe9a8e2b20
commit d38817f4c5
22 changed files with 1913 additions and 284 deletions
+9 -2
View File
@@ -53,8 +53,15 @@ exports.sale = asyncHandler(async (req, res, next) => {
console.log("Agent Follow Sale: ", url)
AuctionPlatform.Live(req.browser)
switch(AuctionPlatform._BROWSER_TOOL){
case "puppeteerBrowser":
AuctionPlatform.Live(req.puppeteerBrowser)
break;
case "playwrightBrowser":
AuctionPlatform.Live(req.playwrightBrowser)
break;
}
res.status(200).send({"Following URL": url})
}else{
res.status(400).send("URL not supported")