How to run Chrome/Firefox with disabled flash plugin from watir script?
If I disable flash in Chrome, next time when I execute watir-webdriver script Flash is enabled again.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For Firefox it is easy. Disable flash in your default profile (the one you normally use) and then start the browser like this:
More information: http://watirwebdriver.com/firefox/
For Chrome I thought this would do it, but looks like I am doing something wrong, since flash is enabled:
More information: http://watirwebdriver.com/chrome/
Workaround is to run this every time you want Flash disabled in Chrome: