Goal: I want to double click each line (the ones with black lines). Each line then leads me to a similar window where the same process will be necessary. The number of lines varies.
What I have done so far: I have managed to get a correct count of the lines through creating a data table. My idea was read the data table, getting the number of lines and then clicking each corresponding line in SAP. I have also passed a variable in the selector but Uipath only clicks one line (using a single click for testing purposes).
Anyone have any ideas? Your help would be greatly appreciated.
Did you checked the selector for each of the row manually using UiExplorer? Are you sure that only âRowstartâ variable value within the selector changes and the whole selector stays intact?
Yes. The variable within the selector is the only one that changes because it contains the row number.
I have in the meantime managed to get it to iterate every line but it doesnât want to stop at 3 (in this case). It wants to find another line that doesnât exist. I was trying to implement a counter but am having a hard time implementing this.
If you are still facing issue with this, i would suggest you to also try âFind Childrenâ activity. Since you would like to click on every row, identify your table as the selector for the activity and then the row selector as the Filter selector. Using the for each again you should be able to iterate through each one of the child elements(i.e.) rows identified.
Thanks for the reply but Iâm not sure how to implement your solution. Iâm not familiar with that activity and Iâm not sure where I should place it.
Hi Rammohan,
I also have some issues with the table in SAP. I tried using Find Children activity, but i donât seem to get any selector that has rownumber or something similar. instead I get a selector that looks like this: <sap id=âusr/sub/1[0,0]/sub/1/2[0,0]â />
I tried to replace this 1 (as i assumed that this is the row number) with counter on the following ways:
<sap id=âusr/sub/ââ+counter.ToString+ââ[0,0]/sub/1/2[0,0]â />
or
<sap id=âusr/sub/"â+counter.ToString+â"[0,0]/sub/1/2[0,0]â />
and I always get an error that my selector is syntaxically invalidâŚ
Can you please please help me in this matter?
thank you very muchâŚ
Thank you very much! This is the right syntax now.
Can you also check if I put the other characters instead of 3 right: (I assume there may be a Problem):
This is the original one:
wnd app='saplogon.exe' cls='#32770' title='QEK(1)/100 Kontonummer des Debitors 1 Eintrag' />
<sap id='usr/sub/1[0,0]/sub/1/2[0,0]/sub/1/2**/3**[0,3]/chk[12,3]' />
Instead can you attach a screenshot of these selector. It would be more readable. I am seeing some * characters not sure if your selector is supposed to contain that.
I made a Screenshot of both - the activity and selector.
In the above case - Robot perfectly recognizes the selector and I get the right valueâŚ
Now what I did: (I replaced just the number 3 - as it is dynamically changing - like a row number), and Robot cannot find it anymoreâŚ
I checked my Counter and it equals 3 - so at least for the first value in the table it should work-. but no :(((
Hello,
In my case this works when table rows are visible but i have multiple rows and some arent visible on screen so if i pass a higher number of table row no. it is clicking random.