Forum Discussion

gopalqa's avatar
gopalqa
Occasional Contributor
12 years ago

TC is failing to click events in Cross browser testing

Hi,

I have created a keyword tests on IE9, when I am trying to run this script on IE10 with Test Execute, it's failing in the click events.

DO we need to set both browser settings are at the same? Please let me know.

I am running TC v9.3.



For Example:

  Call Aliases.browser.pageDocuments.panelUiDialogUiWidgetUiWidgetCon.formFileupload.fileFiles.Click(572, 13)



Thanks with Regards

Gopal.



  • gopalqa's avatar
    gopalqa
    Occasional Contributor
    hI Tanya,  Please take a look at this issue (similar to the above one) and please let me know what is wrong.



    Thanks with Regards

    Gopal.



    The following is the error message that I am getting when I replay my script on IE10, And it is failed to run the following line on IE10,




      Set browser = Aliases.browser


      Set page = browser.pageLogin


      Set form = page.panelMain.panelWprClearfix.sectionContent.panelColUserlogin.formCxLoginLeftPane


      Set textbox = form.panelWprField.textboxEmail


      Call textbox.Click(35, 18)                                  'NO PROBLEM HERE to click in the EmailID field


      Call textbox.SetText(Project.Variables.ProjVar1.Value("Uname"))


      Set panel = form.panelWprField1


      Set textbox2 = panel.textboxPassword

     

    Call textbox2.Click(58, 27)                                 'It's FAILED to click the password text box.



    ===================Here is the error description=====================================

    An error occurred while accessing the "Click" method or property of the "textboxPassword" object.


    The object or one of its parent objects was not found.



    Object Whose Method or Property Was Accessed














    Alias:

    Aliases.browser.pageLogin.panelMain.panelWprClearfix.sectionContent.panelColUserlogin.formCxLoginLeftPane.panelWprField1.textboxPassword

    Name mapping item:

    NameMapping.Sys.browser.pageLogin.panelMain.panelWprClearfix.sectionContent.panelColUserlogin.formCxLoginLeftPane.panelWprField1.textboxPassword


    Object That Was Not Found














    Alias:

    Aliases.browser.pageLogin.panelMain.panelWprClearfix.sectionContent.panelColUserlogin.formCxLoginLeftPane.panelWprField1.textboxPassword

    Name mapping item:

    NameMapping.Sys.browser.pageLogin.panelMain.panelWprClearfix.sectionContent.panelColUserlogin.formCxLoginLeftPane.panelWprField1.textboxPassword


    Click the link above to view and configure mapping settings for the missing object.



    Learn about possible causes of the error


  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Gopal,


     


    According to the error, TestComplete cannot find the following object in the object tree:


    Sys.browser.pageLogin.panelMain.panelWprClearfix.sectionContent.panelColUserlogin.formCxLoginLeftPane.panelWprField1.textboxPassword


     


    This may happen when the object isn't fully loaded. Thus, it's not ready for testing. Try using the following modified script:




    Set panel = form.panelWprField1


     


    If panel.WaitAliasChild("textboxPassword", 5000).Exists Then


      Set textbox2 = panel.textboxPassword


      Call textbox2.Click(58, 27) 


    End If