Page 1 of 1

PerformClick not returning when modal window displayed

Posted: Wed Jun 22, 2011 4:26 pm
by liortal
Hi,

I have an issue when using PerformClick() method on some web element that causes a modal window (a "OK/Cancel" popup window to appear).

When PerformClick() is invoked, the element is checked (it's a checkbox), and a modal window is displayed, causing the PerformClick() to never return.

What is the explanation for this ? Is this because PerformClick being invoked on the same thread as the UI and so it gets blocked?

The call to PerformClick should return, just like the call to Click.

Re: PerformClick not returning when modal window displayed

Posted: Wed Jun 22, 2011 8:26 pm
by Ciege
Is there a reason you are using PerformClick() rather than Click()?

PerformClick() is called in the same thread, thus the modal window is blocking automation until the window is closed. Click() should not have this same limitation.