The questions regarding “Lesson 10 - PDF - Workflows”
It contains 5 cases:
- “Read pdf” works out of the box
- “Screen scrapping PDF” selector is needed to be updated
The question is WHY? What is wrong with original selector?
Updated:
wnd cls='AVL_AVView' idx='1' title='AVFlipContainerView' /> wnd cls='AVL_AVView' title='AVDocumentMainView' /> wnd cls='AVL_AVView' idx='2' title='AVFlipContainerView' /> wnd cls='AVL_AVView' idx='1' title='AVSplitterView' /> wnd cls='AVL_AVView' title='AVSplitationPageView' /> wnd cls='AVL_AVView' title='AVSplitterView' /> wnd cls='AVL_AVView' title='AVScrolledPageView' /> wnd cls='AVL_AVView' title='AVScrollView' /> wnd cls='AVL_AVView' title='AVPageView' />
Original:
wnd cls='AVL_AVView' idx='3' title='AVScrollView' /> ctrl idx='1' role='document' />
- “Get Text PDF” Original selector won’t work. Trying to indicate on screen and HighLight after indicates the whole document area
Original:
wnd app=‘acrord32.exe’ cls=‘AcrobatSDIWindow’ title=‘Invoice #38645 - Adobe Acrobat Reader DC’ />
wnd cls=‘AVL_AVView’ idx=‘1’ title=‘AVPageView’ />
ctrl idx=‘2’ name='$40.00 USD ’ role=‘text’ />
Updated:
wnd app='acrord32.exe' cls='AcrobatSDIWindow' title='Invoice #38645 - Adobe Acrobat Reader DC' /> wnd cls='AVL_AVView' idx='1' title='AVFlipContainerView' /> wnd cls='AVL_AVView' title='AVDocumentMainView' /> wnd cls='AVL_AVView' idx='2' title='AVFlipContainerView' /> wnd cls='AVL_AVView' idx='1' title='AVSplitterView' /> wnd cls='AVL_AVView' title='AVSplitationPageView' /> wnd cls='AVL_AVView' title='AVSplitterView' /> wnd cls='AVL_AVView' title='AVScrolledPageView' /> wnd cls='AVL_AVView' title='AVScrollView' /> wnd cls='AVL_AVView' title='AVPageView' />
Updated selector returns “AVPageView”
=====
4 and 5: Anchor Base and Anchor Base Find Image: won’t work at all.
Original case fails with:
<?xml version="1.0" encoding="utf-16"?><ClipboardData Metadata="{x:Null}" Version="1.0" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib" xmlns:ui="http://schemas.uipath.com/workflow/activities" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"><ClipboardData.Data><scg:List x:TypeArguments="x:Object" Capacity="1"><ui:WaitUiElementAppear DisplayName="Find Element 'AVL_AVView'" FoundElement="[TextUsd]" VirtualizedContainerService.HintSize="314.4,107.2" WaitActive="False" WaitVisible="False"><ui:WaitUiElementAppear.Target><ui:Target Element="{x:Null}" TimeoutMS="{x:Null}" InformativeScreenshot="bc088262b9e112016e4272c54029bb6b" Selector="<wnd app='acrord32.exe' cls='AcrobatSDIWindow' title='Invoice #38645 - Adobe Acrobat Reader DC' /><wnd cls='AVL_AVView' idx='1' title='AVFlipContainerView' /><wnd cls='AVL_AVView' title='AVDocumentMainView' /><wnd cls='AVL_AVView' idx='2' title='AVFlipContainerView' /><wnd cls='AVL_AVView' idx='1' title='AVSplitterView' /><wnd cls='AVL_AVView' title='AVSplitationPageView' /><wnd cls='AVL_AVView' title='AVSplitterView' /><wnd cls='AVL_AVView' title='AVScrolledPageView' /><wnd cls='AVL_AVView' title='AVScrollView' /><wnd cls='AVL_AVView' title='AVPageView' />" WaitForReady="INTERACTIVE"><ui:Target.ClippingRegion><ui:Region Rectangle="794, 521, 62, 16" /></ui:Target.ClippingRegion></ui:Target></ui:WaitUiElementAppear.Target></ui:WaitUiElementAppear></scg:List></ClipboardData.Data></ClipboardData>
The source project:
c1ec6ffac568d0d63c9464d327fceda7593d9111.zip (955.1 KB)
Finally, could somebody explain what goes wrong?