Text field selection in a modal window

I can’t switch to a modal window for entering text in a text field.

Example in the screenshot …

I don’t understand how to set this window so that the text is inserted.
Comand: type
Terget: id = modal-add-publication
does not work

Do you have a link to the website?

But what will work for sure is to use XClick (to set the focus on this window) and then XType to enter the text.