go-screenshot-safari is a GoLang tool that utilizes Selenium with the Safari browser to capture web page screenshots.
This project provides a straightforward implementation of Selenium (in GoLang) with the Safari browser for capturing screenshots of web pages. It addresses the limitations posed by certain websites that require specific browsers, such as Chrome (version 96.0 or higher), Edge, or Safari, to function properly.
This tool is ideal for developers and testers who need to capture screenshots of web pages that require specific browsers like Safari. It automates the screenshot process, making it easier to document and analyze web content across different sites.
Ensure that the Selenium server is running and that Safari is configured for remote automation before using this tool.
Run the command: go install -v github.com/Abhinandan-Khurana/go-screenshot-safari@v1.0.2
Enable remote automation in Safari by going to Develop > Developer Settings > Allow remote Automation.
Run the Selenium server using: java -jar selenium-server-standalone-3.5.3.jargo run . -urls_file urls.txt -output_dir screenshots -load_wait_time 2 -interval_wait_time 1
Runs the tool to take screenshots of URLs listed in 'urls.txt', saving them to the 'screenshots' directory with specified wait times.