UFT unable to identify Menu Items of a Web Application during run time.
Question ID: 108067
0
0

I have added the script below. Please let me know if you have any questions.

Browser("myBrswer").Page("myPage").WebButton("Create PDF").Click
Browser("myBrswer").Page("myPage").Link("Main Menu").Click
Browser("myBrswer").Page("myPage").Frame("topmenu").Link("Home").Click
Browser("myBrswer").Page("myPage").Frame("leftmenu").Link("Personal Lines").Click
Browser("myBrswer").Page("myPage").Frame("leftmenu").Link("Quote").Click
Browser("myBrswer").Page("myPage").Frame("detail").Link("Auto").Click

Marked as spam
Posted by (Questions: 22, Answers: 6)
Asked on January 17, 2018 3:17 pm
93 views
Answers (1)
0
Private answer

Some times menus need to have a mouseover event fired before clicking. Try the following to see if that might help.
Browser(''myBrswer'').Page(''myPage'').Link(''Main Menu'').FireEvent ''onmouseover''
Browser(''myBrswer'').Page(''myPage'').Link(''Main Menu'').Click

Browser(''myBrswer'').Page(''myPage'').Frame(''topmenu'').Link(''Home'').FireEvent ''onmouseover''
Browser(''myBrswer'').Page(''myPage'').Frame(''topmenu'').Link(''Home'').Click
Browser(''myBrswer'').Page(''myPage'').Frame(''leftmenu'').Link(''Personal Lines'').FireEvent ''onmouseover''
Browser(''myBrswer'').Page(''myPage'').Frame(''leftmenu'').Link(''Personal Lines'').Click
Browser(''myBrswer'').Page(''myPage'').Frame(''leftmenu'').Link(''Quote'').FireEvent ''onmouseover''
Browser(''myBrswer'').Page(''myPage'').Frame(''leftmenu'').Link(''Quote'').Click
Browser(''myBrswer'').Page(''myPage'').Frame(''detail'').Link(''Auto'').FireEvent ''onmouseover''
Browser(''myBrswer'').Page(''myPage'').Frame(''detail'').Link(''Auto'').Click

For more information on [Unified Functional Testing
Object Model Reference](https://admhelp.microfocus.com/uft/en/latest/UFT_Help/Content/Landing_Pages/OMR_Overview_Landing_Page.htm) and on [FireEvent Method](https://admhelp.microfocus.com/uft/en/latest/UFT_Help/Subsystems/FunctionReference/Subsystems/OMRHelp/OMRHelp.htm#Web/WEBPACKAGELib~Link.html#FireEvent). Note above links are for UFT 14.01 but should work on most version of UFT.

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on January 17, 2018 3:17 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top