Forum Discussion

Ilakkk's avatar
Ilakkk
Contributor
2 years ago

Re: Spacing between text and alignment

Hi

Is it possible to verify the spacing b/w text and the alignment of the text in TC???

Spacing and alignment property they given component Obj but i want to verify the text is aligned and spacing properly with xpath 

 

7 Replies

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    In this example,

    You can verify the text alignment, but the spacing in-between the words that are spread apart, is just one space character.

     

    Are you able to provide an example?

    • Ilakkk's avatar
      Ilakkk
      Contributor
      Same as your example only I am just trying to verify the one space between text contains or not. Normal space verification. Is it possible to check??
  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Use the Object Spy tool to look at the text content, and then use the appropriate method provided by TC to verify the text content to what you expect.