| || |
To convert the Text of the Web elements
We have a requirement, like. We are out putting the text existing on the web element to the DataSheet. Actually The text is in CAPS. But they need in Title case Text.(Note: Not in all small letters). So after getting the text from the web element we have to convert in to Title case Text. (Like: Lalit Prasad from LALIT PRASAD)
and one more thing, While comparing the text with actual, It should pass irrrespective of the cases.
Is there any function for the said.
Thanx in advance
Re: To convert the Text of the Web elements
If you want to pass the test irrespective of the cases no need to change the no need to change the text to Title case. Just output the text in whichever case it is. and chage case both output text and actual to upper(Ucase) or lower(Lcase) and compare..
There s no function for converting to Title case in VB script.
There is a function in Excel rather. to change to titlecase in datatable.. use below.