What I'm trying to do is turn the Flash setting from 'Block' to 'Allow' in the chrome settings page mentioned below. I looked up the xpath for the sel drop down option for Flash to run the Webdriver code but it doesn't select the element at all.
WebDriver driver = new ChromeDriver();
String flashURL = "chrome://settings/content/siteDetails?site=https%3A%2F%2Fwww.xfinity.com";
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.get(flashURL);
//copy the xpath for Flash sel drop down: //*[@id="permission"]
WebElement flash = driver.findElement(By.xpath("//*[@id="permission"]"));
flash.click();
When I run the program, I get the error saying web element was not found.
I'm on Chrome 78 and have the appropriate chromedriver installed.
With the help of Kwishna in comments I got this answer. Allow Flash content in Chrome 69 running via chromedriver Looks like Johno Crawford gave a reply that will help any one trying to turn on Flash by default.