I've written a VBS script which automatically loads a script-defined secure webpage (https://
) in IE and submits a user's log-in credentials.
This causes a second webpage to load in a second tab (which becomes the active tab) in IE.
I know the name of the second page (let's say it's URL = "http://domain.com/secondpage")
My script then clicks on a link on this second page. This causes the webpage to start a Terminal Session on a remote computer (my work computer).
My work computer (or terminal server? ... I'm out of my depth here) open a new page? with an OK button (this page no longer appears to be within a browser; I assume it is in a terminal window; for example, if minimized, this window shows up on the taskbar as a separate 'app' window with my work computer's ID such as 'CorpPC1234').
I would like to add an action to my existing script (or have my script call another script) to click the OK button on the page the terminal session served (this is part of a secondary log-in sequence). If I can at least get past this OK button, I can then continue to automate the next log-in steps on subsequent terminal pages.
My problem is that unlike when I'm in the browser where I can target elements using for example the .getElementbyID function, once I'm in the Terminal Session I no longer know how to inspect the page or it's elements or tags or objects.
How can I go about this?