jyotirmaya wrote: ↑Sat Jun 15, 2019 4:12 pm
I am using
Code: Select all
Browser Firefox 48.0
iMacros for Firefox 9.0.3
Windows 7 Professional 64-bit Operating system
I am using the below code
Code: Select all
VERSION BUILD=9030808 RECORDER=FX
TAG POS=1 TYPE=A ATTR=TXT:Update<SP>Verification<SP>Report
TAG POS=2 TYPE=INPUT:RADIO FORM=NAME:printprcregistration_f ATTR=ID:IsPhotoVerified
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:printprcregistration_f ATTR=ID:Village CONTENT=EXAMPLE
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:printprcregistration_f ATTR=ID:LRDPlotNo CONTENT=0
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:printprcregistration_f ATTR=ID:extent CONTENT=0
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:printprcregistration_f ATTR=ID:LRDMouza_RevenueVillage CONTENT=EXAMPLE
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:printprcregistration_f ATTR=ID:ResidingYears CONTENT=1
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:printprcregistration_f ATTR=ID:ResidingMonths CONTENT=0
TAG POS=1 TYPE=INPUT:RADIO FORM=NAME:printprcregistration_f ATTR=ID:CertificateIssue
TAG POS=1 TYPE=TEXTAREA FORM=NAME:printprcregistration_f ATTR=ID:Remarks CONTENT=As<SP>per<SP>attached<SP>documents<SP>applicant<SP>belongs<SP>to<SP>village<SP>EXAMPLE<SP>hence<SP>certificate<SP>may<SP>be<SP>issued
ONDIALOG POS=1 BUTTON=OK CONTENT=
TAB T=1
REFRESH
TAG POS=1 TYPE=TEXTAREA FORM=NAME:fwddatailreport_f ATTR=ID:offRemarks_f CONTENT=As<SP>per<SP>attached<SP>documents<SP>applicant<SP>belongs<SP>to<SP>village<SP>EXAMPLE<SP>hence<SP>certificate<SP>may<SP>be<SP>issued
TAG POS=1 TYPE=SELECT FORM=NAME:fwddatailreport_f ATTR=ID:status_f CONTENT=%F
TAG POS=1 TYPE=SELECT FORM=NAME:fwddatailreport_f ATTR=ID:officeType_f CONTENT=%3
TAG POS=3 TYPE=INPUT:RADIO FORM=NAME:fwddatailreport_f ATTR=ID:Id_f
ONDIALOG POS=1 BUTTON=CANCEL CONTENT=
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:fwddatailreport_f ATTR=NAME:Submit
In the web page
Code: Select all
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:printprcregistration_f ATTR=ID:Village CONTENT=EXAMPLE
The village CONTENT "EXAMPLE" is already there in the form. The Text EXAMPLE is already filled over there, I want the same text
EXAMPLE to automatically fill in the below box
Code: Select all
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:printprcregistration_f ATTR=ID:LRDMouza_RevenueVillage CONTENT=EXAMPLE
and also I want it to reflect it in
Code: Select all
CONTENT=As<SP>per<SP>attached<SP>documents<SP>applicant<SP>belongs<SP>to<SP>village<SP>EXAMPLE<SP>hence<SP>certificate<SP>may<SP>be<SP>issued
As per attached documents applicant belongs to village...................hence certificate may be issued. This is common for all web pages, but the text
EXAMPLE will be different from one page to another. hence I want to fill two places based on the ATTR=ID:Village CONTENT based on the content I want to fill ATTR=ID:LRDMouza_RevenueVillage CONTENT and the below ..........portion
As per attached documents applicant belongs to village
...................hence certificate may be issued.
Not sure if you have a Typo in your Thread Title with "form" and if you mean "Form" indeed, or "from"..., as Words feel a bit like they are "randomly" capitalized...
=> if you can correct if it's a Typo...?
But OK, not very clear to me where the "EXAMPLE" comes from...?, the very first time you use/need that Village Name in Line=4 in your Script:
Code: Select all
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:printprcregistration_f ATTR=ID:Village CONTENT=EXAMPLE
=> Do you each time have to manually edit your Script with the new Name...?, you don't seem to pull it from a '.CSV' DataSource, or you could use an Input 'PROMPT' to type that Name in the 'PROMPT', store it in a Var and reuse that Var everywhere in your Script where you need it...
Or on the same "Principle", if you don't want to use an Input 'PROMPT', you could still edit your Script manually each time, but you could add an "Easy Access" Section at the beginning of your Script with that Var where you then only need to edit that Var once, stg like:
Code: Select all
VERSION BUILD=9030808 RECORDER=FX
'Easy Access Vars:
SET Village "EXAMPLE"
SET Remark_Part_1 "As per attached documents applicant belongs to village "
SET Remark_Part_2 " hence certificate may be issued"
TAG POS=1 TYPE=A ATTR=TXT:Update<SP>Verification<SP>Report
TAG POS=2 TYPE=INPUT:RADIO FORM=NAME:printprcregistration_f ATTR=ID:IsPhotoVerified
'TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:printprcregistration_f ATTR=ID:Village CONTENT=EXAMPLE
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:printprcregistration_f ATTR=ID:Village CONTENT={{Village}}
'[...]
'TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:printprcregistration_f ATTR=ID:Village CONTENT=EXAMPLE
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:printprcregistration_f ATTR=ID:LRDMouza_RevenueVillage CONTENT={{Village}}
'[...]
'TAG POS=1 TYPE=TEXTAREA FORM=NAME:printprcregistration_f ATTR=ID:Remarks CONTENT=As<SP>per<SP>attached<SP>documents<SP>applicant<SP>belongs<SP>to<SP>village<SP>EXAMPLE<SP>hence<SP>certificate<SP>may<SP>be<SP>issued
TAG POS=1 TYPE=TEXTAREA FORM=NAME:printprcregistration_f ATTR=ID:Remarks CONTENT={{Remark_Part_1}}{{Village}}{{Remark_Part_2}}
'[...] Etc...
And if that "EXAMPLE" doesn't even come from some User Input but is already present on the Page, then the 'EXTRACT' Mechanism would be able to extract it and store it directly in the same 'Village' Var, and in that case, you wouldn't even need to manually edit your Script each time, before running it... And that would give stg like:
Code: Select all
VERSION BUILD=9030808 RECORDER=FX
'SET !EXTRACT_TEST_POPUP NO
'Easy Access Vars:
'SET Village "EXAMPLE" // (Extracted from the Page...)
SET Remark_Part_1 "As per attached documents applicant belongs to village "
SET Remark_Part_2 " hence certificate may be issued"
TAG POS=1 TYPE=A ATTR=TXT:Update<SP>Verification<SP>Report
TAG POS=2 TYPE=INPUT:RADIO FORM=NAME:printprcregistration_f ATTR=ID:IsPhotoVerified
'TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:printprcregistration_f ATTR=ID:Village CONTENT=EXAMPLE
SET !EXTRACT NULL
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:printprcregistration_f ATTR=ID:Village EXTRACT=TXT
SET Village {{!EXTRACT}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:printprcregistration_f ATTR=ID:Village CONTENT={{Village}}
'[...]
'TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:printprcregistration_f ATTR=ID:Village CONTENT=EXAMPLE
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:printprcregistration_f ATTR=ID:LRDMouza_RevenueVillage CONTENT={{Village}}
'[...]
'TAG POS=1 TYPE=TEXTAREA FORM=NAME:printprcregistration_f ATTR=ID:Remarks CONTENT=As<SP>per<SP>attached<SP>documents<SP>applicant<SP>belongs<SP>to<SP>village<SP>EXAMPLE<SP>hence<SP>certificate<SP>may<SP>be<SP>issued
TAG POS=1 TYPE=TEXTAREA FORM=NAME:printprcregistration_f ATTR=ID:Remarks CONTENT={{Remark_Part_1}}{{Village}}{{Remark_Part_2}}
'[...] Etc...
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...