![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
I created a task using AA3.5 for downloading content from our internal reporting system web application and it has been running fine with IE6. I have upgraded to AA 4.0 and have been working with revising my current tasks to work with IE7 and have run into an issue with the download. The behavior is that once the link is "clicked" and the contents downloaded to a specific location on the HDD, a pop up window appears advising that the action has been completed. In IE6, I was able to program AA to click the OK button on the pop up window and the program would continue executing through the loop to download all 7 reports required. What appears to be happening with IE7 is that the download appears as busy to AA until the pop up window is closed. So it hits line 20 and uses a variable of $Dataset Column(1)$ and even though the "Microsoft Internet Explorer" window opens (line 21), the program is still waiting for the completion of the report download and does not continue until the "Microsoft Internet Explorer" window has been closed. If I click the window upon its appearance, then the code continues on, but it is looking for something that is no longer there and then errs out. Plus, I don't want to have to monitor this as it will be running unattended. The problematic lines have been highlighted below. The download function is using a javascript and a sample value of $Dataset Column(1)$ is javascript:download('TER412_GARDNLI_3336224.zip',' EQP1A','file:///c:/fts/TER412_GARDNLI_3336224') Do you have any suggestions on how to get around this? I have re-recorded the entire sequence using the web recorder and still no success. 5 Open "http://hkgodsrpt/odsrptv1/contents/" 6 Mouse Click: Left Button on 'Inactive Control' in "Reporting System -- Frame Page - Microsoft Internet Explorer" 7 Delay: (1000 ms) 8 Keystrokes: [HOME] in "Reporting System -- Frame Page - Microsoft Internet Explorer" 9 Delay: (50 ms) 10 Keystrokes: [DOWN ARROW] in "Reporting System -- Frame Page - Microsoft Internet Explorer" 11 Delay: (50 ms) 12 Keystrokes: [RIGHT ARROW] in "Reporting System -- Frame Page - Microsoft Internet Explorer" 13 Delay: (50 ms) 14 Keystrokes: [DOWN ARROW][DOWN ARROW][DOWN ARROW][DOWN ARROW][DOWN ARROW][DOWN ARROW][DOWN ARROW][DOWN ARROW][DOWN ARROW][DOWN ARROW][DOWN ARROW][DOWN ARROW][DOWN ARROW] in "Reporting System -- Frame Page - Microsoft Internet Explorer" 15 Delay: (2000 ms) 16 Connect to 'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\My Documents\UIL.mdb;Persist Security Info=False' 17 Execute SQL Statement: 'SELECT Download FROM Files' with 7 records to fetch 18 Start Loop " Each row in a SQL query dataset" 19 Comment: Please enter your commands to loop. Use $Dataset Column$ variable for each record in Dataset. 20 Click on 'CONTAINER STATUS REPORT DOWNLOAD FILE' link in the webpage 'Data Download' 21 Wait for Window to Open ("Microsoft Internet Explorer") (Wait up to 5 seconds - for Window to Open) 22 Delay: (500 ms) 23 Close Window: "Microsoft Internet Explorer" 24 End Loop 25 Disconnect from Database 26 Close Window: "Reporting System -- Frame Page - Microsoft Internet Explorer" |
| |||
|
Hello, In IE 7 generally the title of the dialog boxes in Internet Explorer is 'Windows Internet Explorer' as opposed to 'Microsoft Internet Explorer'. Could that be the problem? Is it possible for you to upload the screenshot of the confirmation window? |
| |||
|
You are correct - it shows Windows Internet Explorer. I copied the information from the AA 3.5 program that works with IE6. I had to add a few more delays with the IE7 handling at the outset as well. The script was changed for the AA 4.0 with IE7 as indicated below: 5 Open "http://hkgodsrpt/odsrptv1/contents/" 6 Wait for Window to Open ("Reporting System -- Frame Page - Windows Internet Explorer") (Wait up to 15 seconds - for Window to Open) 7 Delay: (15000 ms) 8 Mouse Click: Left Button on 'Inactive Control' in "Reporting System -- Frame Page - Windows Internet Explorer" 9 Delay: (1000 ms) 10 Keystrokes: [HOME] in "Reporting System -- Frame Page - Windows Internet Explorer" 11 Delay: (50 ms) 12 Keystrokes: [DOWN ARROW] in "Reporting System -- Frame Page - Windows Internet Explorer" 13 Delay: (50 ms) 14 Keystrokes: [RIGHT ARROW] in "Reporting System -- Frame Page - Windows Internet Explorer" 15 Delay: (50 ms) 16 Keystrokes: [DOWN ARROW][DOWN ARROW][DOWN ARROW][DOWN ARROW][DOWN ARROW][DOWN ARROW][DOWN ARROW][DOWN ARROW][DOWN ARROW][DOWN ARROW][DOWN ARROW][DOWN ARROW][DOWN ARROW] in "Reporting System -- Frame Page - Windows Internet Explorer" 17 Delay: (2000 ms) 18 Connect to 'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\My Documents\UIL.mdb;Persist Security Info=False' 19 Execute SQL Statement: 'SELECT Download FROM Files' with 7 records to fetch 20 Start Loop " Each row in a SQL query dataset" 21 Comment: Please enter your commands to loop. Use $Dataset Column$ variable for each record in Dataset. 22 Click on 'CONTAINER STATUS REPORT DOWNLOAD FILE' link in the webpage 'Data Download' 23 Wait for Window to Open ("Windows Internet Explorer") (Wait up to 5 seconds - for Window to Open) 24 Delay: (500 ms) 25 Close Window: "Windows Internet Explorer" 26 End Loop 27 Disconnect from Database 28 Close Window: "Reporting System -- Frame Page - Windows Internet Explorer" |
| |||
|
Hello, What we suggest is, after you close 'Windows Internet Explorer' window insert 'Wait for Window to Close' command to wait for 'Windows Internet Explorer' window to close and then perform the next action. Also after you click on \'CONTAINER STATUS REPORT DOWNLOAD FILE\' link in the webpage insert few seconds of delay so that command gets enough time to execute. Alternatively, instead of Close Window command either use keystroke, Enter to click on Ok button or use keyboard shortcut, Alt+F4 to close 'Windows Internet Explorer' window. The text format would look something like this: Keystrokes: [ENTER] in 'Windows Internet Explorer' or Keystrokes: [ALT DOWN][F4][ALT UP] in 'Windows Internet Explorer' Hope that helps. |
| |||
|
I have tried the suggestion of inputting a delay right after the click on \'CONTAINER STATUS REPORT DOWNLOAD FILE\' link and had already attempted to get the desired results using keystroke options to no avail. The program runs beautifully up until line 43 38 Connect to 'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\My Documents\UIL.mdb;Persist Security Info=False' 39 Execute SQL Statement: 'SELECT Download FROM Files' with 7 records to fetch 40 Delay: (500 ms) 41 Start Loop " Each row in a SQL query dataset" 42 Comment: Please enter your commands to loop. Use $Dataset Column$ variable for each record in Dataset. 43 Click on 'CONTAINER STATUS REPORT DOWNLOAD FILE' link in the webpage 'Data Download' 44 Delay: (5000 ms) 45 Keystrokes: [ENTER] in "Windows Internet Explorer" - **Disabled entry 46 Wait for Window to Open ("Windows Internet Explorer") (Wait up to 5 seconds - for Window to Open) 47 Delay: (2000 ms) 48 Close Window: "Windows Internet Explorer" It hits line 43 and then stops. After waiting much longer than the delay sequences put in an error message appears which I have attached. If, while the program is running, the "Windows Internet Explorer" window pops up and I click the window, then the code will continue to execute. Of course, then it fails while looking for the "Windows Internet Explorer" window. So the question is, how do I get the program to recognize that the "Windows Internet Explorer" window has opened, if the window has to be closed BEFORE the code will move past Line 43 on to Line 44? |
| |||
|
Hello, What you can try is, after Line 43, insert "If Window Exists" command, to perform actions only if condition is satisfied. In the textbox in the If command, specify the maximum time (in seconds) up to which you like to wait for the window to appear. If you leave the textbox empty or provide 0 then Automation Anywhere checks the condition right away and if it is met it will execute the actions between 'If - End If' statements otherwise it will skip those actions and proceed to actions after Endif. The text format will look something like this, 1) Wait for Window to Open ("Windows Internet Explorer") (Wait up to 5 seconds - for Window to Open) 2) If Window Exists("Windows Internet Explorer") Then (Wait up to 5 seconds - for Window to exist) 3) Close Window: "Windows Internet Explorer" 4) Wait For Window to Close ("Windows Internet Explorer") (Wait up to 5 seconds - For Window To Close) 5) End If Hope that helps! |
| |||
|
That would work except the program does not proceed past line 43. Once it hits line 43, it becomes stuck waiting for the window to be clicked so that it can proceed to line 44. Line 43 is the click of the download link. For whatever reason, in IE7 it goes into a "busy" state while waiting for the pop up window to be clicked, but I can not proceed past the line executing the download link click in order to get to the code to process the close of the window. What appears to be happening is that IE6 viewed the download of the file and the pop up window as two separate items, while IE7 appears to be viewing the download of the file and the pop up windows as two parts of the same activity. Since there is nothing within the web recorder to provide the functionality of waiting for xx number of seconds before continuing to execute the remainder of the code, I do seem to be at something of an impasse. One thing that I thought of that I am going to test today is to create a separate process to run that is called from a batch file executed during the program run prior to the current line 43 which will monitor for the window and close it. I will advise how that works. |
| |||
|
Unfortunately, my attempted work around did not work. I really need the capability for the program to continue running after xx seconds after clicking the download link. Any other suggestions would be greatly appreciated. |
| |||
|
Hello, We would recommend you to contact our Technical staff at 1-888-484-3535 x 3 and they should be able to help you resolve the problem. Alternatively, if you can email us your number at http://www.tethyssolutions.com/support_form.htm then we can call you as well. |
![]() |
| Thread Tools | |
| Display Modes | |
| |