Search code examples
rubyseleniumwatir

How to disable this option in chrome via program


I am recording the video using screen-recorder in my framework, but to do that I have to disable the option Use hardware acceleration when available but since I clear profile every time when sanity run finishes, this selection also gets deleted along with the profile. Is there any way I can set this option when I am initiating the browser? Like we are disabling the prompt_for_download

enter image description here


Solution

  • you may start chrome with --disable-gpu flag