hp uft - Mouse Hover in VBScript -


i wondering if can me figure out solution problem having script.

to give context, trying simulate mouse hover on menu. when put mouse on "new vendor", expand menu more options choose (in case "new care organization"). test purposes, want select "new care organization".

here's visual of menu:

when put mouse on "new vendor", want happen:

here's have right now:

browser("mypage").page("mypage").webelement("new vendor").click browser("mypage").page("mypage").webelement("medical care organization").click 

for reason, however, when run this, "new vendor" not expand , therefore "new care organization" not selected. it's if didn't recognize command expand "new vendor" , test fails.

i thought doing right, can explain , possibly give me correct code fix this?

much appreciated!

option 1:
if clicking on "medical care organization" opens new page must link , not webelement. if using uft, can spy object. if object spy showing link can use like:

browser("mypage").page("mypage").link("medical care organization").click 

option 2:
if in normal case if you'll move mouse manually on new vendow , if showing medical care organization use "fireevent" "onmouseover".
like:

browser("mypage").page("mypage").webelement("new vendor").fireevent "onmouseover"   

and can click on "medical care organization" object.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -