Screen Scraping doesnât work. What do you mean by o/p ?
CV activities work but they donât really help because I also need to select a line from the table containing a specific text. As far as I understand the CV selector contains only coordinates. Is it true?
Yes, of course. I will do it but before I want to further test it.
Simply said, CV Click activity gives such descriptors:
âTarget: Text âmyTextâ (10,10,10,10)â
âTarget: Text â12345â (10,10,10,10)â
My discovery: coordinates donât really matter!
If âmyTextâ or 12345 exist somewhere in CV Screen Scope, then they will be found!
So just write random coordinates like (10,10,10,10).
Is it really so simple? Thatâs why I do further tests.
For instance what happens if âmyTextâ or 12345 appear more than once in CV Screen Scope?
True that. It might not helpâŚdo you know what is the application developed on⌠JAVA can be one alternativeâŚ
Can you open the ui explorer and see the visual tree menu on the left topâŚif the individual cells are displayed as elements and if you are able to get the selectors from there?
If yes then we can go with using themâŚsometimes when you identify we might not get the elements, but from the visual tree we can get them and use
CV Activities works based on the Anchors. In other words, it identifies the actual UI element based on the relative UI element.
Ex: There is a field in a pdf, Invoice Number: 12345
While you are using CV, the anchor would be Invoice Number, actual UI element is 12345. During the run time it first looks for the anchor through which it finds the exact one
The coordinates/clipping region define the values in pixels relative to the UI element/Anchor. That is why, wherever the field is within the app it can able to find
If there are multiple values in the CV scope, as it identifies based on the Anchor/relative Ui element(if these were unique) I guess it will not create any issues
I believe, in that case it find the closest match and gives that one as output. It helps to provide better solution if you can share the sample file with this scenario