[转]How to mouse hover using Blue prism on a web page

别等时光非礼了梦想. 提交于 2020-12-13 10:58:41

本文转自:https://stackoverflow.com/questions/53126436/how-to-mouse-hover-using-blue-prism-on-a-web-page/53848708#53848708

问:

I am trying to mouse hover a menu option using blue prism. I tried HTML/Win32/AA/Region mode while spying but none of them worked. If I click on that element, I will be navigated to a different page.

Any pointers will help.

Thanks

 

答:

Not sure if you still need an answer on that as this question is more than month old.

If I understood you correctly, you want to hover mouse pointer over menu and then select one of the options from the drop down list. If so, there might be some options to achieve that without clicking on the menu itself.

  1. If you want to open same link every time you navigate through this website, then you can launch the target URL instead of navigating through the menu.

  2. Some HTML elements doesn't need to be visible to be active, on some websites you can 'click' on menu item without it being presented in form of drop down list. You can try to spy that element and navigate directly to it. If you won't be able to spy it you can search for correct element in application tree (Application Modeller -> Select some element -> click on arrow next to Identify button -> Open Application Navigator). Then you can use Mouse Click on that element via Navigate stage.

  3. I've tried to imitate mouse hover on some website by spying whole browser window with Win32 mode, and then using Drop option in Navigate stage, giving the menu exact coordinates. Seems to be working, you can try this option as well.

  4. You can test how menu reacts on Focus method in Navigate stage, but I wouldn't get my hopes up with this option.

If you share link to the website, then maybe I'll be able to help more

 

本文转自:http://www.rpaforum.net/threads/how-to-spy-a-item-that-is-chosen-by-mouse-hover.626/

The solution for your problem is using the region mode.
To click on lms under learning on the Blueprism Portal, I spied the whole page and the specific item "Learning" that opens the drop down using the region mode. So I had initially 2 regions. 1 was the whole page and the other was the "Learning" portion.
After doing the login, I tried to get the screen bounds(the x and y position where I needed to hover the mouse). Before that I set the start and end x & y to dynamic.
 

 



Getting screen bounds.

 

 



You can do it like this. After that I tried to get the whole Blueprism portal page as an image.


 

 



After that I used "find image" Object using the "Utility- Image Search".
Input is:

 

 



Tolerance is 20 by default. Output is:
 

 



Now I used the region mode property drop onto.

 

 


The values set here are default.
The last thing to do was click on the LMS link under the dropdown.

 

 



The whole object looked like this:
 

 




Let me know if it works on your end and also if you have any questions.

 
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!