Added option to capture the view object and/or display data for testing