Academy2 Assignment 2

Hi All,

In Assignment 2 Dispatcher I am struggling with On Element Appear. Not sure what is going wrong it throws an error with a Timeout exception. Can you please let me know what I am missing

I kept a writeline above the element appear it writes the following <webctrl aaname='1' tag='SPAN' class='page-numbers current' />

I have the work items page opened while debugging

Hi Sri_harsha_Bhasuru,

Selector seems fine. Try set WaitForReady = INTERACTIVE.

@ovi No luck, same error pops up

Hello there,
Give a try .
Change WaitForReady to Complete.
Play with WaitActive and Waitvisible.

Hi @ddpadil Tried as suggested. Didnt work same error

ok cool.
Now tell me what exactly your trying to do here (reason to use on element appear activity),
Please attach process.xaml file if possible(let me run from here)

PS: can you try to run on element appear activity separately with different website(just to check its working or not)

Attached the process.xaml file, I tried for a different page and it works.

In this process.xaml page we are trying check if the current page of the datatable is current or not.

Note from the Assignment 2 of page 4 as follows:
Next, add an On Element Appear activity to check if the processing page was opened. You can use UiExplorer. The class attribute can be used to identify active or inactive pages, so it can also be used when creating the dynamic selector. Inside the On Element Appear activity, scrape the table containing work items. Create a variable called dt_WorkItems in the Output property to store them.

Process.xaml (17.4 KB)

Hello there,
Works fine for me.
for the current page where paging number is faded (handle using try catch in case aaname (in_TransactionItem) other than current page number(make sure in_TransactionItem has current page number ) )

<html title='ACME System 1 - Work Items' />
<webctrl aaname='1' tag='SPAN' class='page-numbers current' />

set RepeatForever to False

I am setting RepeatForever to False. Can you check my process.xaml file which I have uploaded, I tried now with hardcoded selector <webctrl aaname='1' tag='SPAN' class='page-numbers current' /> but didnt work. Getting timeout exception

ok let try this.
Make sure work item dashboard open (first page )
and run my workflow.
Main.xaml (12.6 KB)

Yeah this works. But if I make the aaname dynamic and pass through as an in_argument flow is navigating to “Not Found” message box

Hello there,
Yep your right with argument its throwing error.
but look like i found the issue. :wink:
Try this now
"<html title='ACME System 1 - Work Items' /><webctrl aaname='"+in_TransactionItem+"' tag='SPAN' class='page-numbers current' />"

Main.xaml (13.5 KB)

What is the magic!! What is that I am missing :disappointed_relieved:

Hi harsha,

if you are done the assignment please can you share your workflow


Hi Nikitha,

When you run the Dispatcher, it will add items with status New in the queue. You’re right, when you run the Performer, it needs new items to process.

So here are the steps you can take:

  • reset test data
  • remove all the items with status New in your Queue
  • run Dispatcher
  • run Performer
  • upload file/video to Academy
  • wait for evaluation

Note: do not reset test data until you’ve received the evaluation score.

1 Like

Have you completed 2nd assignment?? we are facing some problem, all items status is showing as completed but once we upload the file we are getting score as 0. Please help me out for this problem

Same problem for me… :frowning_face:

Can you please elaborate why it worked with your element and not when we tried copy pasting from UiExplorer ? This is second time I am running into the issue where I have compared my element with the solution and there was no difference but works once copied from the solution and not when copied fromUiExplorer. Anything we can do to improve our element selections ?

1 Like

Had the same problem but setting On Element Appear activity >> Options >> RepeatForever = False solved it.