I have built out an automation based on an excel sheet as the input. Based on the current row of the excel sheet, I want it to click the appropriate option in the webpage. I have it working for those that you can visually see on the webpage. But there are enough options that you have to scroll to get to about half of them. When the automation gets to that point, it errors out saying that it can’t find the right place to click (because you would have to scroll to see that option within the webpage). I have attached a screenshot of the studio settings for this click tool and also the area of the webpage that would have to scroll.
Thanks for any ideas or suggestions on fixing this issue!
For Modern:
Use the mouse scroll activity so that you can scroll the page till the element appeared and then use the click activity and then it works fine.
Or else
Use the keyboard shortcut activity so that you can scroll the page till the element appeared and then use the click activity and then it works fine.
Use CurrentRow data into the mouse scroll activity and click activity and if you are using keyboard shortcuts and click you can pass the data into that so that when the loop runs the data gets changed and each time gets a new data so that it will check for that particular element.
NOTE : This activities must be placed inside the use browser/application activity and also you can pass the
For Classic:
Use CurrentRow data using keyboard shortcuts and click you can pass the data into that so that when the loop runs the data gets changed and each time gets a new data so that it will check for that particular element.
First off, you’re using classic activities. You should be using modern, they work much better and have more options.
But mainly, you need to try SimulateClick to see if that works. If not, try SendWindowMessages. Hardware Events (what you have now) are failing to find the UI element.
Thanks, I was able to activate the Modern Activities and am using the Mouse Scroll / Click combo. I have it working when I specify the specific phrase to look for. However, when I replace that default phrase with a variable, similar to how I had it previously working when the scroll was not needed, I am getting an error when I try to confirm the ‘scroll to element’ on the screen. It says that my variable does not exist or does not have default values set.
Have verified that the variable does exist and that I do not have set default values. What do I need to put as the default value so that it does not click the wrong button and will error out if it does not find the correct phrase to click based on the excel / table?
I am assuming this will also fix the error I am getting when I run the activities as well.
When you indicate the elements the attributes will be shown with some values and when you replace a specific attribute value with variable there you can see the option like overide default value so please mark it as true and then save the selectors by doing like this the selectors gets validated.