PerformClick not returning when modal window displayed : Bug Reports

PerformClick not returning when modal window displayed

Bug reports and feature requests.

PerformClick not returning when modal window displayed

Postby liortal » Wed Jun 22, 2011 5: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.
liortal
 
Posts: 8
Joined: Sun Jun 19, 2011 9:55 pm

Re: PerformClick not returning when modal window displayed

Postby Ciege » Wed Jun 22, 2011 9: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...
User avatar
Ciege
 
Posts: 965
Joined: Thu Oct 16, 2008 7:46 pm
Location: Arizona, USA


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests

cron