Intelligent Automation & Macro Software  

Go Back   Tethys Solutions Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-02-2008, 07:34 PM
simon simon is offline
Junior Member
 
Join Date: May 2008
Posts: 3
Angry Browser Waiting for Website to respond

Hello,

I have set the time out to 15 seconds in the Tools / Options. The browser continues to hang and so is not able to extract data to decide what to do. If a website is not responding and the browser is waiting with the message "Web site found ..." how to handle this or fix this issue ?

The site is actually down when this happens and is not responding to requests.

Thanks
Simon
Reply With Quote
  #2 (permalink)  
Old 06-02-2008, 10:03 PM
philkryder philkryder is offline
Senior Member
 
Join Date: Sep 2007
Posts: 249
Default

Quote:
Originally Posted by simon View Post
Hello,

I have set the time out to 15 seconds in the Tools / Options. The browser continues to hang and so is not able to extract data to decide what to do. If a website is not responding and the browser is waiting with the message "Web site found ..." how to handle this or fix this issue ?

The site is actually down when this happens and is not responding to requests.

Thanks
Simon
Does the window change when you get data?
Is the window DIFFERENT that if you have the site down?

Can you make a spinloop to wait for the window and then if it exceeds some time limit, ask the user if they want to proceed?

If it is "unattended" what do you WANT to happen when the site is down?
Reply With Quote
  #3 (permalink)  
Old 06-02-2008, 10:27 PM
simon simon is offline
Junior Member
 
Join Date: May 2008
Posts: 3
Default

>> Does the window change when you get data?
>> Is the window DIFFERENT that if you have the site down?

the window does not change when getting data. If the site is down, then I will get a 500 and an immediate response. But the site is not down, it is just not responding so it just waits for it to load. What I would like to do is restart the server in this case which I am able to do in the case when site is down.

The page is a simple success page, which displays "....<p>success</p>....". I extract the data and check if it is success or not when the page displays. So there is intermediate popups or anything.


>> Can you make a spinloop to wait for the window and then if it exceeds some time limit, ask the user if they want to proceed?

This is an automated setup (unattended) and it does a loop to check if the site is down or not and works in the following 2 cases:

i) Down and displays error page immediately
ii) Site is up and running and displays success

iii) the 3rd case is when it does not display any error page and neither it displays success but just waits for a long time.

What is a spin loop ?

>> If it is "unattended" what do you WANT to happen when the site is down?

In the 3rd case as mentioned earlier, I want it to try for 15 seconds or 10 seconds and fail. The process will then do 3 tries with a gap of 1 minute and then restart the server.

Thanks
Simon
Reply With Quote
  #4 (permalink)  
Old 06-03-2008, 02:15 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,337
Default

Hello,

Try increasing Internet Time Out option under Tools menu to 300 seconds or more.

Also, you can insert condition for error page, 'If Window Exists', before extracting data from webpage. If you get error message on same page then you can do, Ctrl+c followed Ctrl+c and then check 'If Clipboard includes error message' then perform actions as per your requirement.
Reply With Quote
  #5 (permalink)  
Old 06-03-2008, 06:22 AM
simon simon is offline
Junior Member
 
Join Date: May 2008
Posts: 3
Default

The web page is not displayed and currently shows -

"Website found. Waiting for reply..." - in this case the browser just waits there.

This is a case of a crashing site or site down.

Also, before doing an "Extract Data", I am doing an "Open Browser..".

But when you are doing Extract Data, how can u include Ctrl-C + Ctrl-C.

There is very poor exception or error handling and the way I am doing it is a hack. For every task that did not go well it should go into another block, at this time I have to fake this by making all failure prone activities as smaller tasks and check If Task Successful.

Last edited by simon; 06-03-2008 at 06:25 AM.
Reply With Quote
  #6 (permalink)  
Old 06-04-2008, 12:45 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,337
Default

Hello,

You can make use of Manage Windows Control command to extract text in status bar. You can find Manage Windows Control command under 'Programs\Windows\Files’ command category. What you can do is,

1) Double click on the 'Manage Windows Controls' command and select the 'Status Bar' control. Select the relevant Internet Explorer window from the list. Click on 'Capture' and hold and drag your mouse on the status bar. Then select the variable to which the value in the status bar has to be assigned.
2) Click on 'Save' button.
3) Double click the Conditions/Loops->Loop command and select the option 'Condition' followed by selecting option, 'Variable'.
4) Click 'Edit' button and select the variable specified in Step 1. Select 'Includes' and then select the option 'Fix' for which the value should be 'Website found. Waiting for reply'.
5) Click on 'Save' button.
6) Inside Loop, insert delay of few seconds.
7) Again, insert Manage Windows Control command to capture textof status bar, same as done in Step1.


Text format of task would appear as follows,

1) Get Status Bar Text From Window : "Windows Internet Explorer" Assign to variable "$Prompt-Assignment$"
2) Loop While $Prompt-Assignment$ Includes "Website found. Waiting for reply"
3) Delay: (3000 ms)
4) Get Status Bar Text From Window : "Windows Internet Explorer" Assign to variable "$Prompt-Assignment$"
5) End Loop

In that way task will loop and wait till status bar includes text, 'Website found. Waiting for reply'.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 02:11 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved