Apple's support for Safari on Windows stopped at 5.1 version, which means the latest safari you can install on Windows in Safari 5.1.
Second - no docker images for Safari -
Third, you can create a Machintosh VM on your PC
here is the link for Catalina
here is the link for Mojave
if you add one of those on your machine you also need to enable Safari automation
Go to Safari > Preferences
Go to Advanced and in the bottom, there is an option "Show Develop menu in menu bar"
Check that option
Go to Develop
Check on "Allow Remote Automation"
Close/Quit the browser
After that, you can run the selenium node script on mac in order to connect it from the grid. And you can also use as a grid the docker-selenium
Maybe using webdriver as a variable name for the webdriver is confusing. Try using
driver = webdriver.Chrome(executable_path=chromedriver_path)
And then you can resize window size with the following
The error says chrome is not reachable. Most probably that instance has been deleted
I am showing a simple method to save session data( all cookies will be saved ) and then load selenium to load from that instance.
Look at the following example
from selenium.webdriver.chrome.options import Options
from selenium import webdriver
session = "mySession"
chrome_driver_path = '/home/aahnik/Downloads/apps/chromedriver'
whatsapp_web_url = "https://web.whatsapp.com/"
chrome_options = Options()
driver = webdriver.Chrome(
Now execute this code. WhatsApp web will open. Login by scanning the QR Code.
Now close the window, and then terminate the program.
Now will see a folder named mySession in your current user directory.
Execute this code again
This time you will find that you are already logged into WhatsApp.
Hope this helped.