ḥari
2 years agoFrequent Contributor
How to get text alignment
Hi I tried to verify the text alignment in TC with the below code getComputedStyle(var).textAlign but its not fetching the alignment Can you please help me regarding these???
Look at the example I have provided, and check the spelling of what you have.
Also understand the difference between Inline and Computed Styles.
Yeah, that's typing mistake.
It's printing empty message in log file because In DOM structure CSS selector not available refer below image for DOM reference
>>only class attributes only available