user3648426
user3648426

Reputation: 251

Coded UI FailedToPerformActionOnHiddenControlException

I have 2 machines that both run IE 11. I have a script where I click on a radio button and it works on one machine, however, the same script is not able to click on that button and throws the FailedToPerformActionOnHiddenControlException exception.

Has anyone encountered this before that could shed some light into this situation? What could be causing this difference in playback on different machines running the same code on the same browser?

Upvotes: 0

Views: 597

Answers (1)

Prateek Garg
Prateek Garg

Reputation: 56

Try to use

Control.WaitForControlExists() before performing click event.

if(control.WaitForControlExists())
{
  control.Click();
}

or put some wait before click event :

Playback.Wait(1000);

Upvotes: 1

Related Questions