TWebElementActionList strange behave


The repro project: (1.4 MB)

The button2 has onClick procedure:

procedure TForm1.wbtn2Click(Sender: TObject);
  ShowMessage('Button 2 Clicked');

but onClick is not fired when I use TWebElementActionList where:

  1. control is button1
  2. target control is button2
  3. action send to button to is actRemoveDisabled

Repro steps:

  1. Click button1 after that button2 is enabled
  2. Click button2 should be fired button2.onClick but it isn't.

This is because you use the Enabled property on one side and use an action to toggle a HTML element disabled attribute on the other side.
Either use just the control.Enabled property to toggle it or just the HTML disabled attribute but do not mix both.

To set disabled via the HTML element attribute, use: