Forum Discussion

jane_morris's avatar
jane_morris
Occasional Contributor
9 years ago

Does TestComplete work correctly with React javascript v0.13

After entering some text in the popup window, TestComplete does not seem to distinguish which of the three availale  buttons (Cancel, Delete, Update) has been selected. It is always defaults to the first one - the Cancel button.

6 Replies

  • I would like to know the same thing.  We are moving to a new project and will start using React.  Does Test Complete handle React web pages correctly?

    • twhitehouse's avatar
      twhitehouse
      Contributor

      I was actually able to create a quick script that navigates to this web page with example React code on it, clicks the "Result" link under #2 on this page and finally checks the text on the "Home" button.  Everything worked as expected.  Sometimes in the past, with dynamic pages, Test Complete could not find the item on the page.  But, this script below seemed to cause no issues on this React web page.

       

        sub test1

      Sys.Browser("iexplore").ToUrl("http://tutorialzine.com/2014/07/5-practical-examples-for-learning-facebooks-react-framework/")

      aqUtils.Delay 5000

      Call Aliases.browser.page5PracticalExamplesForLearnin.sectionContent.articlePost.frameHttpJsfiddleNetDannymarkovV.panelWrapper.header.linkResult.Click()

      aqUtils.Delay 5000

      Call aqObject.CheckProperty(Aliases.browser.page5PracticalExamplesForLearnin.sectionContent.articlePost.frameHttpJsfiddleNetDannymarkovV.frameFiddleJshellNetDannymarkovV.panel.textnodeHome, "contentText", cmpContains, "Home", False)

      end sub 

      • twhitehouse's avatar
        twhitehouse
        Contributor

        That being said, does anyone have more information or samples within Test Complete for how it handles React web sites?  Any help would be appreciated.