How to find particular element in the browser?

Try to use Indicate anchor while indicate element in the browser within the Ui Explorer in Edit selector.
Make it as a dynamic selector.

Hi Manikandan.T Sir,

I can’t get it out your reply sir…

Fine
–you were almost done
–use TRY CATCH activity where in the TRY BLOCK use ANCHOR BASE activity
–where in the left side of anchor base activity use FIND IMAGE activity and choose that “DecisionDate” as a image and in the right side use SCREEN SCRAPPING method like use GET OCR TEXT method or GET TEXT method, and get the output with a variable of type string named str_input
–now use a WRITE LINE activity and mention as str_input.ToString

and if that fails like there is no DecisionDate field in that page this above ANCHOR BASE activity will fail and it goes to CATCH block where we can return value as “Nil” using a assign activity
str_input = “Nil”

Kindly try this and let know for any queries or clarification
Cheers @SOURAV_KUMAR_DAS

2 Likes

While indicating the selector
Click on Edit selector and select the anchor by using Indicate Anchor Within the Ui Explorer itself its need not to use anchor base activty separatly.

Ui_explorer

1 Like

Hi Palaniyappan Sir,

At catch block I am unable drop the activity…

1 Like

fine
press esc button three to four times and then try dragging activities from activity panel and insert them within CATCH Block
Cheers @

1 Like

Hi Palaniyappan Sir,

Ok Sir.

Hi Palaniyappan Sir,

What type of exception i need to include in the catch block Sir?

1 Like

the exception type would be
System.Exception

Cheers @SOURAV_KUMAR_DAS

1 Like

Hi Palaniyappan Sir,

Is it IO Exception Sir…?

no buddy
just this
image

Cheers @SOURAV_KUMAR_DAS

1 Like

Hi Palaniyappan Sir,

Oh Ok Sir.

Hi Palaniyappan Sir,

The next hearing date has returned as decision date Sir, it didn’t return as nil.

1 Like

Fine
May I know What was mention in the assign activity inside the CATCH block
Cheers @SOURAV_KUMAR_DAS

1 Like

Hi Palaniyappan Sir,

below is the image Sir.

image

After this try catch have we used WRITE RANGE ACTIVITY with the datatable passed as input
Only then the updated datatable will be written to a excel file
Cheers @SOURAV_KUMAR_DAS

1 Like

Hi Palaniyappan Sir,

Yes Sir.

1 Like

Fine
Have we used any assign activity in try block with Get Text activity output variable passed as input to that assign activity
Cheers @SOURAV_KUMAR_DAS

1 Like

Hi Palaniyappan Sir,

Yes Sir we have used assign activity.

Can I have a view in that with a screenshot if possible or kindly share the xaml
Cheers @SOURAV_KUMAR_DAS

1 Like