If you want to use AttachWindow activity, please use classic Click activity as the following image.
(The above click is modern click : NClick activity)
It might be necessary to check ShowClassic option at Filter in Activities panel.
Or You can also use UseApplication/Brower activity instead of AttachWindow.