Is it possible to know whether a webelement's contents/text is italicized or not?
Thanks in advance.
Re: Italicized object
Well its tough but possible. When you have any text in italics it is due to the fact that it has <I> somewhere before it. So the below mentioned thing
All the above three cases would be in italic form. So look at the DOM of all three we will notice that webelement would have a tagName as I or one of it parent would have a tagName as I.
if ucase(node.tagName)="I" then
Loop while NOT node is nothing