Dynamic selector not clicking next page in generate yearly report vendor dispatcher

hey @kkasegaonkar

thanks for your input.
i have followed your instructions as you can see in the screenshot below.
still not working, i get the same error : Faulted :frowning:


Hi @Gaki,

Please attach your xaml, unable see the screenshot clearly.


Process.xaml (14.7 KB)
attached. thank you :pray:

@Gaki, Would you please try using below selector and let me know if it helps.



hey. thanks, but i’m not seeing any selector, just “” …

ok, so this is my selector:

webctrl aaname=’" + in_TransactionItem.ToString + "’ tag=‘A’ class=‘page-numbers’ /

i removed the < > so it can be visible.

can anyone help me please? i dont understand why its not working :frowning:


Hey guys,

Still havent found a solution to this problem :frowning:

Anyone with a lending hand would be a savior :smiley:


Hi @Gaki,

Please try with attached sequence it should work fine.

Please note that I have removed class attribute from selector. Also, mine selector type is full selector as I have not used attach window activity.

Sequence.xaml (5.5 KB)

Shenki Singhai

remove class part of ur selectors

i have tried without the class part, still not working :frowning:

Hi @ShenkiSinghai

I tried with the selector in the sequence and its the same as mine, except that your PageNumber variable has the value 3, which is my in_TransactionItem.
Still not working :frowning:
Can you please explain why did u passed that value to the PageNumber Variable?
Also, there is a missing activity in your sequence which i am unable to see, can you please tell me what that is? screen shot below:

Also, i removed the class parts of the selector and also the if from the previous process xaml uploaded a few posts up.
This is the error i’m getting when running in debug mode:

RemoteException wrapping UiPath.Core.InvalidSelectorException: The selector is not valid —> RemoteException wrapping System.Xml.XmlException: ‘tag’ is an unexpected token. The expected token is ‘"’ or ‘’’. Line 1,
position 43.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res,
String args)
at System.Xml.XmlTextReaderImpl.ThrowUnexpectedToken(String expectedToken1,
String expectedToken2)
at System.Xml.XmlTextReaderImpl.ParseAttributes()
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlLoader.Load(XmlDocument doc,
XmlReader reader,
Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.LoadXml(String xml)
at UiPath.Core.Selector.FromXmlString(String xml)
at UiPath.Core.Selector…ctor(String theSelector)
— End of inner exception stack trace —
at UiPath.Core.Activities.TaskAsyncCodeActivity`1.EndExecute(AsyncCodeActivityContext context,
IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context,
IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor,
BookmarkManager bookmarkManager)

thank you :pray:

Hi @MythicGold

i have removed the class part.
still not working :frowning:
this is my selector now:

please note that if i don’t use the dynamic selector variable, it will work and it will click the nextpage, but stop after number two.

what should i try next?

thank you :pray:

Sorry for being stressfull, but I really want to finish this assignment and i’m stuck at it for a week now…
i have searched for solutions on the forum and web, still none had any success.
so, is there anyone who is willing to send me an email adress where i can send my full dispatcher xaml compressed and take a look to see where something might be wrong? (i dont think i can post it here)
i will be very gratefull, even buy you a beer :smiley:

thanks in advance.

can you try using IE instead? chrome is not stable enough for the selectors.

and also you need an If activity for that clicking part, because when u scraping page 1 u dont need to click next page

Please try this post. This is a challenge in Level 3 that serves as an awesome exercise on Selectors.

Hi @Gaki,

I apologize if my reply create any other confusion for you.

Ok, so let me explain what I did my sequence.

  1. In assign activity I have created a dynamic selector to click on page number which I want. I have used a variable PageNumber in which I have defaulted the page number I am looking to click. I am expecting in your in_Transaction variable/argument you are also passing the same.

  2. Second activity which you are seeing is missing just a normal click activity, I don’t know why you are seeing this as a missing activity. May be because of stuid verios is changed now.

If above is not working for you and you are struggling to understand then please let me know steps you are trying to perform.


  1. Are you on work items page?
  2. Do you want to click just only on single page number like 3 or 4 or you want to click on each and every page?
  3. In you in_Transaction variable what value you are passing?

It would be really helpful for me to understand your problem as till now I have not reached to level 3 assignment and I don’t know the eaxt problem/steps are you creating solution for.

Please out some more higlight, and definitely I will try that you will get your answer.



Please check your email.


Hi Gabriel,

Sorry for late reply I was not active much here.

So, main issue with your xaml was in GetTransactionData with your If Statement where your checking TransactionItem IsNot Nothing, here condition should be if TransactionItem Is Nothing then don’t do anything like you have mentioned in your if condition else increase the TransactionNumber to +1.

Hope this helps. If yes, then please mark this as your solution.


1 Like

thank you guys!
i appreciate your help!


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.