Forum Discussion

frank_vanderstr's avatar
frank_vanderstr
Contributor
13 years ago

Chrome Automated Web Testing Unable to Find Mapped Objects

I have various automation scripts written in VB that go through a web site and test it for various things. Since the update to testcomplete 9.20, my scripts have been unable to find mapped objects in Chrome throughout the tested site. The object retains the same name as it did in the past and according to the testcomplete object finder it is the same.



I have found that tabbing on the page or double clicking in various points will cause testcomplete to find the object it is looking for, but this is an unacceptable solution, since it does not work throughout all the cases.



I have also tried removing and reinstalling the chrome extension, but that did not fix the problem either. The same scripts also work perfectly for both IE and firefox browsers, so I am completely stumped as to what the problem could be.



Has anyone else experienced this issue or perhaps found a solution?

5 Replies


  • Hi Gyus,


     


    Please make sure that you have installed the patch for Chrome 25. Look at this post - there are some additional steps you may need to follow to apply the patch.


     

  • ccalo's avatar
    ccalo
    New Contributor
    I am experiencing the same issue, but I have not upgraded to version 9.20 of TestComplete .  I am running TestComplete version 9.0.1069.7.  The last time that I can confirm this test functioning correctly was Monday, February 25, 2013 - as I run our automated test suite on Sunday nights or Monday mornings. 



    What I did notice is that my Chrome silently updated to a newer version at 11pm last night - about an hour before I ran my automated test suite.  It is now on version 25.0.1364.97, and the objects that were seen in Chrome version 24.0.1312.57 are no longer visible. 



    If I can provide further information to assist in a timely solution to this matter, please let me know and I will contact Smartbear Support in a less public forum



    Thanks,



    Christopher J. Calo
  • ccalo's avatar
    ccalo
    New Contributor
    I appreciate the assistance, and that did help quite a bit, but I am still experiencing an odd issue. 



    For some reason, a line that used to run a webpage for me in IE, Chrome, and FireFox now only works in IE and Firefox.  Here is a slightly altered version of that line (the only thing that is different is the page to which I am navigating, and this URL has the same behavior as the one I was testing did):


    Browsers.Item(iBrowser).Run('http://google.com');



    Note that I am using Delphiscript for the coding.  Also note that the behavior I see with this line is what almost appears like it is being skipped.  I see no reaction from the software - there is no error, but the run method does not work for Chrome.  I declared iBrowser to be equal to btChrome earlier in the code, and for other browsers I declare it to be equal to btIExplorer or btFireFox.



    I have enabled the extension for Chrome.  If I manually enter the URL, the rest of my scripts appear to run correctly.  However, that line of code not working poses an issue.



    If that is not enough information, I could provide more via email. 



    Thank you again for the help!



    Sincerely,

    Christopher J. Calo



     



     


  • ccalo's avatar
    ccalo
    New Contributor
    Did you get a chance to look at this?  



    Christopher J.  Calo

  • Hi Christopher,


     


    Please follow the steps below to help our Support team investigate the issue:


     


    1. Run the Report Generator tool located in <TestComplete>\Bin\ReportGenerator.exe.


    2. Select the "Launch/attach to TestComplete" option.


    3. Run another instance of the Report Generator tool.


    4. Select the "Track application launch" option, specify Chrome's executable file and click Next. The Report Generator tool will wait until the application is launched and then track all events in it.


    5. Reproduce the problem.


    6. Click the "Generate..." button in all instances of the Report Generator tool and save reports to a local folder.


    7. Send the report to the TestComplete Support team via the Contact Support form.