Hi All,
I have the below automated code using WATiN.
...
IE.Settings.WaitForCompleteTimeOut = 360;
IE.Settings.MakeNewIeInstanceVisible = false;
IE browser = new IE();
browser.GoTo("my web site that has uploader");
browser.FileUpload(Find.ById("FileUploader")).Set("File name and location");
browser.Button(Find.ById("btnNext")).Click();
The above piece of code is deployed on a server machine that i access through remote desktop. This code is executed as a scheduled task.
When i have connected to the server though remote desktop, working actively on it and that the scheduler ticks and starts the code to execute. The above code works absolutely fine. I can also see the browser window pop up and close.
However, when i am not connected to the server or had minimized the remote desktop window and that the scheduler had ticked and code execution had started. The above code fails to execute completely.
Later, when i connect/ maximize the remote desktop. I get to see the browse window open and feel the code failed to select the filename from the browse window.
If such similar problem had been observed and resolved, please let me know the solution incorporated.
Do help me to overcome this problem, thanks in advance. Madhu K