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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -