Re: Testing ModalWindows with Selenium
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 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-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Fernando Wermus. www.linkedin.com/in/fernandowermus
Re: Testing ModalWindows with Selenium
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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Testing ModalWindows with Selenium
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 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", "3"); > > > > 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-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Fernando Wermus. www.linkedin.com/in/fernandowermus
Re: Testing ModalWindows with Selenium
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", "3"); > > 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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Testing ModalWindows with Selenium
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", "3"); > > 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 Oyhttp://www.ri.fi/ > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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", "3"); 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]