You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Roberto Fasciolo <ro...@eget.fi> on 2008/01/29 19:53:50 UTC
Testing ModalWindows with Selenium
Hi all,
I'm trying testing an application using modal windows with selenium but it
seems I can't find a good way.
Has someone ever done something like that?
Basically, my problem is that I can access the ModalWindow using:
selenium.selectWindow("modal-dialog-pagemap");
but I can't verify if the window has been fully loaded or not, I've tried
with:
selenium.waitForPopUp("modal-dialog-pagemap", "30000");
but it fails all the time with exception message "Window not found".
Thanks in advance,
-Roberto
--
View this message in context: http://www.nabble.com/Testing-ModalWindows-with-Selenium-tp15166572p15166572.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Passing list of POJOs to AutoCompleteTextField?
Posted by Alan Romaniuc <a....@gmail.com>.
Hi
I ve read this discussion before (AutoComplete returning a list of
POJOs) and just a silly question: Shouldn't it be a new component? I
mean, if a dev wants a really text box that suggests a autocomplete,
but not enforce it, how would he use your component ?
A new component, like "TextFilterComboBox", would not be better?
Looking forward....
On Feb 6, 2008 10:53 PM, Sam Barnum <sa...@360works.com> wrote:
> I've committed a ticket for this, should have mentioned it here:
>
> https://issues.apache.org/jira/browse/WICKET-1324
>
> -sam
>
>
> On Feb 6, 2008, at 2:47 PM, Michael Mehrle wrote:
>
> > I would be happy to - what is the URL for this? (first time - new
> > contributor).
> >
> > In that context - I recently grepped through the Wicket source and
> > noticed that all the javascript event calls (onchange, onclick, etc.)
> > are all in the code as plain strings, which is bad practice. Thus I
> > wrote a *JavaScriptUtil* class that has String constants like CHANGE,
> > BLUR, DRAG_DROP, etc. (and can be statically imported jdk1.5
> > style). The
> > class also includes Javadoc that describes each event in detail. I
> > thought that this might be a little contribution to Wicket if you want
> > it. Let me know and I can submit the source (again, would need the URL
> > and procedure).
> >
> > Thanks,
> >
> > Michael
> >
> > -----Original Message-----
> > From: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> > Sent: Tuesday, February 05, 2008 5:31 PM
> > To: users@wicket.apache.org
> > Subject: Re: Passing list of POJOs to AutoCompleteTextField?
> >
> > please add an rfe into jira for this.
> >
> > -igor
> >
> >
> > On Feb 5, 2008 4:38 PM, Michael Mehrle <mi...@ask.com> wrote:
> >> That's exactly what I wound up doing. I wrote my custom renderer that
> >> grabs the name field of my POJO for rendering. Of course that is what
> >> I'm getting back from getModelObjectAsString(). It's a work-around
> >> and
> > I
> >> was hoping for a more elegant way of doing this...
> >>
> >> Michael
> >>
> >>
> >> -----Original Message-----
> >> From: Sam Barnum [mailto:sam@360works.com]
> >> Sent: Tuesday, February 05, 2008 4:01 PM
> >> To: users@wicket.apache.org
> >> Subject: Re: Passing list of POJOs to AutoCompleteTextField?
> >>
> >> I don't think it is, the getMmodelObject() returns the selected
> >> String. I've gotten around this by saving the last query string sent
> >> via AJAX. When the user makes a selection, I iterate over the
> >> options for that query string one more time, and take the POJO whose
> >> rendered string matches the user-selected text.
> >>
> >> I'm probably missing something obvious, but I don't think
> >> getModelObject() is it...
> >>
> >>
> >>
> >>
> >> --
> >> Sam Barnum
> >> 360 Works
> >> http://www.360works.com
> >> 415.865.0952
> >>
> >>
> >>
> >> On Feb 5, 2008, at 2:12 PM, Igor Vaynberg wrote:
> >>
> >>> shouldnt the pojo be availble from getmodelobject()?
> >>>
> >>> -igor
> >>>
> >>>
> >>> On Jan 29, 2008 11:55 AM, Michael Mehrle <mi...@ask.com>
> >>> wrote:
> >>>> I could - if it was a simple matter of extracting the strings from
> >>>> the
> >>>> POJOs. Problem is that, once an option is selected, I need the
> >>>> underlying POJOs to become the model for the rest of the form. Yes,
> >>>> there's probably a way to hack this, but I would prefer to do this
> >>>> in a
> >>>> clean fashion.
> >>>>
> >>>> I already got the custom renderer working, so I'm making progress.
> >>>> Task
> >>>> #2 now is to grab the underlying POJO after selecting it and
> > populate
> >>>> the remainder of the form. This seems to be the tough part...
> >>>> Again, any
> >>>> help would be appreciated.
> >>>>
> >>>> Thanks!!
> >>>>
> >>>> Michael
> >>>>
> >>>>
> >>>> -----Original Message-----
> >>>> From: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> >>>> Sent: Tuesday, January 29, 2008 11:47 AM
> >>>> To: users@wicket.apache.org
> >>>> Subject: Re: Passing list of POJOs to AutoCompleteTextField?
> >>>>
> >>>> can you not create an iterator adapter that takes an iterator of
> >>>> pojos
> >>>> and translates the pojo to some string?
> >>>>
> >>>> -igor
> >>>>
> >>>>
> >>>> On Jan 29, 2008 11:14 AM, Michael Mehrle <mi...@ask.com>
> >>>> wrote:
> >>>>> I have a working test page containing an AutoCompleteTextField.
> > Thus
> >>>> far
> >>>>> the data feeding it has been an Iterator of strings which is being
> >>>>> passed to its overridden getChoices method. So far so good.
> >>>>>
> >>>>> What I need to do now is to pass in an Iterator of POJOs instead
> > and
> >>>>> have the AutoCompleteTextField render the 'name' field inside
> >>>>> each of
> >>>>> those beans. After some digging in the Wicket source I suspect
> >>>>> that I
> >>>>> need to create a custom renderer that does this - am I on the
> > right
> >>>>> track here or would you guys suggest a different approach?
> >>>>>
> >>>>> Another challenge will be to populate other form fields in the
> > page
> >>>>> after selecting an option from the AutoCompleteTextField. By
> >>>>> selecting
> >>>>> an option in the dropdown I am basically selecting an entire POJO,
> >>>> which
> >>>>> is supposed to be used as the model for the other remaining
> > fields.
> >>>> For
> >>>>> instance, the POJO will contain address, zip, phone, etc. fields
> > and
> >>>> by
> >>>>> selecting the appropriate name in the AutoCompleteTextField it
> >>>> populates
> >>>>> all other fields with the remaining data in the underlying POJO.
> >>>>> Hope
> >>>>> this makes sense - I think I have an idea of how to implement
> > this,
> >>>> but
> >>>>> would appreciate any tips/insights.
> >>>>>
> >>>>> Thanks!!
> >>>>>
> >>>>> Michael
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> > --------------------------------------------------------------------
> >>
> >>>>> -
> >>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>>>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>>>
> >>>>>
> >>>>
> >>>>
> > ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>>
> >>>>
> >>>>
> > ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>>
> >>>>
> >>>
> >>>
> > ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >>
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Alan R.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Passing list of POJOs to AutoCompleteTextField?
Posted by Sam Barnum <sa...@360works.com>.
I've committed a ticket for this, should have mentioned it here:
https://issues.apache.org/jira/browse/WICKET-1324
-sam
On Feb 6, 2008, at 2:47 PM, Michael Mehrle wrote:
> I would be happy to - what is the URL for this? (first time - new
> contributor).
>
> In that context - I recently grepped through the Wicket source and
> noticed that all the javascript event calls (onchange, onclick, etc.)
> are all in the code as plain strings, which is bad practice. Thus I
> wrote a *JavaScriptUtil* class that has String constants like CHANGE,
> BLUR, DRAG_DROP, etc. (and can be statically imported jdk1.5
> style). The
> class also includes Javadoc that describes each event in detail. I
> thought that this might be a little contribution to Wicket if you want
> it. Let me know and I can submit the source (again, would need the URL
> and procedure).
>
> Thanks,
>
> Michael
>
> -----Original Message-----
> From: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> Sent: Tuesday, February 05, 2008 5:31 PM
> To: users@wicket.apache.org
> Subject: Re: Passing list of POJOs to AutoCompleteTextField?
>
> please add an rfe into jira for this.
>
> -igor
>
>
> On Feb 5, 2008 4:38 PM, Michael Mehrle <mi...@ask.com> wrote:
>> That's exactly what I wound up doing. I wrote my custom renderer that
>> grabs the name field of my POJO for rendering. Of course that is what
>> I'm getting back from getModelObjectAsString(). It's a work-around
>> and
> I
>> was hoping for a more elegant way of doing this...
>>
>> Michael
>>
>>
>> -----Original Message-----
>> From: Sam Barnum [mailto:sam@360works.com]
>> Sent: Tuesday, February 05, 2008 4:01 PM
>> To: users@wicket.apache.org
>> Subject: Re: Passing list of POJOs to AutoCompleteTextField?
>>
>> I don't think it is, the getMmodelObject() returns the selected
>> String. I've gotten around this by saving the last query string sent
>> via AJAX. When the user makes a selection, I iterate over the
>> options for that query string one more time, and take the POJO whose
>> rendered string matches the user-selected text.
>>
>> I'm probably missing something obvious, but I don't think
>> getModelObject() is it...
>>
>>
>>
>>
>> --
>> Sam Barnum
>> 360 Works
>> http://www.360works.com
>> 415.865.0952
>>
>>
>>
>> On Feb 5, 2008, at 2:12 PM, Igor Vaynberg wrote:
>>
>>> shouldnt the pojo be availble from getmodelobject()?
>>>
>>> -igor
>>>
>>>
>>> On Jan 29, 2008 11:55 AM, Michael Mehrle <mi...@ask.com>
>>> wrote:
>>>> I could - if it was a simple matter of extracting the strings from
>>>> the
>>>> POJOs. Problem is that, once an option is selected, I need the
>>>> underlying POJOs to become the model for the rest of the form. Yes,
>>>> there's probably a way to hack this, but I would prefer to do this
>>>> in a
>>>> clean fashion.
>>>>
>>>> I already got the custom renderer working, so I'm making progress.
>>>> Task
>>>> #2 now is to grab the underlying POJO after selecting it and
> populate
>>>> the remainder of the form. This seems to be the tough part...
>>>> Again, any
>>>> help would be appreciated.
>>>>
>>>> Thanks!!
>>>>
>>>> Michael
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
>>>> Sent: Tuesday, January 29, 2008 11:47 AM
>>>> To: users@wicket.apache.org
>>>> Subject: Re: Passing list of POJOs to AutoCompleteTextField?
>>>>
>>>> can you not create an iterator adapter that takes an iterator of
>>>> pojos
>>>> and translates the pojo to some string?
>>>>
>>>> -igor
>>>>
>>>>
>>>> On Jan 29, 2008 11:14 AM, Michael Mehrle <mi...@ask.com>
>>>> wrote:
>>>>> I have a working test page containing an AutoCompleteTextField.
> Thus
>>>> far
>>>>> the data feeding it has been an Iterator of strings which is being
>>>>> passed to its overridden getChoices method. So far so good.
>>>>>
>>>>> What I need to do now is to pass in an Iterator of POJOs instead
> and
>>>>> have the AutoCompleteTextField render the 'name' field inside
>>>>> each of
>>>>> those beans. After some digging in the Wicket source I suspect
>>>>> that I
>>>>> need to create a custom renderer that does this - am I on the
> right
>>>>> track here or would you guys suggest a different approach?
>>>>>
>>>>> Another challenge will be to populate other form fields in the
> page
>>>>> after selecting an option from the AutoCompleteTextField. By
>>>>> selecting
>>>>> an option in the dropdown I am basically selecting an entire POJO,
>>>> which
>>>>> is supposed to be used as the model for the other remaining
> fields.
>>>> For
>>>>> instance, the POJO will contain address, zip, phone, etc. fields
> and
>>>> by
>>>>> selecting the appropriate name in the AutoCompleteTextField it
>>>> populates
>>>>> all other fields with the remaining data in the underlying POJO.
>>>>> Hope
>>>>> this makes sense - I think I have an idea of how to implement
> this,
>>>> but
>>>>> would appreciate any tips/insights.
>>>>>
>>>>> Thanks!!
>>>>>
>>>>> Michael
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
> --------------------------------------------------------------------
>>
>>>>> -
>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>
>>>>>
>>>>
>>>>
> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>>
> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>
>>>
> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>>
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: Passing list of POJOs to AutoCompleteTextField?
Posted by Michael Mehrle <mi...@ask.com>.
I would be happy to - what is the URL for this? (first time - new
contributor).
In that context - I recently grepped through the Wicket source and
noticed that all the javascript event calls (onchange, onclick, etc.)
are all in the code as plain strings, which is bad practice. Thus I
wrote a *JavaScriptUtil* class that has String constants like CHANGE,
BLUR, DRAG_DROP, etc. (and can be statically imported jdk1.5 style). The
class also includes Javadoc that describes each event in detail. I
thought that this might be a little contribution to Wicket if you want
it. Let me know and I can submit the source (again, would need the URL
and procedure).
Thanks,
Michael
-----Original Message-----
From: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
Sent: Tuesday, February 05, 2008 5:31 PM
To: users@wicket.apache.org
Subject: Re: Passing list of POJOs to AutoCompleteTextField?
please add an rfe into jira for this.
-igor
On Feb 5, 2008 4:38 PM, Michael Mehrle <mi...@ask.com> wrote:
> That's exactly what I wound up doing. I wrote my custom renderer that
> grabs the name field of my POJO for rendering. Of course that is what
> I'm getting back from getModelObjectAsString(). It's a work-around and
I
> was hoping for a more elegant way of doing this...
>
> Michael
>
>
> -----Original Message-----
> From: Sam Barnum [mailto:sam@360works.com]
> Sent: Tuesday, February 05, 2008 4:01 PM
> To: users@wicket.apache.org
> Subject: Re: Passing list of POJOs to AutoCompleteTextField?
>
> I don't think it is, the getMmodelObject() returns the selected
> String. I've gotten around this by saving the last query string sent
> via AJAX. When the user makes a selection, I iterate over the
> options for that query string one more time, and take the POJO whose
> rendered string matches the user-selected text.
>
> I'm probably missing something obvious, but I don't think
> getModelObject() is it...
>
>
>
>
> --
> Sam Barnum
> 360 Works
> http://www.360works.com
> 415.865.0952
>
>
>
> On Feb 5, 2008, at 2:12 PM, Igor Vaynberg wrote:
>
> > shouldnt the pojo be availble from getmodelobject()?
> >
> > -igor
> >
> >
> > On Jan 29, 2008 11:55 AM, Michael Mehrle <mi...@ask.com>
> > wrote:
> >> I could - if it was a simple matter of extracting the strings from
> >> the
> >> POJOs. Problem is that, once an option is selected, I need the
> >> underlying POJOs to become the model for the rest of the form. Yes,
> >> there's probably a way to hack this, but I would prefer to do this
> >> in a
> >> clean fashion.
> >>
> >> I already got the custom renderer working, so I'm making progress.
> >> Task
> >> #2 now is to grab the underlying POJO after selecting it and
populate
> >> the remainder of the form. This seems to be the tough part...
> >> Again, any
> >> help would be appreciated.
> >>
> >> Thanks!!
> >>
> >> Michael
> >>
> >>
> >> -----Original Message-----
> >> From: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> >> Sent: Tuesday, January 29, 2008 11:47 AM
> >> To: users@wicket.apache.org
> >> Subject: Re: Passing list of POJOs to AutoCompleteTextField?
> >>
> >> can you not create an iterator adapter that takes an iterator of
> >> pojos
> >> and translates the pojo to some string?
> >>
> >> -igor
> >>
> >>
> >> On Jan 29, 2008 11:14 AM, Michael Mehrle <mi...@ask.com>
> >> wrote:
> >>> I have a working test page containing an AutoCompleteTextField.
Thus
> >> far
> >>> the data feeding it has been an Iterator of strings which is being
> >>> passed to its overridden getChoices method. So far so good.
> >>>
> >>> What I need to do now is to pass in an Iterator of POJOs instead
and
> >>> have the AutoCompleteTextField render the 'name' field inside
> >>> each of
> >>> those beans. After some digging in the Wicket source I suspect
> >>> that I
> >>> need to create a custom renderer that does this - am I on the
right
> >>> track here or would you guys suggest a different approach?
> >>>
> >>> Another challenge will be to populate other form fields in the
page
> >>> after selecting an option from the AutoCompleteTextField. By
> >>> selecting
> >>> an option in the dropdown I am basically selecting an entire POJO,
> >> which
> >>> is supposed to be used as the model for the other remaining
fields.
> >> For
> >>> instance, the POJO will contain address, zip, phone, etc. fields
and
> >> by
> >>> selecting the appropriate name in the AutoCompleteTextField it
> >> populates
> >>> all other fields with the remaining data in the underlying POJO.
> >>> Hope
> >>> this makes sense - I think I have an idea of how to implement
this,
> >> but
> >>> would appreciate any tips/insights.
> >>>
> >>> Thanks!!
> >>>
> >>> Michael
> >>>
> >>>
> >>>
> >>>
> >>>
--------------------------------------------------------------------
>
> >>> -
> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>
> >>>
> >>
> >>
---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >>
---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Passing list of POJOs to AutoCompleteTextField?
Posted by Igor Vaynberg <ig...@gmail.com>.
please add an rfe into jira for this.
-igor
On Feb 5, 2008 4:38 PM, Michael Mehrle <mi...@ask.com> wrote:
> That's exactly what I wound up doing. I wrote my custom renderer that
> grabs the name field of my POJO for rendering. Of course that is what
> I'm getting back from getModelObjectAsString(). It's a work-around and I
> was hoping for a more elegant way of doing this...
>
> Michael
>
>
> -----Original Message-----
> From: Sam Barnum [mailto:sam@360works.com]
> Sent: Tuesday, February 05, 2008 4:01 PM
> To: users@wicket.apache.org
> Subject: Re: Passing list of POJOs to AutoCompleteTextField?
>
> I don't think it is, the getMmodelObject() returns the selected
> String. I've gotten around this by saving the last query string sent
> via AJAX. When the user makes a selection, I iterate over the
> options for that query string one more time, and take the POJO whose
> rendered string matches the user-selected text.
>
> I'm probably missing something obvious, but I don't think
> getModelObject() is it...
>
>
>
>
> --
> Sam Barnum
> 360 Works
> http://www.360works.com
> 415.865.0952
>
>
>
> On Feb 5, 2008, at 2:12 PM, Igor Vaynberg wrote:
>
> > shouldnt the pojo be availble from getmodelobject()?
> >
> > -igor
> >
> >
> > On Jan 29, 2008 11:55 AM, Michael Mehrle <mi...@ask.com>
> > wrote:
> >> I could - if it was a simple matter of extracting the strings from
> >> the
> >> POJOs. Problem is that, once an option is selected, I need the
> >> underlying POJOs to become the model for the rest of the form. Yes,
> >> there's probably a way to hack this, but I would prefer to do this
> >> in a
> >> clean fashion.
> >>
> >> I already got the custom renderer working, so I'm making progress.
> >> Task
> >> #2 now is to grab the underlying POJO after selecting it and populate
> >> the remainder of the form. This seems to be the tough part...
> >> Again, any
> >> help would be appreciated.
> >>
> >> Thanks!!
> >>
> >> Michael
> >>
> >>
> >> -----Original Message-----
> >> From: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> >> Sent: Tuesday, January 29, 2008 11:47 AM
> >> To: users@wicket.apache.org
> >> Subject: Re: Passing list of POJOs to AutoCompleteTextField?
> >>
> >> can you not create an iterator adapter that takes an iterator of
> >> pojos
> >> and translates the pojo to some string?
> >>
> >> -igor
> >>
> >>
> >> On Jan 29, 2008 11:14 AM, Michael Mehrle <mi...@ask.com>
> >> wrote:
> >>> I have a working test page containing an AutoCompleteTextField. Thus
> >> far
> >>> the data feeding it has been an Iterator of strings which is being
> >>> passed to its overridden getChoices method. So far so good.
> >>>
> >>> What I need to do now is to pass in an Iterator of POJOs instead and
> >>> have the AutoCompleteTextField render the 'name' field inside
> >>> each of
> >>> those beans. After some digging in the Wicket source I suspect
> >>> that I
> >>> need to create a custom renderer that does this - am I on the right
> >>> track here or would you guys suggest a different approach?
> >>>
> >>> Another challenge will be to populate other form fields in the page
> >>> after selecting an option from the AutoCompleteTextField. By
> >>> selecting
> >>> an option in the dropdown I am basically selecting an entire POJO,
> >> which
> >>> is supposed to be used as the model for the other remaining fields.
> >> For
> >>> instance, the POJO will contain address, zip, phone, etc. fields and
> >> by
> >>> selecting the appropriate name in the AutoCompleteTextField it
> >> populates
> >>> all other fields with the remaining data in the underlying POJO.
> >>> Hope
> >>> this makes sense - I think I have an idea of how to implement this,
> >> but
> >>> would appreciate any tips/insights.
> >>>
> >>> Thanks!!
> >>>
> >>> Michael
> >>>
> >>>
> >>>
> >>>
> >>> --------------------------------------------------------------------
>
> >>> -
> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: Passing list of POJOs to AutoCompleteTextField?
Posted by Michael Mehrle <mi...@ask.com>.
That's exactly what I wound up doing. I wrote my custom renderer that
grabs the name field of my POJO for rendering. Of course that is what
I'm getting back from getModelObjectAsString(). It's a work-around and I
was hoping for a more elegant way of doing this...
Michael
-----Original Message-----
From: Sam Barnum [mailto:sam@360works.com]
Sent: Tuesday, February 05, 2008 4:01 PM
To: users@wicket.apache.org
Subject: Re: Passing list of POJOs to AutoCompleteTextField?
I don't think it is, the getMmodelObject() returns the selected
String. I've gotten around this by saving the last query string sent
via AJAX. When the user makes a selection, I iterate over the
options for that query string one more time, and take the POJO whose
rendered string matches the user-selected text.
I'm probably missing something obvious, but I don't think
getModelObject() is it...
--
Sam Barnum
360 Works
http://www.360works.com
415.865.0952
On Feb 5, 2008, at 2:12 PM, Igor Vaynberg wrote:
> shouldnt the pojo be availble from getmodelobject()?
>
> -igor
>
>
> On Jan 29, 2008 11:55 AM, Michael Mehrle <mi...@ask.com>
> wrote:
>> I could - if it was a simple matter of extracting the strings from
>> the
>> POJOs. Problem is that, once an option is selected, I need the
>> underlying POJOs to become the model for the rest of the form. Yes,
>> there's probably a way to hack this, but I would prefer to do this
>> in a
>> clean fashion.
>>
>> I already got the custom renderer working, so I'm making progress.
>> Task
>> #2 now is to grab the underlying POJO after selecting it and populate
>> the remainder of the form. This seems to be the tough part...
>> Again, any
>> help would be appreciated.
>>
>> Thanks!!
>>
>> Michael
>>
>>
>> -----Original Message-----
>> From: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
>> Sent: Tuesday, January 29, 2008 11:47 AM
>> To: users@wicket.apache.org
>> Subject: Re: Passing list of POJOs to AutoCompleteTextField?
>>
>> can you not create an iterator adapter that takes an iterator of
>> pojos
>> and translates the pojo to some string?
>>
>> -igor
>>
>>
>> On Jan 29, 2008 11:14 AM, Michael Mehrle <mi...@ask.com>
>> wrote:
>>> I have a working test page containing an AutoCompleteTextField. Thus
>> far
>>> the data feeding it has been an Iterator of strings which is being
>>> passed to its overridden getChoices method. So far so good.
>>>
>>> What I need to do now is to pass in an Iterator of POJOs instead and
>>> have the AutoCompleteTextField render the 'name' field inside
>>> each of
>>> those beans. After some digging in the Wicket source I suspect
>>> that I
>>> need to create a custom renderer that does this - am I on the right
>>> track here or would you guys suggest a different approach?
>>>
>>> Another challenge will be to populate other form fields in the page
>>> after selecting an option from the AutoCompleteTextField. By
>>> selecting
>>> an option in the dropdown I am basically selecting an entire POJO,
>> which
>>> is supposed to be used as the model for the other remaining fields.
>> For
>>> instance, the POJO will contain address, zip, phone, etc. fields and
>> by
>>> selecting the appropriate name in the AutoCompleteTextField it
>> populates
>>> all other fields with the remaining data in the underlying POJO.
>>> Hope
>>> this makes sense - I think I have an idea of how to implement this,
>> but
>>> would appreciate any tips/insights.
>>>
>>> Thanks!!
>>>
>>> Michael
>>>
>>>
>>>
>>>
>>> --------------------------------------------------------------------
>>> -
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Passing list of POJOs to AutoCompleteTextField?
Posted by Sam Barnum <sa...@360works.com>.
I don't think it is, the getMmodelObject() returns the selected
String. I've gotten around this by saving the last query string sent
via AJAX. When the user makes a selection, I iterate over the
options for that query string one more time, and take the POJO whose
rendered string matches the user-selected text.
I'm probably missing something obvious, but I don't think
getModelObject() is it...
--
Sam Barnum
360 Works
http://www.360works.com
415.865.0952
On Feb 5, 2008, at 2:12 PM, Igor Vaynberg wrote:
> shouldnt the pojo be availble from getmodelobject()?
>
> -igor
>
>
> On Jan 29, 2008 11:55 AM, Michael Mehrle <mi...@ask.com>
> wrote:
>> I could - if it was a simple matter of extracting the strings from
>> the
>> POJOs. Problem is that, once an option is selected, I need the
>> underlying POJOs to become the model for the rest of the form. Yes,
>> there's probably a way to hack this, but I would prefer to do this
>> in a
>> clean fashion.
>>
>> I already got the custom renderer working, so I'm making progress.
>> Task
>> #2 now is to grab the underlying POJO after selecting it and populate
>> the remainder of the form. This seems to be the tough part...
>> Again, any
>> help would be appreciated.
>>
>> Thanks!!
>>
>> Michael
>>
>>
>> -----Original Message-----
>> From: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
>> Sent: Tuesday, January 29, 2008 11:47 AM
>> To: users@wicket.apache.org
>> Subject: Re: Passing list of POJOs to AutoCompleteTextField?
>>
>> can you not create an iterator adapter that takes an iterator of
>> pojos
>> and translates the pojo to some string?
>>
>> -igor
>>
>>
>> On Jan 29, 2008 11:14 AM, Michael Mehrle <mi...@ask.com>
>> wrote:
>>> I have a working test page containing an AutoCompleteTextField. Thus
>> far
>>> the data feeding it has been an Iterator of strings which is being
>>> passed to its overridden getChoices method. So far so good.
>>>
>>> What I need to do now is to pass in an Iterator of POJOs instead and
>>> have the AutoCompleteTextField render the 'name' field inside
>>> each of
>>> those beans. After some digging in the Wicket source I suspect
>>> that I
>>> need to create a custom renderer that does this - am I on the right
>>> track here or would you guys suggest a different approach?
>>>
>>> Another challenge will be to populate other form fields in the page
>>> after selecting an option from the AutoCompleteTextField. By
>>> selecting
>>> an option in the dropdown I am basically selecting an entire POJO,
>> which
>>> is supposed to be used as the model for the other remaining fields.
>> For
>>> instance, the POJO will contain address, zip, phone, etc. fields and
>> by
>>> selecting the appropriate name in the AutoCompleteTextField it
>> populates
>>> all other fields with the remaining data in the underlying POJO.
>>> Hope
>>> this makes sense - I think I have an idea of how to implement this,
>> but
>>> would appreciate any tips/insights.
>>>
>>> Thanks!!
>>>
>>> Michael
>>>
>>>
>>>
>>>
>>> --------------------------------------------------------------------
>>> -
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
Re: Passing list of POJOs to AutoCompleteTextField?
Posted by Igor Vaynberg <ig...@gmail.com>.
shouldnt the pojo be availble from getmodelobject()?
-igor
On Jan 29, 2008 11:55 AM, Michael Mehrle <mi...@ask.com> wrote:
> I could - if it was a simple matter of extracting the strings from the
> POJOs. Problem is that, once an option is selected, I need the
> underlying POJOs to become the model for the rest of the form. Yes,
> there's probably a way to hack this, but I would prefer to do this in a
> clean fashion.
>
> I already got the custom renderer working, so I'm making progress. Task
> #2 now is to grab the underlying POJO after selecting it and populate
> the remainder of the form. This seems to be the tough part... Again, any
> help would be appreciated.
>
> Thanks!!
>
> Michael
>
>
> -----Original Message-----
> From: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> Sent: Tuesday, January 29, 2008 11:47 AM
> To: users@wicket.apache.org
> Subject: Re: Passing list of POJOs to AutoCompleteTextField?
>
> can you not create an iterator adapter that takes an iterator of pojos
> and translates the pojo to some string?
>
> -igor
>
>
> On Jan 29, 2008 11:14 AM, Michael Mehrle <mi...@ask.com> wrote:
> > I have a working test page containing an AutoCompleteTextField. Thus
> far
> > the data feeding it has been an Iterator of strings which is being
> > passed to its overridden getChoices method. So far so good.
> >
> > What I need to do now is to pass in an Iterator of POJOs instead and
> > have the AutoCompleteTextField render the 'name' field inside each of
> > those beans. After some digging in the Wicket source I suspect that I
> > need to create a custom renderer that does this - am I on the right
> > track here or would you guys suggest a different approach?
> >
> > Another challenge will be to populate other form fields in the page
> > after selecting an option from the AutoCompleteTextField. By selecting
> > an option in the dropdown I am basically selecting an entire POJO,
> which
> > is supposed to be used as the model for the other remaining fields.
> For
> > instance, the POJO will contain address, zip, phone, etc. fields and
> by
> > selecting the appropriate name in the AutoCompleteTextField it
> populates
> > all other fields with the remaining data in the underlying POJO. Hope
> > this makes sense - I think I have an idea of how to implement this,
> but
> > would appreciate any tips/insights.
> >
> > Thanks!!
> >
> > Michael
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: Passing list of POJOs to AutoCompleteTextField?
Posted by Michael Mehrle <mi...@ask.com>.
I could - if it was a simple matter of extracting the strings from the
POJOs. Problem is that, once an option is selected, I need the
underlying POJOs to become the model for the rest of the form. Yes,
there's probably a way to hack this, but I would prefer to do this in a
clean fashion.
I already got the custom renderer working, so I'm making progress. Task
#2 now is to grab the underlying POJO after selecting it and populate
the remainder of the form. This seems to be the tough part... Again, any
help would be appreciated.
Thanks!!
Michael
-----Original Message-----
From: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
Sent: Tuesday, January 29, 2008 11:47 AM
To: users@wicket.apache.org
Subject: Re: Passing list of POJOs to AutoCompleteTextField?
can you not create an iterator adapter that takes an iterator of pojos
and translates the pojo to some string?
-igor
On Jan 29, 2008 11:14 AM, Michael Mehrle <mi...@ask.com> wrote:
> I have a working test page containing an AutoCompleteTextField. Thus
far
> the data feeding it has been an Iterator of strings which is being
> passed to its overridden getChoices method. So far so good.
>
> What I need to do now is to pass in an Iterator of POJOs instead and
> have the AutoCompleteTextField render the 'name' field inside each of
> those beans. After some digging in the Wicket source I suspect that I
> need to create a custom renderer that does this - am I on the right
> track here or would you guys suggest a different approach?
>
> Another challenge will be to populate other form fields in the page
> after selecting an option from the AutoCompleteTextField. By selecting
> an option in the dropdown I am basically selecting an entire POJO,
which
> is supposed to be used as the model for the other remaining fields.
For
> instance, the POJO will contain address, zip, phone, etc. fields and
by
> selecting the appropriate name in the AutoCompleteTextField it
populates
> all other fields with the remaining data in the underlying POJO. Hope
> this makes sense - I think I have an idea of how to implement this,
but
> would appreciate any tips/insights.
>
> Thanks!!
>
> Michael
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Passing list of POJOs to AutoCompleteTextField?
Posted by Igor Vaynberg <ig...@gmail.com>.
can you not create an iterator adapter that takes an iterator of pojos
and translates the pojo to some string?
-igor
On Jan 29, 2008 11:14 AM, Michael Mehrle <mi...@ask.com> wrote:
> I have a working test page containing an AutoCompleteTextField. Thus far
> the data feeding it has been an Iterator of strings which is being
> passed to its overridden getChoices method. So far so good.
>
> What I need to do now is to pass in an Iterator of POJOs instead and
> have the AutoCompleteTextField render the 'name' field inside each of
> those beans. After some digging in the Wicket source I suspect that I
> need to create a custom renderer that does this - am I on the right
> track here or would you guys suggest a different approach?
>
> Another challenge will be to populate other form fields in the page
> after selecting an option from the AutoCompleteTextField. By selecting
> an option in the dropdown I am basically selecting an entire POJO, which
> is supposed to be used as the model for the other remaining fields. For
> instance, the POJO will contain address, zip, phone, etc. fields and by
> selecting the appropriate name in the AutoCompleteTextField it populates
> all other fields with the remaining data in the underlying POJO. Hope
> this makes sense - I think I have an idea of how to implement this, but
> would appreciate any tips/insights.
>
> Thanks!!
>
> Michael
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Passing list of POJOs to AutoCompleteTextField?
Posted by Michael Mehrle <mi...@ask.com>.
I have a working test page containing an AutoCompleteTextField. Thus far
the data feeding it has been an Iterator of strings which is being
passed to its overridden getChoices method. So far so good.
What I need to do now is to pass in an Iterator of POJOs instead and
have the AutoCompleteTextField render the 'name' field inside each of
those beans. After some digging in the Wicket source I suspect that I
need to create a custom renderer that does this - am I on the right
track here or would you guys suggest a different approach?
Another challenge will be to populate other form fields in the page
after selecting an option from the AutoCompleteTextField. By selecting
an option in the dropdown I am basically selecting an entire POJO, which
is supposed to be used as the model for the other remaining fields. For
instance, the POJO will contain address, zip, phone, etc. fields and by
selecting the appropriate name in the AutoCompleteTextField it populates
all other fields with the remaining data in the underlying POJO. Hope
this makes sense - I think I have an idea of how to implement this, but
would appreciate any tips/insights.
Thanks!!
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Testing ModalWindows with Selenium
Posted by Fernando Wermus <fe...@gmail.com>.
As you know, it is usual that wicket generates its own attributes ids at
random. This is a problem for using selenium because the best way to find a
tag it is through its id. That's way con can set up your app to generate an
extra id that would be always the same for cases such as Selenium. Here is
the code to set up an attribute called wicket:id which helps you to test
easily your app:
getDebugSettings().setOutputComponentPath(true);
When you set up your app in this way, you can get a wicket:path="some string
constant" to test better your app.
The problem with selenium that I found is that Selenium doesnt accept
attributes with namespaces. I think it is a problem from selenium. That's
way I ask Amit how he manages with selenium.
I filled up this Jira https://issues.apache.org/jira/browse/WICKET-2322 to
get an attribute without namespace. This same issue was resolved for wicket
1.4.r.X.
On Sat, Jun 20, 2009 at 8:37 PM, amit_vibhuti
<am...@rediffmail.com>wrote:
>
> Can you explain me in detail, what the wicket path you are talking about?
> --
> View this message in context:
> http://www.nabble.com/Testing-ModalWindows-with-Selenium-tp15166572p24131313.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Fernando Wermus.
www.linkedin.com/in/fernandowermus
Re: Testing ModalWindows with Selenium
Posted by amit_vibhuti <am...@rediffmail.com>.
Can you explain me in detail, what the wicket path you are talking about?
--
View this message in context: http://www.nabble.com/Testing-ModalWindows-with-Selenium-tp15166572p24131313.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Testing ModalWindows with Selenium
Posted by Fernando Wermus <fe...@gmail.com>.
Roberto,
I have an easier question here. How do you do with Selenium and
wicket:path attribute. Because I cant make selenium see this attributes. I
am using wicket 1.3.6
Thanks!
On Fri, Jun 19, 2009 at 3:00 PM, amit_vibhuti
<am...@rediffmail.com>wrote:
>
> Modal window hacked:)
>
> http://seleniumdeal.blogspot.com/2009/01/handling-modal-window-with-selenium.html
>
>
>
> Roberto Fasciolo wrote:
> >
> > Hi all,
> >
> > I'm trying testing an application using modal windows with selenium but
> it
> > seems I can't find a good way.
> > Has someone ever done something like that?
> >
> > Basically, my problem is that I can access the ModalWindow using:
> > selenium.selectWindow("modal-dialog-pagemap");
> >
> > but I can't verify if the window has been fully loaded or not, I've tried
> > with:
> > selenium.waitForPopUp("modal-dialog-pagemap", "30000");
> >
> > but it fails all the time with exception message "Window not found".
> >
> > Thanks in advance,
> > -Roberto
> >
>
> --
> View this message in context:
> http://www.nabble.com/Testing-ModalWindows-with-Selenium-tp15166572p24119439.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Fernando Wermus.
www.linkedin.com/in/fernandowermus
Re: Testing ModalWindows with Selenium
Posted by amit_vibhuti <am...@rediffmail.com>.
Modal window hacked:)
http://seleniumdeal.blogspot.com/2009/01/handling-modal-window-with-selenium.html
Roberto Fasciolo wrote:
>
> Hi all,
>
> I'm trying testing an application using modal windows with selenium but it
> seems I can't find a good way.
> Has someone ever done something like that?
>
> Basically, my problem is that I can access the ModalWindow using:
> selenium.selectWindow("modal-dialog-pagemap");
>
> but I can't verify if the window has been fully loaded or not, I've tried
> with:
> selenium.waitForPopUp("modal-dialog-pagemap", "30000");
>
> but it fails all the time with exception message "Window not found".
>
> Thanks in advance,
> -Roberto
>
--
View this message in context: http://www.nabble.com/Testing-ModalWindows-with-Selenium-tp15166572p24119439.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Testing ModalWindows with Selenium
Posted by Timo Rantalaiho <Ti...@ri.fi>.
On Tue, 29 Jan 2008, Roberto Fasciolo wrote:
> Basically, my problem is that I can access the ModalWindow using:
> selenium.selectWindow("modal-dialog-pagemap");
>
> but I can't verify if the window has been fully loaded or not, I've tried
> with:
> selenium.waitForPopUp("modal-dialog-pagemap", "30000");
>
> but it fails all the time with exception message "Window not found".
Hmm, aren't the ModalWindows Echo2-like Ajax constructions
instead of real popups?
Try waitForCondition with a suitable Javascript scriptlet.
Googling "ajax selenium testing" should bring some hints on
that, I think that in Grig Gheorghiu's blog there was
something handy on that a year or two ago.
Best wishes,
Timo
--
Timo Rantalaiho
Reaktor Innovations Oy <URL: http://www.ri.fi/ >
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org