mirror of
https://github.com/tnypxl/rollup.git
synced 2025-12-15 15:03:17 +00:00
refactor: update browser initialization in scraper tests
This commit is contained in:
@@ -339,6 +339,16 @@ func ClosePlaywright() {
|
||||
}
|
||||
}
|
||||
|
||||
// InitBrowser initializes the browser
|
||||
func InitBrowser() error {
|
||||
return InitPlaywright()
|
||||
}
|
||||
|
||||
// CloseBrowser closes the browser
|
||||
func CloseBrowser() {
|
||||
ClosePlaywright()
|
||||
}
|
||||
|
||||
// FetchWebpageContent retrieves the content of a webpage using Playwright
|
||||
func FetchWebpageContent(urlStr string) (string, error) {
|
||||
logger.Printf("Fetching webpage content for URL: %s\n", urlStr)
|
||||
|
||||
Reference in New Issue
Block a user