hollingsworthd / jBrowserDriver

A programmable, embeddable web browser driver compatible with the Selenium WebDriver spec -- headless, WebKit-based, pure Java
Other
812 stars 143 forks source link

Can jBrowserDriver load flash? #334

Closed TiantianUpup closed 5 years ago

TiantianUpup commented 6 years ago

I want to use jBrowserDriver to play video Here is my code:

JBrowserDriver driver = new JBrowserDriver(Settings.builder().timezone(Timezone.ASIA_SHANGHAI).build());
driver.get("https://www.iqiyi.com/v_19rqzvbyms.html"); 
driver.pageWait();
ImageIO.write(new AShot().coordsProvider(new WebDriverCoordsProvider())
                        .takeScreenshot(driver).getImage(),
                "png", new File("Users\\hetiantian\\Desktop\\test.png"));       
driver.quit();

By looking up Screenshot, I find it doesn't work.Because it can't load flash I review some infomation, but still can't resolve it Can you help me, thanks in advance

hollingsworthd commented 5 years ago

I suppose you've long moved past this, but for the record, no it cannot load flash.