wcx6298 / smartgwt

Automatically exported from code.google.com/p/smartgwt
0 stars 0 forks source link

Selenium.doubleClick() does not work with Firefox #514

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Attached are the SeleniumSupportSample.java (the sample SmartGWT application) 
and SeleniumSample (the Selenium-based test that verifies the behavior of the 
sample application)

The issue itself is that if I deploy the sample application and run the 
SeleniumSample then I get the following output from SeleniumSample (the last 3 
lines):
"The label2 text is = 'Before double-click'
The button item2 has been double-clicked
The label2 text is = 'Before double-click'".
The output of the application itself is (last 2 lines):
"The button item2 has been clicked
The button item2 has been clicked"
So the output of SeleniumSample and of the application itself shows that the 
"double-click" event has NOT been trigerred.

But if I switch to Internet Explorer (make HttpCommandProcessor to use 
"*iexplore" instead of "*firefox") then the double-click event IS trigerred.
The output from SeleniumSample is (last 3 lines):
"The label2 text is = 'Before double-click'
The button item2 has been double-clicked
The label2 text is = 'After double-click'"
And the output of the application itself (last 2 lines):
"The button item2 has been clicked
The button item2 has been double clicked"

Also when I tried to perfrom the double-click manually in FF then everything 
works fine. The label got updated and I got the application output:
"The button item2 has been clicked
The button item2 has been double clicked"

My environment information is:
- Operating system: Windows XP SP3
- Browsers: IE 7 and FF 3.6.3
- SmartGWT: 2.2
- GWT: 2.0.3

The additional information is that the Selenium IDE with SmartClient extensions 
records two clicks instead of a double-click

If you try to record double-click on the "button item2" the recording produced 
by the Selenium IDE will be the following:
selenium.open("/SeleniumSupportSample/SeleniumSupportSample.html");
selenium.click("scLocator=//DynamicForm[ID=\"Form\"]/item[name=buttonItem2||titl
e=Button%20Item%202||index=3||Class=ButtonItem]/canvas/");
selenium.click("scLocator=//DynamicForm[ID=\"Form\"]/item[name=buttonItem2||titl
e=Button%20Item%202||index=3||Class=ButtonItem]/canvas/");

Original issue reported on code.google.com by iurii.vo...@gmail.com on 22 Sep 2010 at 1:26

GoogleCodeExporter commented 9 years ago

Original comment by iurii.vo...@gmail.com on 22 Sep 2010 at 1:27

Attachments:

GoogleCodeExporter commented 9 years ago
Should be fixed in 3.1d (see smartclient.com/builds).  Please confirm.

Original comment by smartgwt...@gmail.com on 18 Apr 2012 at 1:14