Forum Discussion

paramveer's avatar
paramveer
Contributor
13 years ago

Different property values for same object in mozilla and IE 8 in TestComplete

Hi ,





I am facing a issue scenario is as follows.

I have prepared an OR excel sheet in which i keeps my objects property name/values and i fetch object property values from OR sheet prepare a array to find the object on the page. Which is working fine on IE, but when i used to run the same script on moilla/firefox 3.6 object property values changed in mozilla. e.g if innertext value of object in IE is "Search For Flight" in Mozilla it is showing the same objects's property value as

"Search For

Flight" means in mozilla flight is coming in the next line.



So my question is why there is issue in object property value. how to overcome from this situation. I don't want to prepare different OR excel sheet for different browsers.



Please find the attached snapshot.



Thanks and Regards

Param

1 Reply

  • Hi,


    You do not need to correct your sheets, you can just correct the script.

    If you need to obtain the link's text in Mozilla Firefox in the same view as in Internet Explorer, please try using the following statement:




    aqString.Trim(Link(0).textContent)