cannot change textboxes with Selenium [message #111278] |
Wed, 05 November 2008 08:39  |
Eclipse User |
|
|
|
Hi all,
I want to test my RAP-Application (RAP Version 1.1.1) with Selenium. The
"type" Command as well as the "keyPressed" or "typeKeys" Command doesn't
work. I can see the text is in the textfield visible, but text.getText
returns still "". You can try with the Controls-Demo for RAP in the
Button-Tab:
defaultButton.addSelectionListener( new SelectionAdapter() {
public void widgetSelected( final SelectionEvent event ) {
String message = "The text You entered: " + text.getText();
MessageDialog.openInformation( group.getShell(),
"Information",
message );
}
} );
It seems that the modify/change-Listener doesnt't work. (Safari and
Firefox (Version 2 and 3)).
There is an old message with the same problem:
http://dev.eclipse.org/newslists/news.eclipse.technology.rap /msg02368.html
but the answer (using Qooxdoo Simulator) doesn't work for text input (only
for simulating mouse-clicks)
|
|
|
Re: cannot change textboxes with Selenium [message #111420 is a reply to message #111278] |
Thu, 06 November 2008 05:05  |
Eclipse User |
|
|
|
Originally posted by: rherrmann.innoopract.com
Michael,
from looking atthe code in TextUtil.js, there are several listeners
attached to the qx text widget to ensure that the server-side is
updated with user input. See _doAddListener in line 95.
Did you check whether one of these listeners is called?
HTH
Rüdiger
Michael wrote:
> Hi all,
>
> I want to test my RAP-Application (RAP Version 1.1.1) with Selenium. The
> "type" Command as well as the "keyPressed" or "typeKeys" Command doesn't
> work. I can see the text is in the textfield visible, but text.getText
> returns still "". You can try with the Controls-Demo for RAP in the
> Button-Tab:
>
> defaultButton.addSelectionListener( new SelectionAdapter() {
> public void widgetSelected( final SelectionEvent event ) {
> String message = "The text You entered: " + text.getText();
> MessageDialog.openInformation( group.getShell(),
> "Information",
> message );
> }
> } );
>
> It seems that the modify/change-Listener doesnt't work. (Safari and
> Firefox (Version 2 and 3)).
>
> There is an old message with the same problem:
> http://dev.eclipse.org/newslists/news.eclipse.technology.rap /msg02368.html
> but the answer (using Qooxdoo Simulator) doesn't work for text input
> (only for simulating mouse-clicks)
|
|
|
Powered by
FUDForum. Page generated in 0.03924 seconds