Hi Chris,
many thanks for your help. On friday we came more inside the problem (using
JMeter to look for the server-communication).
We use a stripped down RAP-Controls-Demo (ButtonTab.java). There is a textfield
defined and the Button, but it looks the same way as your example:
final Text text = new Text( group, SWT.BORDER | SWT.SINGLE );
defaultButton = new Button( group, style | SWT.PUSH );
defaultButton.setText( "Default Button" );
defaultButton.getShell().setDefaultButton( defaultButton );
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 after a automatically input (type-Command) the Textfield is not
set to changed.
complete manually:
input 12 in the textfield and button-Click leads to TWO Requests:
my ids:
w1 the ui-Root-ID for the application
w7 is the workbench-Window inside the Browser-Window
w76 the div where the Button-Div is in
w80 is the div where the textfield is in (XPath its //[EMAIL
PROTECTED]'w80']/input)
first request:
Name Value
w7.activeControl w76
w80.selectionStart 2
w80.selectionLength 0
org.eclipse.swt.events.widgetSelected w76
w76.bounds.x 5
w76.bounds.y 59
w76.bounds.width 152
w76.bounds.height 25
w1.focusControl w76
w80.text 12
uiRoot w1
requestCounter 39
second request:
389628459 442,13
w1.focusControl w162
uiRoot w1
requestCounter 40
type-Command fired with Selenium-IDE
<tr>
<td>type</td>
<td>//[EMAIL PROTECTED]'w80']/input</td>
<td>9</td>
</tr>
After that the "9" is visible, after pressing manually the button there is only
ONE Request:
w7.activeControl w76
org.eclipse.swt.events.widgetSelected w76
w76.bounds.x 5
w76.bounds.y 59
w76.bounds.width 152
w76.bounds.height 25
w1.focusControl w76
uiRoot w1
requestCounter 54
and as you can see there is no w80.text in the request and so the new
Information says "The text you entered: 12" which means the old value is not
changed.
Is there a javascript-function which I could call to say "do the changed value
in the next request"?
There is a strange behaviour when "typeKeys"-Selenium-Command follows direct
after "type"
Then it works for Selenium IDE but not for Selenium-RC --> Which Versions did
you use (Selenium IDE or Selenium RC?) Do you use some userextensions (e.g. the
Qooxdoo Simular- Userextension)? And especially which browser/version and OS do
you use?
Michael
-------- Original-Nachricht --------
> Datum: Fri, 07 Nov 2008 12:36:22 +0100
> Von: Christian Schmidt <[EMAIL PROTECTED]>
> An: qooxdoo Development <[email protected]>
> Betreff: Re: [qooxdoo-devel] qxType, change a textbox
> Hi Michael,
>
> I have tried a small demo with RAP 1.1.1.20080917-1625 and I have no
> problems with it. I have extended the "Hello World" demo from RAP with
> a text field and a button. When I use selenium to set a text in the text
> field:
>
> <tr>
> <td>type</td>
> <td>//[EMAIL PROTECTED]'text']</td>
> <td>new text value</td>
> </tr>
>
> The text is set in the browser (qooxdoo) and when I manually click on
> the button. The RAP code:
>
> defaultButton.addSelectionListener(new SelectionAdapter() {
> public void widgetSelected(final SelectionEvent event) {
> String message = "The text You entered: " + text.getText();
> MessageDialog.openInformation(parent.getShell(), "Information",
> message);
> }
> });
>
> shows a new dialog with the "The text You entered: new text value" text.
> So the text value property is in sync with RAP and qooxdoo.
>
> Can you send more informations, perhaps the code too have a look?
>
> Chris
>
> Michael Willig schrieb:
> > I've been trying (with no success) to interact with RAP(Version 1.1.1,
> it contains Qooxdoo (perhaps version 0.7.3)) textboxes with selenium (also
> with qooxdoo extension), for testing automation purposes.(Browser I have
> tried Firefox 2 and 3)
> > I'm using the selenium commands: type, typeKeys, keyPress
> > type and typeKeys show the value changing (visually) in the field, but
> when some code accesses the text field (in the RAP level), it remains
> unchanged (text.getText() in Java im RAP-Controls-Demo inside class
> Button-Tab.java :
> > defaultButton.addSelectionListener( new SelectionAdapter() {
> > public void widgetSelected( final SelectionEvent event ) {
> > String message = "The text You entered: " + text.getText();
> > MessageDialog.openInformation( group.getShell(),
> > "Information",
> > message );
> > }
> > } );
> > )
> >
> > I've tried (with selenium) to replicate every event in the input field,
> but with no success (again the value changes in the input field, but the
> upper-level widget at RAP level remains unchanged):
> > <tr>
> > <td>fireEvent</td>
> > <td>//[EMAIL PROTECTED]'text']</td>
> > <td>onChange</td>
> > </tr>
> > <tr>
> > <td>fireEvent</td>
> > <td>//[EMAIL PROTECTED]'text']</td>
> > <td>change</td>
> > </tr>
> > <tr>
> > <td>fireEvent</td>
> > <td>//[EMAIL PROTECTED]'text']</td>
> > <td>Change</td>
> > </tr>
> > <tr>
> > <td>fireEvent</td>
> > <td>//[EMAIL PROTECTED]'text']</td>
> > <td>blur</td>
> > </tr>
> > <tr>
> > <td>fireEvent</td>
> > <td>//[EMAIL PROTECTED]'text']</td>
> > <td>onblur</td>
> > </tr>
> > <tr>
> > <td>fireEvent</td>
> > <td>//[EMAIL PROTECTED]'text']</td>
> > <td>textchange</td>
> > </tr>
> > <tr>
> > <td>fireEvent</td>
> > <td>//[EMAIL PROTECTED]'text']</td>
> > <td>ontextchange</td>
> > </tr>
> > <tr>
> > <td>fireEvent</td>
> > <td>//[EMAIL PROTECTED]'text']</td>
> > <td>changeValue</td>
> > </tr>
> > <tr>
> > <td>fireEvent</td>
> > <td>//[EMAIL PROTECTED]'text']</td>
> > <td>onchangevalue</td>
> > </tr>
> > <tr>
> > <td>fireEvent</td>
> > <td>//[EMAIL PROTECTED]'text']</td>
> > <td>_onchange</td>
> > </tr>
> > <tr>
> > <td>fireEvent</td>
> > <td>//[EMAIL PROTECTED]'text']</td>
> > <td>_change</td>
> > </tr>
> > <tr>
> > <td>fireEvent</td>
> > <td>//[EMAIL PROTECTED]'text']</td>
> > <td>_blur</td>
> > </tr>
> > <tr>
> > <td>fireEvent</td>
> > <td>//[EMAIL PROTECTED]'text']</td>
> > <td>_onblur</td>
> > </tr>
> > <tr>
> > <td>fireEvent</td>
> > <td>//[EMAIL PROTECTED]'text']</td>
> > <td>_textchange</td>
> > </tr>
> > <tr>
> > <td>fireEvent</td>
> > <td>//[EMAIL PROTECTED]'text']</td>
> > <td>_ontextchange</td>
> > </tr>
> > <tr>
> > <td>fireEvent</td>
> > <td>//[EMAIL PROTECTED]'text']</td>
> > <td>_changevalue</td>
> > </tr>
> > <tr>
> > <td>fireEvent</td>
> > <td>//[EMAIL PROTECTED]'text']</td>
> > <td>_onchangevalue</td>
> > </tr>
> > <tr>
> > <td>fireEvent</td>
> > <td>//[EMAIL PROTECTED]'text']</td>
> > <td>keyinput</td>
> > </tr>
> > <tr>
> > <td>fireEvent</td>
> > <td>//[EMAIL PROTECTED]'text']</td>
> > <td>focus</td>
> > </tr>
> > <tr>
> > <td>fireEvent</td>
> > <td>//[EMAIL PROTECTED]'text']</td>
> > <td>focusLost</td>
> > </tr>
> >
> >
> > I need something like qxClick in Simulator-Project but for input text in
> Textfields. I tried to write my own qxType but also with no success.
> >
> > Any idea?
> >
> > Michael
> >
> >
> >
> >
> -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> > Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the
> world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > qooxdoo-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >
>
>
> --
> Christian Schmidt
> Software Engineer
> Core Development :: Web Technologies
>
> 1&1 Internet AG
> Ernst-Frey-Str. 9
> 76135 Karlsruhe, Germany
> http://www.1und1.de
>
> Amtsgericht Montabaur / HRB 6484
>
> Vorst?§nde: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas
> Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver
> Mauss, Jan Oetjen
>
> Aufsichtsratsvorsitzender: Michael Scheeren
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
--
Michael Willig
Weidmannstra?üe 14
04315 Leipzig
Tel.: +49 341 30 48 64 9
Handy: +49 179 6732641
Fax: +49 121 20 22 87 46
E-Mail: [EMAIL PROTECTED]
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel