Forum Discussion

rauny's avatar
rauny
Occasional Contributor
11 years ago

Run Keyword Test recorded with Internet Explorer 8 in Firefox.

Hi guys, I've recorded all my keyword tests using internet explorer 8. Now I want to run the same keyword tests in Firefox 31. But my tests fail, because TestComplete doesn't found the objects ...
  • TanyaYatskovska's avatar
    11 years ago
    Hi Rauny,

     


    Perhaps, there is a special script on the client side of your page that handles the page in a special way in IE 8. Sometimes, web developers use this way to overcome some issues in obsolete browsers. Could you please check this?


     


    Anyway, you can modify your script in the following way to make it work:


     




    //JScript


    var page = Sys.Browser().Page("*");


    var panelResultado = page.FindChild("ObjectIdentifier", "panelResultado", 5);


    if (panelResultado.Exists)


      var addBtn = panelResultado.Form("formResultado").Panel("resultado_overflow_grid").Panel("resultado_table").Panel(0).Panel(0).Button("addBtn");


    ...