1. Your title and description of problem doesn't match.
2. What do you need to do? If you want to print the value of any component. Get it value by using .getText() function.