Welcome, Guest. Please Login.
IRobotSoft Robot
09/30/23 at 08:49:09
News: Welcome to the IRoboSoft Visual Web Scraping and Web Automation forum.
Home Help Search Login
Google
 


Pages: 1
Send Topic Print
refresh page when submit form (Read 4817 times)
mirshafiee
IRobotSoft Newbies
*


I Love IRobotSoft

Posts: 6
refresh page when submit form
02/27/15 at 05:37:17
 
Hi,  
I created some tasks to submit a form to log in in a page and then extract data and then these data is written in csv file.  
My problem is when robot comes to submit form (my data which should submit is in another csv file) after submitting form, automatically refreshes the page and submit next data. This page has captcha and when page refreshes new captcha should be submit. But if I use goback() function, I can use previous captcha for log in. If I want to say in a better words the actions do these steps:  
 
1. get data from first csv file  
2. submit data to website to login  
3. extract data which I define  
4. save data in second csv file  
5. refresh web page  
 
and this loop work until the last record in first csv file. I use goback() function in step 4 to get back in first page, but as I said, submit action refresh the page. How can I configure a submit form action that does not refresh page?? In other words, how can I remove step 5 from a submit form action??  
 
thanks a lot
Back to top
 
 
  IP Logged
IRobotSoft Administrator
IRobotSoft Administrator
*****


IRobotSoft, the Best
Internet Robot
System

Posts: 1609
Gender: male
Re: refresh page when submit form
Reply #1 - 02/28/15 at 01:15:17
 
You will need to use dataset variables for this.  Refer the "submit_form_csv.irb" in the download package, the "method 2" task, for an example.   Also see the manual section 5.3. Dataset Variables and Functions.  Your final robot should look like:  
 
Go to URL: form url
 
     Event: AFTER_PATH_ITEM;      Name: n;      Value: =a.loadData(csv_file, '','csv')
 
Submit form with 'group1'
     Repeat: on DATASET [a]
     "q" <-- a.column_name
     Event: PATH_ITEM_COMPLETED;      Value: =GoBack()
 
 
 
Back to top
 
 

The Administrator.
WWW   IP Logged
mirshafiee
IRobotSoft Newbies
*


I Love IRobotSoft

Posts: 6
Re: refresh page when submit form
Reply #2 - 03/06/15 at 01:55:16
 
Thanks  Grin
Back to top
 
 
  IP Logged
Pages: 1
Send Topic Print