I use selenium to test a webpage . I want to display an image from that webpage on a JOption pane . How can I do this ? Here is the code
WebDriver driver = new FirefoxDriver() ;
driver.get(http://.........com) ;
WebElement imageElement = driver.findElement(By.id("imageID")) ;
JOptionPane.showInputDialog // ?
How to include this image from a website to a JOption Pane ? DO I need to download it first ?