Webmaster Forums Banner Professional Hosting from Just Host
Welcome Guest Search | Active Topics | Members | Log In | Register

QTP Cannot set value to webedit Options
steven
Posted: Wednesday, May 28, 2008 6:00:53 AM
Rank: Advanced Member
Groups: Member

Joined: 4/3/2008
Posts: 62
Points: 186
Location: Sheffield, UK
Hi All,

Go to www.dhl.ca

Select "Rate " and then select "Rate Calculator "

input "E4V4T7" in Ship From Postal/Zip Code: field

Browser("Rates" ).Page("Rates" ).WebEdit( "WebEdit" ).Set "E4V4T7"

The object repository can identify this object, but QTP cannot
input "E4V4T7" in the Postal/Zip Code: field when I playback

Could you tell me why QTP cannot input value in this field?

Thank you
Sponsor
Posted: Wednesday, May 28, 2008 6:00:53 AM
Razi
Posted: Wednesday, May 28, 2008 6:01:51 AM
Rank: Advanced Member
Groups: Member

Joined: 1/31/2008
Posts: 41
Points: 123
Location: India
I'll take a stab at it. Does the Set method select
all of the text in the field or does it attempt to enter the text?
I suspect it's the latter. The field starts populated with "______". If
you select the existing text, delete it, then set it, I suspect it will
work.
rasheed
Posted: Thursday, May 29, 2008 6:16:37 AM
Rank: Advanced Member
Groups: Member

Joined: 1/31/2008
Posts: 41
Points: 123
Location: UK
Hi...

Try this..

Browser("DHL Express Canada").Page("Rates").Link("Rate Calculator").Click
Setting.WebPackage("ReplayType") = 2
Browser("DHL Express Canada").Page("Rates_2").WebEdit("WebEdit").Set "E4V4T7"
Setting.WebPackage("ReplayType") = 1
Browser("DHL Express Canada").Page("Rates_2").WebList("_07100ddlService").Select "DHL DOMESTIC EXPRESS 18:00"
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

ASPNET Theme created by Boskone (Dan Ferguson)
Powered by HaqTech.Com
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.546 seconds.