rauny
11 years agoOccasional Contributor
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 in the Firefox.
Take a look at a Keyword Test recorded with Internet Explorer 8:
"Sys.Browser().Page("*").Panel(0).Panel(0).Panel("panelResultado").Form("formResultado").Panel("resultado_overflow_grid").Panel("resultado_table").Panel(0).Panel(0).Button("addBtn")"
Now the same Keyword Test recorded with Firefox 31:
"Sys.Browser().Page("*").Panel(0).Panel("panelResultado").Form("formResultado").Panel("resultado_overflow_grid").Panel("resultado_table").Panel(0).Panel(0).Button("addBtn")"
They look almost the same, the only difference is that: Firefox has 1 Panel(0) and Internet Explorer has 2 Panel(0).
Why is that? Someone could help me?
P.S.: in the options menu I've disabled the option: "Map objects name automatically" and I'm using the patch for Firefox 31 and TestComplete 10.30.
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 in the Firefox.
Take a look at a Keyword Test recorded with Internet Explorer 8:
"Sys.Browser().Page("*").Panel(0).Panel(0).Panel("panelResultado").Form("formResultado").Panel("resultado_overflow_grid").Panel("resultado_table").Panel(0).Panel(0).Button("addBtn")"
Now the same Keyword Test recorded with Firefox 31:
"Sys.Browser().Page("*").Panel(0).Panel("panelResultado").Form("formResultado").Panel("resultado_overflow_grid").Panel("resultado_table").Panel(0).Panel(0).Button("addBtn")"
They look almost the same, the only difference is that: Firefox has 1 Panel(0) and Internet Explorer has 2 Panel(0).
Why is that? Someone could help me?
P.S.: in the options menu I've disabled the option: "Map objects name automatically" and I'm using the patch for Firefox 31 and TestComplete 10.30.
- 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");
...