|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Anyone using HtmlUnit with DWR?Hello,
I'm attempting to use HtmlUnit
on a new project. This is an existing code base written using the DWR
(Direct Web Remoting) AJAX enabling technology.
I read there is an upcoming
enhancement to make this kind of relationship easier, but I'm wondering if
anyone has successfully used HtmlUnit with DWR.
Also, is there a timeline for
when the new release will happen? I have the source code, but I'm hesitant
to pull files out of SVN without knowing which ones to pull or exactly how to
use them.
Thanks for any
assistance,
Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Htmlunit-user mailing list Htmlunit-user@... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
|
|
Re: Anyone using HtmlUnit with DWR?Hi David,
I don't use personally DWR but for 1 or 2 months I've tested the DWR demo from http://getahead.org/dwr/examples and only the last example was not working. I hope that we will be able to release this week or next week (I know, we have waited really too long). Marc.
|
|
|
Re: Anyone using HtmlUnit with DWR?Do you mean working with the new version including Ajax Manager or working with the currently released version? I'll try the demos with what I have. Thanks, Dave ________________ Dave Gable Bank of America Office: 704-387-7836 Cell: 704-618-3279 Mailcode: NC1-007-09-08 Email: david.gable@... -----Original Message----- From: htmlunit-user-bounces@... [mailto:htmlunit-user-bounces@...] On Behalf Of Marc Guillemot Sent: Tuesday, July 31, 2007 2:15 AM To: htmlunit-user@... Subject: Re: [Htmlunit-user] Anyone using HtmlUnit with DWR? Hi David, I don't use personally DWR but for 1 or 2 months I've tested the DWR demo from http://getahead.org/dwr/examples and only the last example was not working. I hope that we will be able to release this week or next week (I know, we have waited really too long). Marc. Gable, David wrote: > > Hello, > > I'm attempting to use HtmlUnit on a new project. This is an existing > code base written using the DWR (Direct Web Remoting) AJAX enabling > technology. > > I read there is an upcoming enhancement to make this kind of > relationship easier, but I'm wondering if anyone has successfully used > HtmlUnit with DWR. > > Also, is there a timeline for when the new release will happen? I > have the source code, but I'm hesitant to pull files out of SVN > without knowing which ones to pull or exactly how to use them. > > Thanks for any assistance, > > Dave > > > > ---------------------------------------------------------------------- > --- This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Htmlunit-user mailing list > Htmlunit-user@... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > -- View this message in context: http://www.nabble.com/Anyone-using-HtmlUnit-with-DWR--tf4178601.html#a11 918733 Sent from the HtmlUnit - General mailing list archive at Nabble.com. ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Htmlunit-user mailing list Htmlunit-user@... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Htmlunit-user mailing list Htmlunit-user@... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
|
|
Re: Anyone using HtmlUnit with DWR?This was at the beginning of April (see http://www.nabble.com/Re%3A-DWR-and-htmlunit-tf3536793.html#a9872448) therefore without AjaxManager. I don't remember if it was with HtmlUnit-1.11 or with the latest build at this date.
Marc.
|
|
|
Re: Anyone using HtmlUnit with DWR?Thanks for the info, I didn't catch that on my search. The only problem
I have is getting to the data once it is returned from DWR - I see the outgoing request and the response come back, but the returned data does not appear to be loaded into the page, and the ready state doesn't change. This is probably a failure in my understanding. As I said, I'll try out the demos to see if I can get them working. Thanks for all your help. Dave -----Original Message----- From: htmlunit-user-bounces@... [mailto:htmlunit-user-bounces@...] On Behalf Of Marc Guillemot Sent: Tuesday, July 31, 2007 9:10 AM To: htmlunit-user@... Subject: Re: [Htmlunit-user] Anyone using HtmlUnit with DWR? This was at the beginning of April (see http://www.nabble.com/Re%3A-DWR-and-htmlunit-tf3536793.html#a9872448) therefore without AjaxManager. I don't remember if it was with HtmlUnit-1.11 or with the latest build at this date. Marc. Gable, David wrote: > > > Do you mean working with the new version including Ajax Manager or > working with the currently released version? I'll try the demos with > what I have. > > Thanks, > > Dave > > -----Original Message----- > From: htmlunit-user-bounces@... > [mailto:htmlunit-user-bounces@...] On Behalf Of Marc > Guillemot > Sent: Tuesday, July 31, 2007 2:15 AM > To: htmlunit-user@... > Subject: Re: [Htmlunit-user] Anyone using HtmlUnit with DWR? > > > Hi David, > > I don't use personally DWR but for 1 or 2 months I've tested the DWR > demo from http://getahead.org/dwr/examples and only the last example > was not working. > > I hope that we will be able to release this week or next week (I know, > we have waited really too long). > > Marc. > > > Gable, David wrote: >> >> Hello, >> >> I'm attempting to use HtmlUnit on a new project. This is an existing >> code base written using the DWR (Direct Web Remoting) AJAX enabling >> technology. >> >> I read there is an upcoming enhancement to make this kind of >> relationship easier, but I'm wondering if anyone has successfully >> used > >> HtmlUnit with DWR. >> >> Also, is there a timeline for when the new release will happen? I >> have the source code, but I'm hesitant to pull files out of SVN >> without knowing which ones to pull or exactly how to use them. >> >> Thanks for any assistance, >> >> Dave >> >> >> >> --------------------------------------------------------------------- >> - >> --- This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a > browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Htmlunit-user mailing list >> Htmlunit-user@... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> >> > > -- > View this message in context: > http://www.nabble.com/Anyone-using-HtmlUnit-with-DWR--tf4178601.html#a > 11 > 918733 > Sent from the HtmlUnit - General mailing list archive at Nabble.com. > > > ---------------------------------------------------------------------- > -- > - > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Htmlunit-user mailing list > Htmlunit-user@... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > ---------------------------------------------------------------------- > --- This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Htmlunit-user mailing list > Htmlunit-user@... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > -- View this message in context: http://www.nabble.com/Anyone-using-HtmlUnit-with-DWR--tf4178601.html#a11 923731 Sent from the HtmlUnit - General mailing list archive at Nabble.com. ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Htmlunit-user mailing list Htmlunit-user@... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Htmlunit-user mailing list Htmlunit-user@... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
|
|
Re: Anyone using HtmlUnit with DWR?Gable, David wrote:
> ... > This is probably a failure in my understanding. As I said, I'll try out > the demos to see if I can get them working. Thanks for all your help. below are the very simple unit tests (in fact they were normally just for my private use) I wrote to test HtmlUnit on DWR Demo site. I don't now if they still work or not: DWR demo sites seems to have problems currently and returns http 503 errors. Marc. ------------------ import junit.framework.TestCase; import com.gargoylesoftware.htmlunit.BrowserVersion; import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.html.ClickableElement; import com.gargoylesoftware.htmlunit.html.DomNode; import com.gargoylesoftware.htmlunit.html.HtmlCheckBoxInput; import com.gargoylesoftware.htmlunit.html.HtmlElement; import com.gargoylesoftware.htmlunit.html.HtmlInput; import com.gargoylesoftware.htmlunit.html.HtmlPage; import com.gargoylesoftware.htmlunit.html.HtmlSelect; public class DWRTest extends TestCase { public void testDynamicallyUpdatingText() throws Exception { final WebClient c = new WebClient(); final HtmlPage page = (HtmlPage) c.getPage("http://getahead.org/dwr/examples/text"); final ClickableElement queryServerButton = (ClickableElement) page.getByXPath("//input[starts-with(.., 'Query Server')]").get(0); queryServerButton.click(); final HtmlElement replyNode = page.getHtmlElementById("reply"); System.out.println(replyNode.asText()); Thread.sleep(2000); System.out.println(replyNode.asText()); final ClickableElement includePageButton = (ClickableElement) page.getByXPath("//input[@value = 'Include Page']").get(0); final HtmlElement forwardNode = page.getHtmlElementById("forward"); includePageButton.click(); System.out.println(forwardNode.asText()); Thread.sleep(2000); System.out.println(forwardNode.asText()); } public void testDynamicFormEditing() throws Exception { final WebClient c = new WebClient(); final HtmlPage page = (HtmlPage) c.getPage("http://getahead.org/dwr/examples/form"); final HtmlElement nameNode = page.getHtmlElementById("name"); System.out.println(nameNode.asText()); Thread.sleep(2000); System.out.println(nameNode.asText()); } public void testDynamicallyEditingATable() throws Exception { final WebClient c = new WebClient(); final HtmlPage page = (HtmlPage) c.getPage("http://getahead.org/dwr/examples/table"); final HtmlElement tableBodyNode = page.getHtmlElementById("peoplebody"); System.out.println(tableBodyNode.asText()); Thread.sleep(2000); System.out.println(tableBodyNode.asText()); } public void testDynamicAddressEntry() throws Exception { final WebClient c = new WebClient(); final HtmlPage page = (HtmlPage) c.getPage("http://getahead.org/dwr/examples/address"); final HtmlInput postcode = (HtmlInput) page.getHtmlElementById("postcode"); postcode.setValueAttribute("LE16 7TR"); final HtmlInput line2 = (HtmlInput) page.getHtmlElementById("line2"); System.out.println(line2.asText()); Thread.sleep(2000); System.out.println(line2.asText()); } /** * big numbers not received * @throws Exception */ public void testDynamicallyPopulatingASelectionList() throws Exception { final WebClient c = new WebClient(); final HtmlPage page = (HtmlPage) c.getPage("http://getahead.org/dwr/examples/lists"); final HtmlCheckBoxInput bigNumber = (HtmlCheckBoxInput) page.getHtmlElementById("bigselect"); Thread.sleep(2000); bigNumber.click(); final HtmlSelect select = (HtmlSelect) page.getHtmlElementById("numlist"); System.out.println(select.asText()); Thread.sleep(2000); System.out.println(select.asXml()); } public void testInFormServerSideValidation() throws Exception { final WebClient c = new WebClient(); final HtmlPage page = (HtmlPage) c.getPage("http://getahead.org/dwr/examples/validation"); final HtmlInput url = (HtmlInput) page.getHtmlElementById("url"); url.setValueAttribute("bla"); final HtmlElement urlValidationInfo = page.getHtmlElementById("url-error"); System.out.println(urlValidationInfo.asText()); Thread.sleep(2000); System.out.println(urlValidationInfo.asText()); } public void testSimpleChatApplication() throws Exception { final WebClient c = new WebClient(); final HtmlPage page = (HtmlPage) c.getPage("http://getahead.org/dwr/examples/chat"); Thread.sleep(2000); final HtmlInput message = (HtmlInput) page.getHtmlElementById("text"); message.setValueAttribute("from htmlunit"); final ClickableElement sendButton = (ClickableElement) page.getByXPath("//input[@value = 'Send']").get(0); sendButton.click(); final HtmlElement chat = page.getHtmlElementById("chatlog"); System.out.println(chat.asText()); Thread.sleep(2000); System.out.println(chat.asText()); } /** * pb! * @throws Exception */ public void testSerializingXML() throws Exception { final WebClient c = new WebClient(BrowserVersion.MOZILLA_1_0); final HtmlPage page = (HtmlPage) c.getPage("http://getahead.org/dwr/examples/xml"); Thread.sleep(2000); final HtmlInput message = (HtmlInput) page.getHtmlElementById("textXOM"); message.setValueAttribute("from htmlunit"); final ClickableElement sendXOMButton = (ClickableElement) page.getByXPath("//input[@value = 'Get XOM Document']").get(0); sendXOMButton.click(); final HtmlElement reply = page.getHtmlElementById("replyXOM"); System.out.println(reply.asText()); Thread.sleep(2000); System.out.println(reply.asText()); } } ------------------ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Htmlunit-user mailing list Htmlunit-user@... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
| Free embeddable forum powered by Nabble | Forum Help |