Question

1
Replies
221
Views
Chunzhi_Hong Member since 2013 138 posts
PEGA
Posted: March 31, 2017
Last activity: August 26, 2020
Closed
Solved

Robotics 8.0 jQuery onchange event handler not react on the change event fired by "RaiseEvent" method

I wanted to automate a web application that has many controls on the web page that are hooked up with onchange event handler using jQuery.

I have tried to mimic onchange event by calling "RaiseEvent" method in my automation, but without success.

For trouble shooting purpose I created a simple HTML (see attached jquery-test.txt), and there are two findings.

1. onchange event handler directly specified on the html input tag does work.

2. onchange event fires two times in a single "RaiseEvent" method call.

To determine if this duplicated onchange event, the culprit that caused jQuery event handler stops working,

I wanted to know if there is a way to limit the "RaiseEvent" method call fires event only one time?

Chunzhi

Robotic Process Automation
Moderation Team has archived post
Share this page LinkedIn