Having troubles adding ID's to the windows created using dhtmlXWindows

I tried below code:
dhxWins = new dhtmlXWindows();
w1 = dhxWins.createWindow(“w1”, 20, 30, 320, 200);
w1.setText(“dhtmlxWindow #1”);

But I don’t see “w1” as id of the window which got created.

How can I add id’s to these windows?

Unfortunately your issue is not clear. Could you please, clarify it.

I am trying to write automated UI tests for a dhtmlx application.
We have used dhtmlx windows for the pop ups, dthmlxgrids etc., but the issue is, for eg: the pop up window created by using dhtmlx don’t add id’s to to parent div. Without any div id its very difficult to find any specific window when there are many pop up windows opened.
Using the above mentioned code we are creating the pop up window. According to my understanding for “createWindow”, the first parameter passed to it is the id. But I don’t see this id getting appended in the div of the created pop up window.
So my question is, is there any way how I can add unique id’s to every pop up window created.

Unfortunately the dhxWindows API does not ailow to assign the ids to the window DOM elements.

Thanks for the information.
As a follow up I have another question, does other APIs provided by dhtmlx allows to assign any ids to the DOM elements? If yes, what are they?

Such API is available only for the dhtmlxGrid: