Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Webedit is null While click on a button
#1
Not Solved
Hi all,
I am having one doubt, the webedit box is going to null after click on a button.
I am using following Code,but the wscript exceutes, the cursor is going to URL edit box.

I am attaching the Screen Shot also. Please friends help me.

Code:
Browser("Browser").Page("Sailing Schedules").WebEdit("receipt_1").Set "Chennai, INDIA"
wait 2
Set wshell = Createobject("wscript.shell")
Browser("Browser").Page("Sailing Schedules").WebEdit("receipt_1").Click
wait 2
wshell.SendKeys "{DOWN}"
wait 2
wshell.SendKeys "{DOWN}"
wshell.SendKeys "{TAB}"
Browser("Browser").Page("Sailing Schedules").WebEdit("delivery_1").Set "Shanghai, 31, CHINA"
wait 2
Browser("Browser").Page("Sailing Schedules").WebEdit("delivery_1").Click
wait 2
wshell.SendKeys "{DOWN}"
wait 2
wshell.SendKeys "{DOWN}"
wshell.SendKeys "{TAB}"

Browser("Browser").Page("Sailing Schedules").WebEdit("earliestDeparture").Set "2012-06-05"
Browser("Browser").Page("Sailing Schedules").WebButton("Find Schedules").Click

Thanks & Regards,
Ranjit Kumar.B


Attached Files Image(s)
   
Reply


Messages In This Thread
Webedit is null While click on a button - by branjitk - 06-14-2012, 12:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how can i click a macro button in excel using vbscript arpan 1 3,601 10-03-2017, 06:27 AM
Last Post: supputuri
  Not able to click the save button in Save As window while downloading from SAP kathirvelnagaraj 0 2,304 08-25-2015, 07:37 PM
Last Post: kathirvelnagaraj
  Could not able to click on 'Edit' Button in a Table kotaramamohana 3 3,363 09-26-2012, 07:40 PM
Last Post: krr
  How to Download a Excel File, while click on Button in qtp 10.0 branjitk 4 4,605 06-06-2012, 06:01 PM
Last Post: branjitk
  Dot Net Factory Button click to run action in QTP nutsndips 1 4,252 06-21-2011, 08:37 PM
Last Post: nutsndips

Forum Jump:


Users browsing this thread: 2 Guest(s)