In order to test few features of the application I need to validate long alphanumeric string. And this string/label/text (whatever you can call here) supposed to truncate once given by user.
I googled and tried to find - 'how to validate truncated string ' and did not find useful info so thought question should be here.
Challenge - I can write up a xpath for long string to validate the tag/label/text/string itself but complex part is string shows few dotes (ex thisIsLongStrin.....) at the end when got truncated.
I would like to make sure that these 'dotes' are displaying when long string is given by user.
Remember I can not see these 'dotes' in page source.
any thoughts or suggestions on this ?
Thanks guys in Advance.........!!!!!
suppose string is : "thisIsLongString"
on page it shows after truncating : "thisIsLongStri..."
this is what working:
//*[@class='abc']//*[contains(text(),'thisIsLongString')]
this is what working:
//*[@class='abc']//*[contains(text(),'thisIsLongStri')]
this is Not working :
//*[@class='abc']//*[contains(text(),'thisIsLongStrin...')]
(since dotes are not part of page)
I am not sure what should be the approach to make sure that these dotes are there.