Always mention your JDev version and clear usecase. Why do you want to assign an ID for it? What do you want to do with the id after assigning it?
JDeveleoper version is 126.96.36.199.0.
There is a panel collection on top of tables component. View Menu is being showed here.
Selenium scripts are failing because the id being set is dynamic(j_id_xxx). We need to set that to static. QA will need this to go ahead. 17002381 is the bug id for reference.
Also we work on JDev version 11.1.2.x for other versions of the product.
One more observation is that the j_idxx is getting generated for a div which is on top of the _vw id.