| || |
Trouble attaching to Web Pages
I am very new to Test Partner. I am having problems with a data driven script that loops. During the second time around it is failing because it can't attach to the Web Page. I tried to then attach at the Internet Explorer Application level and it does get further but then fails on the next line for failing to attach to an anchor on that page.
Any help is greatly appreciated.
Re: Trouble attaching to Web Pages
Try setting a breakpoint and stepping through. You should only have to attach to the Window once at the beginning, but having them in the script will not hurt. Its also possible that the app is not responding in time. Try upping the values for AttachTimeOut and Control Retries.
Also... The DataDriven wizard is fairly limited. You may want to use the standard VB file accessing:
'1) Do Not have a return after the last field. 'This will disable EOF
Dim sFirst, sLast, sCheck, sAddress, sPhone
Open "c:\sample.txt" For Input As #1 'you can open a second file using #2
Do While Not EOF(1)
Input #1, sFirst, sLast, sAddress, sPhone