I have some automated tests written in TruClient scripts and I want to verify what was printed in the application JS console.
Is there any way to access that from the javascript?
Like console.getText()
type of thing?
I want to verify that some information appeared in the console.
For instance, how can I do this?
console.log("Hi");
//Now I want to check if it was printed correctly in the browser
if(console.getText() == "Hi")
{
//then test passed
}
I am needing this because we are architecting new browsers.