If you are wondering how you can trim the spaces in your xpath, this is how: The normalize-space function strips leading and trailing white-space from a string, replaces sequences of white-space characters by a single space, and returns the resulting string. Example : Which one is better? //td[starts-with(normalize-space(),'Text to Trim')] //td[starts-with(normalize-space(text()),' Text to Trim ')] The second option is better as it targets at the specific nodes More string functions in XPATH: Functions Description starts-with( string1 , string2 ) Returns true if the first string starts with the second string. contains( string1 , string2 ) Returns true if the first string contains the second string. substring( string offset length ) Returns a section of the string. The section starts at offset (which is a number), and is as long as the value provided at length. substring-before( string1 , string2 ) Returns the part of string1 up unti
Nice answers in return of this query with genuine arguments and telling the whole thing concerning that.
ReplyDeletemy blog ... relationships for dummies (http://plrarticle.org/arts-entertainment/ladies-very-complicated/)
Aw, this was a very good post. Taking the time and
ReplyDeleteactual effort to generate a good article… but what can I say… I put things off a whole lot and never seem to
get anything done.
Also visit my homepage reviews (ludwikishafen.de)
Hey there, Υou've done an excellent job. I'll certainly digg
ReplyDeleteit аnd personally recommend to mу
friendѕ. I am sure theу'll be benefited from this website.
Also visit my site ... More Signup bonuses
Hello! I've been reading your blog for a long time now and finally got the courage to go ahead and give you a shout out from Huffman Texas! Just wanted to say keep up the good work!
ReplyDeleteAlso visit my homepage ... best male enhancement products **