Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Web Repository Programming
#1
Not Solved
I tried Recording and playingback on Greyhound.com.It passed

1. Start recording
2. Open Browser
3. Navigate to: greyhound.com

Code:
SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe","","C:\Documents and Settings\Renu","open"
Browser("MSN.com").Page("MSN.com").Sync
Browser("MSN.com").Navigate "about:blank"
Browser("MSN.com").Page("MSN.com").Sync
Browser("MSN.com").Navigate "http://greyhound.com/"
Browser("MSN.com").Page("Greyhound.com | Home").WebEdit("ctl00$body$search$listOrigin").Set "Atlanta, GA"
Browser("MSN.com").Page("Greyhound.com | Home").WebEdit("ctl00$body$search$listDestinat").Set "virgin"
Browser("MSN.com").Page("Greyhound.com | Home").WebEdit("ctl00$body$search$listDestinat").Set "Virginia Beach, VA"
Browser("MSN.com").Page("Greyhound.com | Home").Link("Search Schedules").Click


when I am playing back ...its failing and not going to results page It is asking to please fill out required fields and stopping
Reply
#2
Not Solved
Hi,

1. Is the browser opening correctly?
2. Try .type method instead of .set
Reply
#3
Not Solved
1.Yes browser is opening correctly
2. I tried .type but it is failing
Error : Object doesn't support property or method Browser.Page.Webedit.Type
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to merge Local object repository to Shared Object Repository in QTP9 keerthana 1 4,488 06-16-2010, 07:21 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)