Assign Id to a container

0
Hi, I want to give an id to container/div so I can use it for doucment.getelementbyId in nanoflow. How can I achieve this?
asked
3 answers
0

HI

If you really need this you can create custom widget using Typescript or Javascript.

Regards,

Anahit 

answered
0

Mendix already gives dynamic ID to each element. But you cannot rely on it, as it keeps changing.

Mendix gives unique CSS name for each element that is created. You can also set the Name property in the common tab and use that along with some basic DOM navigation to find the element you need.

Check this document, although this is more for automation testing, reading this might answer your question.

https://docs.mendix.com/howto/testing/testing-mendix-applications-using-selenium-ide#5-locating-changing-a-test-target

answered
0

Hi Ankesh,

Its better catch the div name. You can find this in container properties. You can use the JS method getElementByClassName to catch the div

answered