Thank you for your answer i tried but i got error- Object [object Object] has no method 'trim' I used like this:
var columnvalue=rows.get(9).getText(); var columnvalue1=columnvalue.trim(); I am using protractor for testing angular js page. On Tuesday, February 17, 2015 at 8:16:28 PM UTC+5:30, Sander Elias wrote: > > Use trim(). > > " blah ".trim() ==> "blah" > > Regards > Sander > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
