简体   繁体   English

在 Eclipse 中运行 Selenium 时,我在哪里可以找到 System.out.println output?

[英]Where I can find System.out.println output when running Selenium in Eclipse?

Where would I find in Eclipse 4.9.0 a view which displays System.out.println() outputs?在 Eclipse 4.9.0 中哪里可以找到显示System.out.println()输出的视图?

I am running tests via Ant script from the Eclipse's Window.我正在通过 Eclipse 的 Window 中的Ant脚本运行测试。 I can see the console output of the build but no internal messages from the tests.我可以看到构建的控制台 output 但没有来自测试的内部消息。

在此处输入图像描述

Sample code:示例代码:

        List<WebElement> links = driver.findElements(By.partialLinkText("selenium i testowanie"));
        assertEquals(6, links.size());

        for (WebElement link : links) {
            System.out.println("link: "+link.getAttribute("href"));
        }

Please check below link for more information https://www.eclipse.org/forums/index.php/t/173521/请查看以下链接了解更多信息https://www.eclipse.org/forums/index.php/t/173521/

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

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