I’m working in a web automation. I need to click into an element of a sub-menu that only appears when I hover the mouse over the main menu.
I am aware of the “simulate hover mouse activity”. My problem is that I can’t select in the “Click activity” the desired link in the emerging submenu. I tried the F2 trick to disable the select mode for a few seconds, but once the “coun-down” is over the menu disappears and I cannot select the element.
Same happens if I try the “Record” tool. Once I click the main menu, the submenu disappears after some miliseconds.
Click on the element where you would normally hover in UI Explorer. Then check the children elements and look for the item which looks like it identifies the drop-down you’re searching for. Chances are the aaname will match the text of the drop-down you want.
However, I couldn’t find any children elements. I looked at the HTML source code, and it seems like it’s loading content dynamically through javascript functions. I searched for words that apperar in the page, and they are not present in the HTML source code.
Can all web pages be automated with UI Path, or some websites can not due to the way they have been programmed?
Dynamically created data can be tricky. If the element exists in the object explorer in the browser (usually invoked by pressing F12 in the browser), then UiPath will likely detect it. Otherwise, it requires another means to choose the element (hotkeys, coordinate-based clicks, etc.).
I will explore the F12 in my browser, but I suspect it is dynamically created data and it is beyond my current UI Path skills.
Coordinate-based clicks can be another option combined with a prior hover mouse activity, but I guess it is much less robust and more prone to errors. I will also give it a try.
Hey Friends I was came cross same issue but when I left click element disappeared but I used Web recording and got that ui element then removed from the recording and placed in my workflow. Now it works for me.
Another solution that can work for this is just to right click on the parent menu item. It will bring up the right click menu options, but usually also leaves the left click menu options visible for selection.
For my case, I noticed that by right clicking the menu and click on inspect, the menu stays open for me to switch back to Studio and select the element.
am trying to use the click activity to open a new window from a dropdown menu in an application. the problem is when i click the targeted option from the menu, the menu disappears. F2 is not helping. i did that and i prepared the menu but when i try the click activity it disappears again and again.
Hi @mohsen.monsef , if your are using modern design try using select item indicate in the dropdown menu and if that is not getting worked. You can use hover over with anchor base in modern selectors.