Lori Cook - 2019-03-08

Can anyone point me to the technique to use ? I need a test case to close a window by clicking on the X icon on the window frame, but can't figure out how to get the component.

I've searched but either my google foo isn't good enough or it hasn't been ask/answered.

Thanks for any help you can give.