So I figured a way to make this work; thought will post it in case somebody
else get stuck with the same issue. So what I did was I created an object
to open a popup window and close it automatically and this did what I
wanted it to do. So in the above code the code in red is what I did:
Setting.WebPackage("Replay Type") = 2
Browser(--).Page(--).Frame(--)
.WebElement(--).FireEvent "onmouseover"
Set oShell = CreateObject("WScriptShell")
oShell.popup "My Message", 1
Browser(-).Page(-).Frame(-).WebElement(-).WaitProperty "visible", True,
10000 (This is one of the properties of the new window that opens)
Browser(-).Page(-).Frame(-).WebElement(-).Exist Then
Set the user id here
Set the password here
Click Login
----
Thank you all who replied to this post.
On Wednesday, August 7, 2013 2:05:32 PM UTC-5, SunCat wrote:
>
> The AUT has a page where there is a WebElement which pops up a small
> window on mouseover. Once this window opens then there is a login to
> access another site. So I have the code to trigger the window open withe a
> onmouseover FireEvent. The issue I am facing is that this fireevent works
> in the debug mode but when I run, the rollover does not work. Or if I have
> a message box after the FIreEvent then also it works; so it looks like as
> if it is waiting for a click to happen for the window to open.
>
> Following is how I have the code for this FireEvent
>
> Setting.WebPackage("Replay Type") = 2
> Browser(--).Page(--).Frame(--).WebElement(--).FireEvent "onmouseover"
>
> Browser(-).Page(-).Frame(-).WebElement(-).WaitProperty "visible", True,
> 10000 (This is one of the properties of the new window that opens)
>
> Browser(-).Page(-).Frame(-).WebElement(-).Exist Then
>
> Set the user id here
> Set the password here
> Click Login
> ----
>
> Any thoughts on how I can make this work when it runs. Thanks for any
> help.
>
>
>
>
--
--
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
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.