ASP Application coded with onMouseDown Links not working
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
22-12-21 02:12 PM
I'm attempting to automate a webpage ASP application where the links are coded to trigger on onmousedown="MouseAction(...". The ASP code then checks to see if it was a left or right click and navigates to different pages based on the button. When I attempt to use a Navigate stage and send the Click action to the object, nothing happens. Any suggestions on other paths to attempt to click the link?
------------------------------
Kevin Babb
------------------------------
------------------------------
Kevin Babb
------------------------------
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-01-22 04:55 PM
Hi @Kevin Babb,
Do you need to be able to traverse to either of the pages? Do you know the URL of each page? If so, could you just add a Navigate step directly to the necessary URL?
Cheers,
------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------
Do you need to be able to traverse to either of the pages? Do you know the URL of each page? If so, could you just add a Navigate step directly to the necessary URL?
Cheers,
------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-01-22 05:21 PM
Hi @ewilson, great questions. I only need to navigate to the left click page, but it's address is dynamic based on information I'm not sure I'll always have access to. In addition, it opens it inside a pane on the webpage, so I'm not sure navigating directly to it will work. I'm spending some time today trying to see if I can use Invoke Javascript to make it work.
------------------------------
Kevin Babb
------------------------------
------------------------------
Kevin Babb
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-01-22 06:01 PM
@Kevin Babb,
You could try performing a SendKeys or Global SendKeys to invoke the link I think. With those you can specify whether to send a Left, Right, or Middle mouse click.
Cheers,
------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------
You could try performing a SendKeys or Global SendKeys to invoke the link I think. With those you can specify whether to send a Left, Right, or Middle mouse click.
Cheers,
------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-01-22 07:24 PM
I gave Global SendKeys an action, no luck. I ended up looking at the page source, finding the function that is invoked when the link is clicked, and then made a call to that function. Had to replace one parameter in the function call with "new MouseEvent("click")" as the function expected an Event as part of the input, but it appears to be working now.
------------------------------
Kevin Babb
------------------------------
------------------------------
Kevin Babb
------------------------------
