Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » cannot change textboxes with Selenium
cannot change textboxes with Selenium [message #111278] Wed, 05 November 2008 13:39 Go to next message
Michael is currently offline MichaelFriend
Messages: 1
Registered: July 2009
Junior Member
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 10:05 Go to previous message
Eclipse UserFriend
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)
Previous Topic:CCombo support in RWT?
Next Topic:RAP, Selenium and Extension Points.
Goto Forum:
  


Current Time: Fri Apr 19 09:02:42 GMT 2024

Powered by FUDForum. Page generated in 0.01568 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top