Michael,

for one thing, try to get the behaviour working without Selenium. You 
said you did all those things manually without effect, which is very 
strange. We should try to sort things out so all is fine *before* 
bringing Selenium back into the play. I think Christian, who knows a lot 
more about RAP than I do, will post to this thread and try to give you 
some hints what you might do.

Thomas

Michael Willig wrote:
> Dear Thomas,
>
> thanks for your answer. I have tried what you said: 
> two times:
>       <td>keyPress</td>
>       <td>//[EMAIL PROTECTED]'text']</td>
>       <td>74</td>
> (then "JJ" is visible in the textfield.) 
> Btw, do I need a Modification-Listener at my textfield (in Java)?
> After that I tried manually click and doubleclick in the textfield, on other 
> elements, pressing tab-Key, firing blur automatically: 
>       <td>fireEvent</td>
>       <td>//[EMAIL PROTECTED]'text']</td>
>       <td>blur</td>
>
> let the cursor move in Textfield (automatically and manually):
>       <td>setCursorPosition</td>
>       <td>//[EMAIL PROTECTED]'text']</td>
>       <td>0</td>
>
>       <td>setCursorPosition</td>
>       <td>//[EMAIL PROTECTED]'text']</td>
>       <td>1</td>
>
>       <td>setCursorPosition</td>
>       <td>//[EMAIL PROTECTED]'text']</td>
>       <td>-1</td>
>
> Between every step a new pressKey is called and also pressing the button to 
> pop-up the "You have entered:" after every step or after a block of steps it 
> remains without "JJ" --> getText doesnt't gives the value. 
> Any ideas?
>
> Michael
>
> -------- Original-Nachricht --------
>   
>> Datum: Thu, 06 Nov 2008 13:41:03 +0100
>> Von: thron7 <[EMAIL PROTECTED]>
>> An: qooxdoo Development <[email protected]>
>> Betreff: Re: [qooxdoo-devel] qxType, change a textbox
>>     
>
>   
>> Michael,
>>
>> as far as I'm aware of the qooxdoo property of the text field (the one 
>> holding the string value) is only updated after a blur event on the text 
>> field. I suppose the RAP widget will rely on the qooxdoo property, and 
>> will not be updated in turn. Try moving the focus to some other control 
>> after typing, and see what happens.
>>
>> Thomas
>>
>> Michael Willig wrote:
>>     
>>> 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
>>>
>>>
>>>   
>>>       
>> -------------------------------------------------------------------------
>> 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
>>     
>
>   

-------------------------------------------------------------------------
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

Reply via email to