Puppeteer + Playwright
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user