In my attached screen, I need to check if 7001 value is there or not and if present, continue with clicking it. I used Find Children and then iterate through the collection to determine if the entered value is present or not. Issue is, value is present and only gets loaded on scrolling down the visible list of values and the next set of values will get loaded. How can we solve this? This is a web automation process.
Hi @harikp and welcome to the Uipath forum.
Do you need the exact value 7001? or records that contain 7001?
is the result unique? what happens when press enter?
Exact value 7001 exists. It’s a cloud based app and it is designed to display all values that contain 7001 in the values. Result is unique. I cannot press enter with out knowing value is present or not. In this case, when I scrolled manually, I could see the value present. Solution already deployed and being used by end users, but they have come with this use case as a kind of failed case.
Ok… I see.
Can you click on one of the values in the list and show us the selector? does it have the value in it? maybe you can pass it in a varible to the selector?
When SAP-PC is unique in the drop down list, there will be only one child and visible and so it can be clicked easily. Yes. The selector has the variable with the value. This is possible as the exact child is found and it’s value is equal to input box value entered.
Click selector is as below:
Since the value is visible in the drop down, it can be clicked. If the value is not visible and not present till the scroll bar is pulled down, Is there is a way to click the value that is not visible. Hope, I explained to your point.
Hi @harikp
I get the issue, i think you forgot to post the selector though
My point is, if you use an Element exist with that selector, would it return true even if the value haven’t appeared yet? i encountered a similar issue recently and that’s what i did to solve it.
Now, if that doesn’t work, you will need to scroll all the list until you find it (after you type the value to filter)
A while Do loop with condition: find the value OR reach the end of the list
Inside the Do:
-Get all the values visible and check if they are equal to the value you’re looking for.
-Scroll
Let me know if this works
I used the find children activity and changed the scope to Descendants. Got the collection and iterated through the collection to find an equivalent one of what is entered in the input dialog.
In this case, once found, I am stepping away with a tab to the next UI control there by avoiding the click of the drop down value as it is not visible and the entered value still stays in the input.
Hope this is correct and I am yet to test with different data.