Thanks :)
I've tried to record, everything recorded just fine:
Browser("All News, Videos, & Images").Page("All News, Videos, &
Images").Link("digg").Click
Browser("All News, Videos, & Images").Page("All News, Videos, &
Images").WebEdit("username").Set "roman"
Browser("All News, Videos, & Images").Page("All News, Videos, &
Images").WebEdit("password[a]").SetSecure "4a253377d8d48966049cfaf94e705ee2"
Browser("All News, Videos, & Images").Page("All News, Videos, &
Images").WebEdit("password[b]").SetSecure "4a25337fc56f90f825d7c8b1b79532ab"
Browser("All News, Videos, & Images").Page("All News, Videos, &
Images").WebEdit("captcha[input]").Set "23456n"
Browser("All News, Videos, & Images").Page("All News, Videos, &
Images").WebButton("I agree, continue...").Click
This windows is a DIV element on the page (not a frame), recognized by
innertext. You always can check if
Browser("All News, Videos, & Images").Page("All News, Videos, &
Images").WebElement("You've got to login or").Exist(0)
So would know if there is a pop up.
But there is one philosophical problem with your question. You are doing
regression testing, the pop-up which comes in place where it is not expected
to be is a bug. You shouldn't want to continue to next action, because
unexpected pop-up happen.
Technically the solution can be to define Recovery scenario, but again from
above reason, I don't think you should do it.
If the problem is that the pop-up is same but the parent window is different
(and you want to avoid rerecording of the same actions), there are number of
ways to handle it.
Roman
On Tue, Jun 2, 2009 at 8:52 AM, Vishal Shah <[email protected]> wrote:
> Hi,
>
> Sorry for inconvenience.
>
> Your answers are bellow.
>
> *1). What is "module overlay functionality"*
> Ans : Module overlay means , one type of the pop up window
> [ For example: open http://digg.com/ & click on digg for any record.It
> will open Registeration window. that is module overlay.
> For more reference kindly find attached snapshot.
> ]
> *
> 2) Who are they? *
> Ans : They means Developers.
>
> *3) "They" using QTP with "module overlay functionality", is it right?*
> Ans : Sorry !! it is not right.
> Simply it is : I am trying to test one website by QTP , in which Developers
> are using module overlay
> functionality.
> *
> 4) What is "module overlay window"?*
> Ans: Same as Ans:1
>
> *5) The action is "next" after what? *
> Ans: it differs each time..for example if we are talking about Login , then
> page is redirected to the member's area page.
>
> In case of any query, feel free to ask me anytime.
>
>
> Thanks & Regards,
> Vishal Shah
>
>
> On Mon, Jun 1, 2009 at 7:06 PM, Roman Zilber <[email protected]> wrote:
>
>> Hi,
>>
>> There are number not completely clear things in your question:
>>
>> 1) What is "module overlay functionality"
>> 2) Who are they?
>> 3) "They" using QTP with "module overlay functionality", is it right?
>> 4) What is "module overlay window"?
>> 5) The action is "next" after what?
>>
>> Thanks,
>> Roman
>>
>>
>> On Mon, Jun 1, 2009 at 2:19 AM, Vishal <[email protected]> wrote:
>>
>>>
>>> Hi All,
>>>
>>> I am trying to test one website in which they are using module overlay
>>> functionality by QTP.
>>>
>>> In which website , QTP can not open it's module overlay option during
>>> run this script & gives me Error of Cannot identify the object for
>>> next action (because it is on module overlay window )
>>>
>>> What should do in such a situation?
>>> Please help me out.
>>>
>>> Thanks in advance.
>>>
>>>
>>>
>>
>>
>>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---