Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Help with XPath Substring

VirtEyes
VirtEyes Posts: 62

I am trying to get a part of a string up to the point where there is a blank space in the string. However, Virtualize is saying that it does not recognize what the .indexOf() function is.

Can someone guide me as to what could be the issue and how to get the sub-string properly in Virtualize?

The XPath code is am trying to use:
/:Envelope/:Body[1]/*:AddressIn[1]/@Address1In/substring(0,text().indexOf(' '))

I also need to get this substring:
substring(AddressIn.indexOf(' ')+1,AddressIn.length()

Comments