Forum Discussion

karthikeyan_dev's avatar
karthikeyan_dev
Occasional Contributor
12 years ago

Unable to detect the Object Existence

I am trying to Automate our Application and the test complete could identify the Object existence and returns as the Object does not exists.



But we i click on the Highlight button from Name Mapping, Its highlighting properly and when i put a break point at the statement and debug using F11 keys the object could be detected.



anyone can help me what could be the reason.

  • Hi Karthikeyan,


     


    I am Trying to attach the Test Report in .MHT format but it says this format is not supported. Could anyone suggest format supported to attach in this forum.


    Please zip your test log and attach the archive.


     

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Karthikeyan,


     


    I am Trying to attach the Test Report in .MHT format but it says this format is not supported. Could anyone suggest format supported to attach in this forum.


    Please zip your test log and attach the archive.


     

  • karthikeyan_dev's avatar
    karthikeyan_dev
    Occasional Contributor
    Here is the Script:




    Function OpenExistingFile(TestFile)


     


      Aliases.LM5.HwndSource_applicationMainWindow.applicationMainWindow.Grid.menuMain.WPFMenu.Click("File|Open")


      Aliases.LM5.dlgOpen.ComboBoxEx32.ComboBox.SetText(Testfile)


      Aliases.LM5.dlgOpen.btnOpen.Click


     


    End Function



    If i place a breakpoint at the combobox Settext line then execute line by line the Open button is detected. Where as i run the project it fails.

    Tried giving a delay between the Settext and Open button click it did not woekout.