Hi,
sometimes QTP doesnot identify the objects, in DP. I
guess you can give someother property also for WinEdit
for exapmle,
Browser("name:=MM").Page("title:=MM").WebEdit("name:=Subject","class_index:=6").Set
just try this way...
On Aug 1, 10:31 am, "Raheel Sheikh" <
raheel.she...@gmail.com> wrote:
> HI Roman,
>
> The following returned true
>
> print Browser("name:=MM").Page("title:=MM").Exist
>
> but the following returned false
>
> print Browser("name:=MM").Page("title:=MM").WebEdit("name:=Subject").Exist
>
> Looks like there is problem in WebEdit now. I have attached screenshot for
> the page where this subject field reside.
>
>
>
> On Thu, Jul 31, 2008 at 9:22 PM, Roman Zilber <
rzil...@gmail.com> wrote:
> > When you add the objects Page to Object Repository, do you have exactly
> > only one attribute "name"? I think it should be "title"
>
> > Try to debug it in this way
>
> > print Browser("name:=MM").Page("name:=MM").Exist
> > print Browser("name:=MM").Page("title:=MM").Exist
> > print Browser("name:=MM").Page("url:=*.*").Exist
> > print Browser("name:=MM").Page("name:=MM").WebEdit("name:=Subject").Exist
>
> > On Thu, Jul 31, 2008 at 11:25 AM, Raheel Sheikh <
raheel.she...@gmail.com>wrote:
>
> >> Actually, i was reading descriptive programming and its advantages, that
> >> is why i have posted the question.
>
> >> I don't need any workaround. I want to know what is wrong with the
> >> statement.
>
> >> Browser("name:=MM").Page("name:=MM").WebEdit("name:=Subject").Set "Done"
>
> >> The browser title is MM
> >> The page title is MM
> >> and the text field name is Subject
>
> >> On 7/31/08, Naveen <
catchnaveen.psgt...@gmail.com> wrote:
>
> >>> Hi Raheel,
>
> >>> Try this snippet::
>
> >>> Set Desc_WebEdit = Description.Create()
> >>> 'Set some selective properties
> >>> Desc_Link("name").Value = "_idJsp0:_idJsp63"
> >>> Browser("MM").Page("MM").WebEdit("_idJsp0:_idJsp63").Set "Done"
>
> >>> Use Object Spy and identify the object which has name =
> >>> _idJsp0:_idJsp63. Some times it name might change in the application.
>
> >>> Thanks
> >>> Naveen Kumar N
>
> >>> On Jul 31, 3:17 pm, "Raheel Sheikh" <
raheel.she...@gmail.com> wrote:
> >>> > When i recorded the test, i got the following script
>
> >>> > Browser("MM").Page("MM").WebEdit("_idJsp0:_idJsp63").Set "Done"
>
> >>> > When i tried descriptive programming, i did the following
>
> >>> > Browser("name:=MM").Page("name:=MM").WebEdit("name:=Subject").Set
> >>> "Done"
>
> >>> > I got the follwoing error message
> >>> > Cannot find the "[ WebEdit ]" object's parent "[ Page ]" (class Page).
> >>> > Verify that parent properties match an object currently displayed in
> >>> your
> >>> > application.
>
> >>> > Can someone clear me what is going wrong?
>
>
>
> screen1.JPG
> 28KViewDownload- Hide quoted text -
>
> - Show quoted text -