Terminal command to allow remote automation for Safari 14.x

I am trying to automate selenium script in remote machine but i was unable to enable developmenu as well as allow remote automation option in safari 14.x.


defaults write com.apple.Safari IncludeDevelopMenu -bool true; defaults write com.apple.Safari AllowRemoteAutomation 1" used to work in safari 13.x but not working for safari 14.x.


Can some please help me on this command if any one using it for their scripts.


Any help would be appriciated.


Thanks.

Posted on Aug 7, 2021 7:49 AM

Reply
1 reply

Aug 7, 2021 8:45 AM in response to jafirkhan

Apple is continually changing keys in its applications and Safari 14.* has no key "AllowRemoteAutomation." Instead, see if the Testing with WebDriver in Safari helps with remote automation. Not up my alley, so this link may not help.


defaults write com.apple.Safari IncludeDevelopMenu -bool [ true | false ]


The key IncludeDevelopMenu is not present within Safari 14.1.2, but can be added per the above.


This will remove (false) the Develop menu if it is already enabled, on Safari 14.1.2 but requires one to quit a running Safari and relaunch to see the change. The defaults command does not dynamically enable (true) the Develop menu on a running Safari 14 without that menu item, nor will the Develop menu appear once Safari is quit and relaunched. It must be deliberately enabled via the Safari Preferences > Advanced panel to dynamically appear on Safari 14.1.2.


macOS 11.5.1.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Terminal command to allow remote automation for Safari 14.x

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.