Wildcard not working for "tag" attribute

I am selecting element which contains heading tag which sometimes comes as “H1” or “H2”. So, I am using wildcard for this. but it gives error on validating
Any suggestions?
@UiPathMaster @loginerror @ClaytonM

@manu.jaggi you cant use the Wildcards for the tags.

1 Like

Hi try use
tag = ‘H?’

1 Like

User counter for getting the number H2 counter+1 will give H3 so on

Hope this will useful to resolve issue

Thanks

1 Like

Hi @manu.jaggi

In this case, I would use a variable to achieve that, it will work then:
image

See here:

3 Likes

You might be able to uncheck the tag if the aaname is unique enough by itself, or use parentclass instead.

2 Likes