【问题标题】:Running Selenium from eclipse + browser says file not found for base url从 eclipse + 浏览器运行 Selenium 说找不到基本 url 的文件
【发布时间】:2011-07-13 11:44:26
【问题描述】:

我正在尝试从 Eclipse 运行 Selenium。 这是我正在执行的代码 -

Selenium selenium = 
new DefaultSelenium("localhost",4444,"*iexplore","http://www.google.com");

selenium.start();

浏览器使用 baseurl 打开,但显示 404 错误,提示“找不到文件”(无论是我指定的任何网站)。例如在这种情况下,我收到了图片中显示的消息 -

http://i51.tinypic.com/2cpxoio.jpg

谁能帮我解决这个问题?

【问题讨论】:

    标签: selenium file-not-found


    【解决方案1】:

    使用 - 继续上面的语句

    selenium.open("/");
    selenium.windowFocus();
    

    【讨论】:

    • 嘿,这对我的 http 网站有帮助。谢谢。但是对于 https 网站,我仍然遇到同样的问题。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-09-29
    • 1970-01-01
    • 1970-01-01
    • 2018-06-11
    • 2018-12-06
    • 1970-01-01
    • 2023-04-06
    相关资源
    最近更新 更多