Wait(3) doesn't work as well. It sometimes keeps on loading and
doesn't load at all, and sometimes loads atonce.

The error message is displayed

Cannot identify the object "[ WebElement ]" (of class WebElement).
Verify that this object's properties match an object currently
displayed in your application.


set B = Browser("").Page("")

B.WebButton("name:=Check", "index:=5").click

'on this button click, a window opens displaying list. This list
sometimes doesn't populates and shows nothing, that is why the next
line wait(3) was applied.

wait(3)

B.WebElement("innerhtml:=Apple", "innertext:=Apple").click







On Dec 16, 3:17 pm, Bibek Khatiwara <[email protected]> wrote:
> Hi mebo!
> Could u plz let us know the followings:
> 1.R u using DP or Record/playback?
> 2.Is the pop up is dialog box?
>
> If no 2 then use: Dialog("micclass:=Dialog").Type micEsc     for closing it
> .
> otherwise use Wait eg:Wait(3)  till dialog box is loaded.
>
> do let us know if u r using Record/playback..
>
>
>
> On Wed, Dec 16, 2009 at 2:41 PM, mabobine <[email protected]> wrote:
> > Hi,
>
> > I have 3 Actions
>
> > Action 1 calls Action 2 and Action 3
>
> > There is a button on Action 2, that displays a pop-up and displays
> > list of users.
>
> > The problem is that sometimes, the pop-up displays empty list of
> > users, despite there are users in it. Because of that, the test fails,
> > as it is not able to find the user in it. This is not a programming
> > error, but I don't know why
>
> > For that, I am trying to use recovery scenario, which will close that
> > pop-up and open that pop-up again.
>
> > To what I understand, a recovery scenario is automatically called on
> > Trigger Event generation
>
> > I have tried the following but it doesn't call the Recovery scenario
> > automatically.
>
> > 1. Object State : Where I clicked the empty list and then provided
> > post recovery
> > 2. Test Run Error : Object Not Found
> > 3. Test Run Error : Object Not Visible
>
> > Is there anything I am missing.
>
> > --
> > You received this message because you are subscribed to the Google
> > "QTP - HP Quick Test Professional - Automated Software Testing"
> > group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<mercuryqtp%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/MercuryQTP?hl=en
>
> --
> Regards,
> Bibek

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to