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

本文转自:https://*.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.

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

Getting screen bounds.

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

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

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

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

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

Tolerance is 20 by default. Output is:

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

Now I used the region mode property drop onto.

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

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

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

The whole object looked like this:

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

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

 
上一篇:struts.xml文件中package元素的各大属性讲解


下一篇:OpenStack及其构成简介