Intelligent Automation & Macro Software  

Go Back   Automation Anywhere, Inc. 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 03-28-2008, 10:52 PM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 456
Default how can I screen scrape as a window is being closed?

I want to scrape some info off of a web page -

The info is the USER LOGIN ID (not the password - just the id).


The only time that I can be sure it is "ready" to be scraped is at the moment when the user presses the "login" button.


Unfortunately, when they click that button, the screen window changes from the login screen to the home page of the application.

How do I detect that they have clicked the button and then scrape the most recent values from the USER LOGIN ID field.


Thanks!
Phil
Reply With Quote
  #2 (permalink)  
Old 03-29-2008, 03:16 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

If you could get the username from home page (if it is displayed on homepage) then you can create a window trigger (When window opens) on home page window. What you can do is create task that will extract username from home page. Now, create trigger for this task. Please follow below mentioned steps,
Select your task from Task list.
Select the Type as Window.
From Window Title drop down, specify the Title of homepage window. If you do not see the title, then open the webpage and click on Refresh.
From the Action, select 'When window opens' & save the trigger.
Every time the webpage window opens, it will launch your task i.e. will extract username.

Alternatively, you can automate the login process. What you can do is, create task that will open the login page and then insert Pause command to pause the task so that user can enter username and password. After pause, insert Extract data command to extract username from respective textbox and then insert command to click on 'Login' button. So, the user doesn't have to click on Login button, he just have to enter Username, Password and click on 'Resume' button. The text format of commands would appear as follows,

1. Open "http://www.mail.yahoo.com"
2. Pause
3. Extract data from Control type : Textbox, Webpage : https://login.yahoo.com/config/login_verify2?&.src=ym to $Prompt-Assignment$
4. Click on 'Sign In' button in the webpage 'Yahoo! Mail: The best web-based email!'

Hope that helps.
Reply With Quote
  #3 (permalink)  
Old 03-29-2008, 09:01 AM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 456
Default

Quote:
Originally Posted by forumsupport View Post
Hello,

If you could get the username from home page (if it is displayed on homepage) then you can create a window trigger (When window opens) on home page window. What you can do is create task that will extract username from home page. Now, create trigger for this task. Please follow below mentioned steps,
Select your task from Task list.
Select the Type as Window.
From Window Title drop down, specify the Title of homepage window. If you do not see the title, then open the webpage and click on Refresh.
From the Action, select 'When window opens' & save the trigger.
Every time the webpage window opens, it will launch your task i.e. will extract username.

Alternatively, you can automate the login process. What you can do is, create task that will open the login page and then insert Pause command to pause the task so that user can enter username and password. After pause, insert Extract data command to extract username from respective textbox and then insert command to click on 'Login' button. So, the user doesn't have to click on Login button, he just have to enter Username, Password and click on 'Resume' button. The text format of commands would appear as follows,

1. Open "http://www.mail.yahoo.com"
2. Pause
3. Extract data from Control type : Textbox, Webpage : https://login.yahoo.com/config/login_verify2?&.src=ym to $Prompt-Assignment$
4. Click on 'Sign In' button in the webpage 'Yahoo! Mail: The best web-based email!'

Hope that helps.
Unfortunately, the USER LOGIN ID does NOT appear on the home page.
Instead, a more friendly "welcome Firstname Lastname" appears based on the values in the user profile.

I was hoping for a control that would be triggered when the login page is being closed...
I'll go with a separate interactive "prompt box" using the VB script that you provided to allow for more characters than the 100 character default.

thanks!
Phil
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 09:52 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2011 Automation Anywhere, Inc. All rights reserved