I’m working on exercise 3 Generate Yearly Report Vendor, and i’m at the Dispatcher part and facing an issue with the dynamic selector i have to use to click next page on the Work Items page.
I will leave a few screenshots with the details of the selectors.
They seem to be valid, i have followed the instructions in the document, i have matched the browser type with the one i use ( chrome ) but it still wont click next
Helping mind would be appreciated
Please make sure you convert in_TransactionItem to in_TransactionItem.ToString as selector will be of String type and you can try adding class ‘page-numbers’ to selector. Moreover, please use ‘“+in_TransactionItem.ToString+”’ as dynamic part of selector.
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
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)
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
I apologize if my reply create any other confusion for you.
Ok, so let me explain what I did my sequence.
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.
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.
Like:
Are you on work items page?
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?
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.
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.