This page (revision-8) was last changed on 12-Sep-2014 13:35 by Dieter Käppel

This page was created on 26-Apr-2012 16:00 by Dieter Käppel

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
8 12-Sep-2014 13:35 4 KB Dieter Käppel to previous
7 12-Sep-2014 13:35 2 KB Dieter Käppel to previous | to last
6 24-Jun-2014 22:01 2 KB Dieter Käppel to previous | to last
5 24-Jun-2014 11:46 2 KB Dieter Käppel to previous | to last
4 24-Jun-2014 11:45 1 KB Dieter Käppel to previous | to last
3 26-Apr-2012 16:53 1 KB Dieter Käppel to previous | to last
2 26-Apr-2012 16:01 1 KB Dieter Käppel to previous | to last
1 26-Apr-2012 16:00 1 KB Dieter Käppel to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 19 changed 13 lines
HtmlClient client = new HtmlClient(new UrlClient());
Page page = client.begin(new URL("http://localhost/"), null, false);
Assert.assertNotNull(page);
Form form = (Form)page.getElement("//FORM[@id = 'header-login']");
Assert.assertNotNull(form);
Input username = (Input)form.getElement(".//INPUT[@name = 'header-login:username']");
Assert.assertNotNull(username);
username.setValue("test");
Input password = (Input)form.getElement(".//INPUT[@name = 'header-login:password']");
Assert.assertNotNull(password);
password.setValue("test");
Submit submit = (Submit)form.getElement(".//INPUT[@type = 'submit']");
submit.submit(true);
HtmlClient client = new HtmlClient(new UrlClient());
Page page = client.begin(new URL("http://localhost/"), null, false);
Assert.assertNotNull(page);
Form form = (Form)page.getElement("//FORM[@id = 'header-login']");
Assert.assertNotNull(form);
Input username = (Input)form.getElement(".//INPUT[@name = 'header-login:username']");
Assert.assertNotNull(username);
username.setValue("test");
Input password = (Input)form.getElement(".//INPUT[@name = 'header-login:password']");
Assert.assertNotNull(password);
password.setValue("test");
Submit submit = (Submit)form.getElement(".//INPUT[@type = 'submit']");
submit.submit(true);