Micro Focus QTP (UFT) Forums
Need information on disabled text box. - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Need information on disabled text box. (/Thread-Need-information-on-disabled-text-box)



Need information on disabled text box. - sambu240 - 08-15-2012

While recording script in irctc site i need to click on Calender icon (We can enter the date only by clicking on calender icon) how we can parameterise this?or how we can pass the value while script is running?Can anyone explain.


RE: Need information on disabled text box. - ravi.gajul - 08-15-2012

Hi Sambu,
Please try the below code.This code enters the specified date for current month
Code:
iDate=25 'or if you want to enter date at run time use iDate=inputbox("Enter the date")
Browser(...).Page(...).Wedit("html tag:=input","name:=jDatee1").FireEvent "Click"
wait(1)
Browser(...).Page(...).Link("html tag:=A","text:="&iDate,"index:=0").Click
If you want to enter some date for next month, change index value from 0 to 1 and iDate value from 25 to desired date in next month.

Regards,
Ravi


RE: Need information on disabled text box. - sambu240 - 08-17-2012


Hi ravi,
Could you please explain the above script in detail.


RE: Need information on disabled text box. - ravi.gajul - 08-18-2012

Hi,
The code is written in descriptive programming....For more info on Descriptive programming please go through the content available @
https://www.learnqtp.com/descriptive-programming-simplified/