This is a migrated thread and some comments may be shown as answers.

MouseClick not working while trying to open Modal Dialog

3 Answers 104 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Souvika
Top achievements
Rank 1
Souvika asked on 30 Dec 2010, 03:53 AM
Hi,

We have a method called "InvokeModalDialog" which accepts two inputs - (Element element, string dialogTitle). Then we cast the element to HtmlControl by using the following:

HtmlControl control = element.As<HtmlControl>();

Next we call:

control.MouseClick();
This does not fire at all - we have IE8 and Windows 7 operating system. I have also tried Desktop.Mouse.Click.... events, etc. (If we manually mouse click at this stage everything works thereon)

On going through the forum, I came accross a property called "SimulatedRealClick" - but cannot find it in code to set its property. Please let us know how to set its property to "true" within the method "InvokeModalDialog"

Cheers,
Souvika

3 Answers, 1 is accepted

Sort by
0
Keaegan
Telerik team
answered on 30 Dec 2010, 11:42 PM

Hi Souvika,

There are a couple of things to check for in this type of scenario. First, I wanted to offer some clarification:

The "SimulateRealClick" you are looking for is the same as a "MouseClick" (Desktop.mouse...click() events), so this is the coded version of the feature you are looking for (It is named SimulateRealClick within the GUI of the tool and not within the assemblies called through code). 

Also, if you are using the 64-bit edition of IE to run these tests it can also cause issue. I do not see a note of what OS you are running, only that this is occurring in multiple browsers. Are you running a 64-bit version of Windows? If so you will need to modify execution of the test so that the 32-bit version of IE is used (we have known incompatibility that elicits the type of symptom you are describing).

Also, have you changed the browser configuration recently? If so, or if you have not configured IE as of yet, please review our Configuration Walkthrough and setup IE with the listed settings (click the '+' next to "Configure your Browser" in the left column, then click the browser version you are going to configure).

I'll look for your reply with the above.

Regards,
Keaegan
the Telerik team

Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
0
Souvika
Top achievements
Rank 1
answered on 31 Dec 2010, 12:08 AM
Hi Keaegan

Thanks for your reply.
I had mentioned that we are using Windows 7.
Yes we have configured IE 8 as per the guidelines before running the tests..
Will have to look into using the 32 bit IE. Thanks for this.

Are you going to give any support for the 64 - bit IE, etc in the future?

Thanks,
Souvika
0
Keaegan
Telerik team
answered on 03 Jan 2011, 07:13 PM
Hello Souvika,

I am sorry for missing that part on Windows 7 in your initial post. The "flavor" of windows (64-bit vs 32-bit) was the part I was looking for, and I apologize if my request caused confusion or frustration.

We do not currently have a development path to include support for 64-bit versions of the browser applications. Is there a specific business need you have for using the 64-bit of IE? Also let us know if you continue to have this issue.

Greetings,
Keaegan
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
Tags
General Discussions
Asked by
Souvika
Top achievements
Rank 1
Answers by
Keaegan
Telerik team
Souvika
Top achievements
Rank 1
Share this question
or