Replacing sourceIndex in firefox and Chrome
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2012
05:06 PM
07-17-2012
05:06 PM
Replacing sourceIndex in firefox and Chrome
Hello,
We have a script working for support of the IE browser html objects. Now after TC 9.0, since you guys are extending support for firefox and chrome browser, we would also like to make use of it and start testing in cross browser. Our script use sourceIndex based logic to reach the object and interact, but as far as i know firefox and chrome does not support this property. So do you have any suggestion what exact property can we use to replace sourceIndex(any similar property) with any other property which FF and chrome supports.
We have a script working for support of the IE browser html objects. Now after TC 9.0, since you guys are extending support for firefox and chrome browser, we would also like to make use of it and start testing in cross browser. Our script use sourceIndex based logic to reach the object and interact, but as far as i know firefox and chrome does not support this property. So do you have any suggestion what exact property can we use to replace sourceIndex(any similar property) with any other property which FF and chrome supports.
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2012
01:40 AM
07-25-2012
01:40 AM
Hi Rajat,
Unfortunately, there is no exact analogue for the sourceIndex property in Firefox and Chrome. Moreover, according to quirksmode.org, this property works incorrectly even in IE9.
Therefore, to transform your existing IE test to a cross-browser test, you would need to change the logic of the way the objects are identified. The About Web Object Identification and Object Models topic explains how to address web page objects from tests.
Happy automation.
Artem
SmartBear Technical Writer
-----
I’m not a member of the SmartBear Support Team, I’m just helping users in this community. Any views or opinions expressed do not necessarily represent those of SmartBear Software.
SmartBear Technical Writer
-----
I’m not a member of the SmartBear Support Team, I’m just helping users in this community. Any views or opinions expressed do not necessarily represent those of SmartBear Software.
