Just open the website and click in any random order number and check the selector.
There has got to be a direct reference to the order number, just right click it => Convert to variable and pass a variable to it.
Thanks for the reply. That’s the thing, how do I convert it to a variable indicating the value of that variable to be at a certain cell in the excel file?
Read your excel file using the ‘read range’ activity inside Excel Scope. This activity generates a data table
Loop through the Data Table using the ‘For each row’ Activity, populate the variable using '‘Assign activity’
MyOrderNumber = row(“OrderNumber”).toString
I’m afraid not. I’ll redefine the issue. I need to click on an element as if I was using a “select item” activity.
A select item activity has a certain text or variable that will search for from a list of options on the screen and click then on it. I need to get the same effect as if it was a select activity, but with a click activity.
My issue again in other words: I have a list of elements on the screen that are unrelated with each other and I need to have one of them clicked on. Said element will vary depending on the results from an Excel file, so the bot will not have to always click on the same element. Elements to be clicked on will vary. This is the variable part I’m not able to do in StudioX.
Is there another way of configuring/coding the selector so it positions itself over the matching element to the Excel cell shown above?
PS: I tried using the “shortcuts” activity, typing in the text from Excel, then Escape and Enter, but the site only admits clicks to enter such element. So, no luck there either.
OK, I changed the profile, closed everything, reopened it and started a new project. I’m attaching the new project Test process click activity.zip (78.1 KB) .
For the sake of simplicity in this example I need the selector to automatically look for an entry in the excel file, in this case:
and then click using a browser click on the corresponding entry:
I could create all activities and the variable, but I still cannot link the click activity to the variable.