const deviceManagement = document.querySelector('body > form:nth-child(21) > table:nth-child(4) > tbody:nth-child(1) > tr:nth-child(2) > td:nth-child(1) > div:nth-child(6) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(6) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2)');
deviceManagement.dispatchEvent(new MouseEvent('mouseover', { bubbles: true }));
setTimeout(() => {
const deviceList = document.querySelector('body > div:nth-child(18) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(1) > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2)');
deviceList.click();
}, 1000);
I have this code but i can’t able to run it in the java script action.