如何使用java selenium webdriver从pdf中读取当前页码PDF文件在broswer中打开?

时间:2016-04-21 07:07:56

标签: java selenium pdf

import java.io.IOException;
import java.util.concurrent.TimeUnit;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;


public class PDFreader {

 public static void main(String[] args) throws InterruptedException, IOException{
     WebDriver driver;

     driver=new FirefoxDriver();
     driver.get("http://www.ptutorial.com/java-pdf/java-programs-examples-with-output-pdf.pdf");

     driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
    }
}

0 个答案:

没有答案