I have created a script to perform various tasks within a website we use. Everything is working; however, there is a popup window that occurs when I click a button that confirms the action that I am performing. Now I have been using appactivate and then a sendkey as an interim fix which I want to get away from. I tried to get the elementbyid however it cannot find it as my object is still looking at the main window and not the popup. Does anyone have an idea how I can set focus to the new window get the button name by id, so a button.click, and then focus back on to the original window. Thanks for the help