[Grok-dev] Help on functional doctest for List component

Christian Klinger cklinger at novareto.de
Thu Oct 8 10:05:22 EDT 2009


Hi Kris:

can you show me the html of your form before you
try to get the controls

 >>> print browser.contents

With the help of this contents i can show you the how
you can get your control. I think...

Christian
> Dear,
> 
>  
> 
> I’m having a problem with writing a functional doctest for a List 
> control item.
> 
>  
> 
> How can I make a selection for the “to” selection box? The List 
> component is displayed in a browser as several widgets (two selection 
> boxes and four buttons). Because javascript code is behind the buttons, 
> it is impossible to simulate a click on one of those four buttons.
> 
>  
> 
> Functional doctest should look like this:
> 
>    >>> 
> browser.getControl(name=’form.data_types.from’).getControl(‘Item’).selected 
> = True
> 
>   >>> Here I want to simulate the onclick event of the “ ->” button next 
> to the selection so it moves to the “from” box, but how?
> 
>  
> 
> Or is there another way to make the selection for the “from” box?
> 
>  
> 
> Best regards,
> 
>  
> 
> *Kris Degryse*
> *R&D Test Engineer*
> 
>  
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> https://mail.zope.org/mailman/listinfo/grok-dev



More information about the Grok-dev mailing list