简体   繁体   中英

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?

I am running tests via Ant script from the Eclipse's Window. I can see the console output of the build but no internal messages from the tests.

在此处输入图像描述

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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