Anchor Base Selectors not working for pdf

Hi Team. Please find the pdf below
e69ec08bd66b8cc9c700cc7cddf40fee23f90b7c.zip (88.9 KB)
In this PDF there are certain fields like Date, Invoice etc at RHS. I am trying to fetch date using anchor base and displaying it using message box but it gives me invoice# in the result. Please find the selector which I am using in anchor base(Find Element)



Please find the selector which I am using



out_argument.xaml (5.0 KB)
@Vikas1681 Hi,
I’ve used regex to extract date instead of selectors. Hope this helps

Thanks Shibani this worked. Can you please share some links/documents on using regex for selectors.

@Vikas1681 Since you are working with pdfs, I would suggest u to read the pdf and use regex to extract the desired data, like how i’ve done in the workflow above. You can use https://regex101.com/ website to build your regex.
Also refer
#FeatureBlog - 19.10 - Using regular expression (Regex) in the selector attributes
Regex tutorial — A quick cheatsheet by examples | by Jonny Fox | Factory Mind | Medium

1 Like

Thanks Shibani. These links were very helpful.

2 Likes