PerformClick not returning when modal window displayed

Bug reports.
liortal
Posts: 9
Joined: Sun Jun 19, 2011 8:55 pm

PerformClick not returning when modal window displayed

Post by liortal » Wed Jun 22, 2011 4:26 pm

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.

User avatar
Ciege
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: PerformClick not returning when modal window displayed

Post by Ciege » Wed Jun 22, 2011 8:26 pm

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.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...