I'm having a problem with my custom selector.
I have an action to extract the element text and title from a list of elements. It produces the following table.
Then there is a loop to click on the first element (I will add more actions to perform before clicking the next item in the list.)
This is the static selector which I created by just selecting the first element in the list.
I modified it by replacing the title and text from my list of elements.
When I use the static UI element, the first element is clicked. But when I try to use the modified element I get this error, although the text of the selector seems to match the static selector identically. Any ideas what is going on here?
Thank you in advance.
Thanks @Srini007 and @NathanAlvares24 for the thoughtful suggestions. I ended up finding a solution.
I changed the selector from requiring the text of the element from the extracted table, to rather accepting the title of the element, since I was extracting both from the webpage. This resolved my issue.
Hi @eloomis
It's a general bug in PAD that when you pass the variables in Selectors to work you need to enable the Text editor for the selector. On the toggle and pass the Variable value and try
If you find this reply helpful, please consider giving it a LIKE AND
If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION
Regards,
Srini
Hi @eloomis !
I have replicated the same to try it out.
Now, I noticed what the issue you were facing. Hence let me explain to you using two "Display message" actions.
Let me explain what is the output of the first display message action:
So as seen above, if I were to use "%NextJob[0]%", I would get both values from both columns. Now, as we know datatables have rows and columns. So here in the syntax, I just mentioned one index and that is only the row. Hence, you get all the values as a datarow which comes in as a list from the first row (as 0 is the first starting index).
Now, let me show you what the next display message action will produce:
So as seen from above, if I were to use "%NextJob[0][0]%", I would get just one value. Now, here I mentioned two indexes that is the first being row and the second being the column. Hence, you get the value of the first row (as 0 is the first starting index) and first column (as 0 is the first starting index).
I hope this helps.
Regards,
Nathan Alvares
----------------------------------------------------------------------------------------------------------------------------------------
If this helps & solves your problem, please remember to give a "Thumbs up" and "Accept my solution" as it will help others in the future.
WarrenBelz
146,645
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional