Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with menu object (UFT)
#1
Solved: 9 Years, 6 Months, 2 Weeks ago
Hello,

I'm automating a web portal with UFT V11.50

I 'm having problems with a menu item. This problem is as follows:

if I click on the menu item manually and then launched the automated test case, uft recognizes the object and clicks on it. However, if I do click on the object manually and launched the automated test case, I recognize the object but does not click on it.
Anyone know what happens?

Thank you very much.
Reply
#2
Solved: 9 Years, 6 Months, 2 Weeks ago
Check the Menu item hierarchy
Reply
#3
Solved: 9 Years, 6 Months, 2 Weeks ago
Hi,

thanks for answering my question.

The code I use is as follows:

Code:
Public Function navInicio()    
    If navegador.WebElement("class:=menuButton","innertext:=Inicio").Exist(5) Then        
        navegador.WebElement("class:=menuButton","innertext:=Inicio").Click                
    else
        msgbox ("Inicio not found")    
    End If    
End Function


What is the aim of Check the Menu item hierarchy?

Thanks,
Reply
#4
Solved: 9 Years, 6 Months, 2 Weeks ago
Am not really sure of the scenario you mention but UFT has an inherent problem of not being able to recognize windows/objects that were launched before launching UFT. So, are you launching the application manually before UFT itself? please let me know if otherwise
Reply
#5
Solved: 9 Years, 6 Months, 2 Weeks ago
Hi,

I solved my problem as follow:

Code:
Browser(br).Page(pg).WebElement("innerhtml:=Inicio").FireEvent "onmouseover"
    Browser(br).Page(pg).WebElement("innerhtml:=Inicio").FireEvent "onclick"

Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to Close UFT 14.53 through AOM Object y.srihari 1 2,366 12-26-2019, 08:43 PM
Last Post: y.srihari
  UFT not recognizing windows object sbudhwa 0 2,662 10-05-2016, 09:32 PM
Last Post: sbudhwa
  Comparing data from xml file and a value in gui object using UFT Lavanya N 1 2,370 07-21-2015, 03:24 PM
Last Post: Lavanya N
  Unable to perform click operation on MDI menu/sub menu (Infragistics) with UFT 12 Mahen1108 0 3,451 06-17-2015, 05:29 PM
Last Post: Mahen1108
  Problem Automating Flex App - UFT 12.01 + Flex 4.6 SDK + IE 10,11 + OS windows 7,8 64 kamle 4 3,861 12-24-2014, 05:48 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)