I am trying to automate the process of clicking on a link text on a web page to download a file, and it worked last month, but when the month changed and the link text string changed, it did not work.
The date format is yyyy/MM and I wanted to make it dynamic, so I created a variable “DateTime.Now.ToString(“yyyy/MM”)” in “assign” and then set the target <webctrl parentid=‘contents’ tag=‘A’ aaname='{{currentYearMonth}}/>in the “click” activity.
I would appreciate an easy explanation as I have little knowledge of programming.
Thank you in advance.
rlgandu
(Rajyalakshmi Gandu)
July 1, 2024, 4:12am
2
@stakamura
Try using another properties like InnerText instead of AAname
Instead of fuzzy selector choose Strict Selector
Yoichi
(Yoichi)
July 1, 2024, 4:13am
3
Hi,
For now, can you share whole the error message, if possible? It may contain difference b/w current selector and actual selector.
Regards,
“このアクションのユーザー インターフェイス要素を一意に識別できませんでした。
要素が一意に識別されるよう、要素の編集、検証の実行、およびアンカーの追加を行ってください。
場所 UiPath.UIAutomationNext.Activities.TargetCommonLogic.d__8.MoveNext()
— 直前に例外がスローされた場所からのスタック トレースの終わり —
場所 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
場所 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
場所 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
場所 UiPath.UIAutomationNext.Activities.NClick.d__15.MoveNext()
— 直前に例外がスローされた場所からのスタック トレースの終わり —
場所 UiPath.Shared.Activities.AsyncTaskCodeActivityImplementation.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
場所 UiPath.Shared.Activities.ContinuableAsyncCodeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
場所 System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
場所 System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
14:47:59.8423 => [ERROR] [UiPath.Studio.App.Logging.OutputLogger] [60] UiPath.UIAutomationNext.Exceptions.NodeNotFoundException: このアクションのユーザー インターフェイス (UI) 要素が見つかりませんでした。”
I have had multiple errors and sometime even no error but it didn`t work out.
Yoichi
(Yoichi)
July 1, 2024, 5:06am
5
This message shows there are multiple elements which match with your fuzzy selector.
So can you try either of the following?
Review your selector and/or add anchor if necessary
Use Strict selector instead of Fuzzy selector.
Regards,
rlgandu:
InnerText
Text changes every month and I download files every month so I hope to get the date, find the same date in the link text on the website and click on it, and download it.
rlgandu
(Rajyalakshmi Gandu)
July 1, 2024, 5:20am
7
@stakamura
In innertext pass the currentYearMonth check the behavior it dynamically changes the year and month