saravananp wrote: ↑Sat May 14, 2022 1:08 pm
Hi,
I have recorded below macro.
But when I am running it again it is not filling the details.
Code: Select all
VERSION BUILD=2021
TAB T=1
TAB CLOSEALLOTHERS
'SET !PLAYBACKDELAY 0.2
URL GOTO=https://sme.policybazaar.com/GHIPreQuote?enquiryid=TzR4NC0w4M2ZjYXlqSTRuZTBjcnZUQT09&step=2&v=2
TAG POS=1 TYPE=DIV ATTR=CLASS:prequote-bg
TAG POS=2 TYPE=LABEL ATTR=*
TAG POS=1 TYPE=DIV ATTR=CLASS:"MuiInputBase-root MuiInput-root MuiInput-underline MuiInputBase-formControl MuiInput-formControl"
TAG POS=1 TYPE=INPUT:TEL ATTR=ID:NoOfLives CONTENT=100
TAG POS=1 TYPE=INPUT:TEL ATTR=ID:NoofEmp19To35Yrs CONTENT=15
TAG POS=1 TYPE=INPUT:TEL ATTR=ID:NoofEmp36To45Yrs CONTENT=15
TAG POS=1 TYPE=INPUT:TEL ATTR=ID:NoofEmp46To55Yrs CONTENT=5
TAG POS=1 TYPE=INPUT:TEL ATTR=ID:NoofEmp56To65Yrs CONTENT=5
TAG POS=1 TYPE=INPUT:TEL ATTR=ID:NoofSpouse19To35Yrs CONTENT=15
TAG POS=1 TYPE=INPUT:TEL ATTR=ID:NoofSpouse36To45Yrs CONTENT=15
TAG POS=1 TYPE=INPUT:TEL ATTR=ID:NoofSpouse46To55Yrs CONTENT=5
TAG POS=1 TYPE=INPUT:TEL ATTR=ID:NoofSpouse56To65Yrs CONTENT=5
TAG POS=1 TYPE=INPUT:TEL ATTR=ID:NoofKids CONTENT=20
TAG POS=1 TYPE=BUTTON ATTR=CLASS:prequote-btn
Can you any one help me on this
Thread moved to the 'General' Sub-Forum, 'Form Filling' has (in this Case) nothing to do with the 'Data Extraction' Sub-Forum...
(F)CIM...!
(Read my Sig..., and the Forum Rules, for Required Tech Info to mention when you open a Thread...
)
=> iMB v2021...(?)
v14.2.4.18...?, 'Pro'/'Trial'...?, OS=Win7/8.1/10/11...?
>>>
Alright, I was able to access the Page/URL thanks to the URL included in your Script, and your Script "as-is" works completely fine "for me"...!
FCI not mentioned but if I'm "correct" about iMB v2021 (+ exact Version), I'm using a different Browser and a different (older) iMacros Version...:
Tested in iMacros for FF v8.9.7, FF v55.0.3, Win10_21H2_Pro.
I was "nearly" surprised when filling/"editing" the 4 Input Fields per Section ('Employee' + 'Spouse' + 'Kids') that those Fields/Nb's were correctly overwritten with the "new" Values from your Script, as upon entering the Value "100" for the 'Total number of Live', those 9 Fields get already populated with some Default Values... But nope, it works fine... OK, good...!
Then OK, it could be a Timing Issue for you and your Browser, especially after filling in the 'Total' Nb, => try this slightly adapted Script, with the `!PLAYBACKDELAY` activated, and a few `WAIT` Statements...:
Code: Select all
VERSION BUILD=2021
TAB T=1
'TAB CLOSEALLOTHERS
SET !PLAYBACKDELAY 0.2
URL GOTO=https://sme.policybazaar.com/GHIPreQuote?enquiryid=TzR4NC0w4M2ZjYXlqSTRuZTBjcnZUQT09&step=2&v=2
WAIT SECONDS=1
'Select "Employee, Spouse & 2 Kids":
TAG POS=1 TYPE=DIV ATTR=CLASS:prequote-bg
TAG POS=2 TYPE=LABEL ATTR=*
TAG POS=1 TYPE=DIV ATTR=CLASS:"MuiInputBase-root MuiInput-root MuiInput-underline MuiInputBase-formControl MuiInput-formControl"
WAIT SECONDS=0.5
' "Total number of Lives":
TAG POS=1 TYPE=INPUT:TEL ATTR=ID:NoOfLives CONTENT=100
WAIT SECONDS=0.5
'>
' "Employee":
TAG POS=1 TYPE=INPUT:TEL ATTR=ID:NoofEmp19To35Yrs CONTENT=15
TAG POS=1 TYPE=INPUT:TEL ATTR=ID:NoofEmp36To45Yrs CONTENT=15
TAG POS=1 TYPE=INPUT:TEL ATTR=ID:NoofEmp46To55Yrs CONTENT=5
TAG POS=1 TYPE=INPUT:TEL ATTR=ID:NoofEmp56To65Yrs CONTENT=5
'>
' "Spouse":
TAG POS=1 TYPE=INPUT:TEL ATTR=ID:NoofSpouse19To35Yrs CONTENT=15
TAG POS=1 TYPE=INPUT:TEL ATTR=ID:NoofSpouse36To45Yrs CONTENT=15
TAG POS=1 TYPE=INPUT:TEL ATTR=ID:NoofSpouse46To55Yrs CONTENT=5
TAG POS=1 TYPE=INPUT:TEL ATTR=ID:NoofSpouse56To65Yrs CONTENT=5
'>
' "Kids":
TAG POS=1 TYPE=INPUT:TEL ATTR=ID:NoofKids CONTENT=20
'DEBUG:
PAUSE
' "Continue"/Submit Button:
WAIT SECONDS=0.5
TAG POS=1 TYPE=BUTTON ATTR=CLASS:prequote-btn
>>>
And if it
still doesn't help, you could try using the `EVENT` Mode which is a bit "slower" than the (Default) `TAG` Mode..., and usually works well with "this kind of Sites" when the `TAG` Mode has some "Difficulties"...
- (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...