When I am printing the cause of TimeoutException caused by NoSuchElementException as in :
catch (TimeoutException tox) {
tox.printStackTrace();
printWarn("Cause for failure => " + tox.getCause());
}
The output to what I get from this is as follows :
Cause for failure => org.openqa.selenium.NoSuchElementException: An element could not be located on the page using the given search parameters. (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 10.41 seconds..
Build info: version: '2.48.2', revision: '41bccdd10cf2c0560f637404c2d96164b67d9d67', time: '2015-10-09 13:08:06' System info: host: 'localhost', ip: '172.20.44.84', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10.5', java.version: '1.8.0_65'
Driver info: AppiumDriver
Capabilities [{....}]
Session ID: 405d7843-5353-4a96-9288-b6d8301651b5
* **Element info: {Using=id, value=et_mobile_editTextView}
Can I get all the information in bold separately using any property or appending any method that I might be unaware of?
What I currently have is :
String completeCause = tox.getCause();
What I am looking for is :
String buildInfo = tox.<somemethod>();
String driverInfo = tox.<somemethod>(); etc..
Thanks in advance for taking out your time to help me with this.