How to print the Winapp driver console log to a text file .. in case element not found it just says not found without proper info of which element not found . The information is visible in Winappdriver exe console but unable to print it in test logs . Any thoughts ??
How to print the Winapp driver console log to a text file .. in case element not found it just says not found without proper info of which element not found . The information is visible in Winappdriver exe console but unable to print it in test logs . Any thoughts ??
Have you tried printing the stack trace?
Stacktrace just shows that element not found .. but it doesnot say which element it is . That information is available in the Winappdriver console window but unable to write it in logs.
You would need to process the console output please Google!!!
avi8045 Also you can create a wrapper for control and print control locator on error: something like that https://www.ontestautomation.com/using-wrapper-methods-for-better-error-handling-in-selenium/#:~:text=Extending%20your%20wrapper%20methods%3A%20logging