grant_volker_2
12 years agoContributor
Good practice to use NativeWebObject with browsers other than Internet Explorer?
Hi,
I am running the following code on various browsers (IE7, IE8, FF and Chrome), with success it seems:
arrProperty(0) = "tagName"
arrValue(0) = "SPAN"
arrProperty(1) = "contentText"
arrValue(1) = arrDataFromDataDriver(0)
Set objLink = objPage.NativeWebObject.Find(arrProperty(1), arrValue(1), arrValue(0))
I have used the ObjectSpy on a TextNode and Panel for a particular object and in the properties I see NativeWebObject in IE7, NativeFirefoxObject in Firefox, and NativeChromeObject in Chrome.
Although the NativeWebObject property is not available in Chrome and Firefox for this object, it seems to return the object I am searching for.
Is there anything I should be aware of or cautions with using NativeWebObject for testing in Chrome and Firefox browsers please?
Thank you,
Grant
I am running the following code on various browsers (IE7, IE8, FF and Chrome), with success it seems:
arrProperty(0) = "tagName"
arrValue(0) = "SPAN"
arrProperty(1) = "contentText"
arrValue(1) = arrDataFromDataDriver(0)
Set objLink = objPage.NativeWebObject.Find(arrProperty(1), arrValue(1), arrValue(0))
I have used the ObjectSpy on a TextNode and Panel for a particular object and in the properties I see NativeWebObject in IE7, NativeFirefoxObject in Firefox, and NativeChromeObject in Chrome.
Although the NativeWebObject property is not available in Chrome and Firefox for this object, it seems to return the object I am searching for.
Is there anything I should be aware of or cautions with using NativeWebObject for testing in Chrome and Firefox browsers please?
Thank you,
Grant