webdriver - Print console window to a text file, java -
i wanted ask if possible print automated tests' console window text file. i'm new webdriver , java , far have got print out using code below. appreciated, in advance.
filewriter fw = new filewriter("c:\\selenium_output_.txt"); fw.write("test"); fw.close();
if automated tests console writes system.out
, can redirect system.out
file using system.setout
. more in this other answer on so. (you can same thing system.err
if uses well.)
Comments
Post a Comment