A Swift package for interacting with selenium and undetected-chromedriver (a selenium chromedriver) through python by using PythonKit.
Target is macOS/Linux where you can install python, Chrome, and the required python dependencies.
pip install selenium undetected-chromedriver
# Run example
cd Example
swift runimport AutomatedBrowser
// Regular Chrome
let browser = try! AutomatedBrowser(headless: false)
// Undetected Chrome
let browser = try! AutomatedBrowser(headless: false, undetected: true)
// Do some stuff
browser.load("https://example.org")
print(browser.pageSource)
browser.quit()