Forum Discussion

JeanL's avatar
JeanL
Contributor
14 years ago

ClickItem() + Firefox 3.6.20 + TestComplete 8.50.618.7 = Exception

Does ClickItem method work at all with select elements and FF 3.6? This hasn't worked for me with the previous versions of TC either.



Object Spys object.wItem(1) gives me rigth value but when I try "Call object.ClickItem(1)" all I get is exception.
  • It's not in english but straight translation would be "undefined exception", so could it be unhandled exception?



    Edit. And this works fine with IE browsers.
  • Hi,



    Does this exception occur in the latest TC version (8.50)? Also, what exact Firefox version are you using? Is there any additional information about the exception in the log or are there any errors occurred before it?
  • Like the title of the topic says I'm using:



    Firefox 3.6.21 (tested also with 3.6.20)

    TestComplete 8.50.618.7



    But this hasn't worked with the previous version of TC (8+) I've been using either.



    When error occurs I get "An exception occured" pop up and log has two errors:



    - Exception



    Additional information:



    An exception occurred in the "some_test" unit at line XX: Undefined error (straight translation)



    - Script execution was interrupted.



    Additional information:



    Possible reasons:

     - An error or warning occurred during the test run. See the preceding log entries to locate and identify the error.

     - The test run was stopped manually.

     - The test run was terminated as a result of the Runner.Halt method call.
  • Hi,



    OK, in this case, probably, there's something wrong about the combo box which causes this exception. What's its HTML code? Also, how is it filled with items - are they hard-coded or are they generated at run-time in any way?



    To find out what's wrong, we need to reproduce this problem here.
  • Here's one sample script which gives exception to me:



    Sub Test1

      Dim firefox

      Dim page

      Call TestedApps.firefox.Run(1, True)

      Set firefox = Sys.Process("firefox")

      Call firefox.ToUrl("http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_option")

      Set page = firefox.Page("http://www.w3schools.com/tags/tryit.asp*")

      page.Wait

      Call page.Table(1).Cell(0, 1).Frame("view").Select(0).ClickItem("Mercedes")

    End Sub



    And it's the line with the ClickItem method which causes the exception.



    As far as I'm concerned it's not about some certain combo box, it happens with every combo box.
  • Hi,



    We've just released a new version of TC (8.60). Can you reproduce this problem in the latest version?
  • This works in FF6 and IE9 with TC 8.60.655.7. I havent been able to test with FF 3.6.