Forms Parameters

The parameters in this section specify the information required by the connector if you want to submit forms. You can configure the connector to submit a form so that it can log on to a Web site.

You can set these parameters in the TaskName section. For example:

[MyTask]
Url=http://www.autonomy.com
FormUrlRegex=.*www\.autonomy\.com/.*login\.php 
InputSelector0=input[name=username]
InputSelector1=input[name=password]
InputValue0=MyAutonomyUsername
InputValue1=MyAutonomyP4ssw0rd!
SubmitSelector=input[name=login]

To submit different forms during a single task, use the FormsSection parameter to define multiple sections containing form settings. Then, set the FormUrlRegex parameter in each section. For example:

[MyTask]
Url=http://www.autonomy.com
FormsSection0=LogOnFormAutonomy 
FormsSection1=LogOnFormAutonomySubsite 

[LogOnFormAutonomy] 
FormUrlRegex=.*www\.autonomy\.com/.*login\.php 
InputSelector0=input[name=username]
InputSelector1=input[name=password]
InputValue0=MyAutonomyUsername
InputValue1=MyAutonomyP4ssw0rd!
SubmitSelector=input[name=login]

[LogOnFormAutonomySubsite] 
FormUrlRegex=.*subsite\.autonomy\.com/.*login\.php 
InputSelector0=input[name=username]
InputSelector1=input[name=password]
InputValue0=MySubsiteUsername
InputValue1=MySubsiteP4ssw0rd!
SubmitSelector=input[name=login]