support for xpath indices in ios