简体   繁体   English

如何在Eclipse项目中访问HTML文件?

[英]How do I access a HTML file in an Eclipse Project?

I am trying to open a local HTML file located in my Eclipse Project Folder. 我正在尝试打开位于Eclipse项目文件夹中的本地HTML文件。 Here my code: 这是我的代码:

String baseURL = "http://www.google.com";
selenium1 = new WebDriverBackedSelenium(progressDriver, baseURL);
        selenium1.open("outputtter.html");
        progressDriver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);
        selenium1.refresh();

This is not working. 这是行不通的。 Please help. 请帮忙。 Thanks. 谢谢。

use 采用

selenium1.open("/outputtter.html");  //check the path here.
                     This depends on from where you are exactly accessing

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM