The code works perfectly when performed with the Remote Machine opened. However, when it is minimized and UiPath runs, it cannot find the selectors. The issue is that due to the applications involved, the simulate and window message properties cannot be used.