Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Autocomplete in QTP 10.0
#1
Not Solved
Hi All,
I am having error for Autocomplete, i attached one screenshot. In that image Port of loading and Port of Discharge are same.

My Doubt is I am entering values through script in that Edit boxes,but after click on Find button both are going to default values as shown in the screen shot. how to handle this issue while click on Button.

In this,i am using following code, but it is not working.

Code:
Browser("Browser").Page("Interactive Schedule -").WebEdit("WebEdit").Set "Chennai"
    wait 2
    Set wshell = CreateObject("wscript.Shell")
    Browser("Browser").Page("Interactive Schedule -").WebEdit("WebEdit").Click
    wshell.SendKeys "{DOWN}"
    wait 2
    wshell.SendKeys "{DOWN}"
    wait 2
    wshell.SendKeys "{TAB}"
Browser("Browser").Page("Interactive Schedule -").WebEdit("WebEdit_2").Set "Shanghai"
    wait 2
    Browser("Browser").Page("Interactive Schedule -").WebEdit("WebEdit_2").Click
    wait 2
    wshell.SendKeys "{DOWN}"
    wait 2
    wshell.SendKeys "{DOWN}"
    wait 2
    wshell.SendKeys "{TAB}"

Thanks & Regards,
Ranjit Kumar B


Attached Files Image(s)
   
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  handling Autocomplete field using QTP11 sandler 1 6,199 06-06-2012, 10:57 AM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)