Is it possible to set autoplay-policy with chromeoptions.

393 views
Skip to first unread message

sridhar249

unread,
Jul 11, 2018, 5:16:35 PM7/11/18
to Selenium Users
  • Open google chrome.
  • Go to chrome://flags/#autoplay-policy
  • Notice that auto play policy will set to Default.
I would like to know if we can pass the value for auto play policy to be "No user gesture is required" through chromeoptions.

I found this question, which is the same: https://github.com/SeleniumHQ/selenium/issues/5477, but could not find a solution.

Please help.



advanceau...@gmail.com

unread,
Jul 11, 2018, 6:51:38 PM7/11/18
to Selenium Users
Below are the sites with all options listed out.. hope you can find what you are looking for. 

sridhar249

unread,
Jul 12, 2018, 12:00:51 PM7/12/18
to Selenium Users
Thanks for the links. 

I found the option that i am looking for in this link: https://peter.sh/experiments/chromium-command-line-switches/

The option is: --no-user-gesture-required

Reply all
Reply to author
Forward
0 new messages