3 $sel->open_ok($lxtest->{lxadmin});
 
   4 $sel->title_is("Lx-Office ERP Administration -");
 
   6 diag('Lock the system');
 
   7 $sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System sperren\")]");
 
   8 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
 
  10 diag("Create test database '$lxtest->{db}'");
 
  11 $sel->title_is("Lx-Office ERP Administration -");
 
  12 $sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbankadministration\")]");
 
  13 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
 
  14 $sel->title_is("Lx-Office ERP / Datenbankadministration -");
 
  15 $sel->type_ok("dbuser", $lxtest->{dbuser});
 
  16 $sel->type_ok("dbpasswd", $lxtest->{dbpasswd});
 
  17 $sel->type_ok("dbuser", $lxtest->{dbuser});
 
  18 $sel->type_ok("dbhost", $lxtest->{dbhost});
 
  19 $sel->type_ok("dbport", $lxtest->{dbport});
 
  20 $sel->type_ok("dbdefault", $lxtest->{dbdefault});
 
  21 $sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbank anlegen\")]");
 
  22 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
 
  23 $sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank anlegen -");
 
  24 $sel->type_ok("db", $lxtest->{db});
 
  25 $sel->select_ok("encoding", "label=ISO 8859-1");
 
  26 $sel->click_ok("//input[(\@name=\"chart\") and (\@value=\"Germany-DATEV-SKR03EU\")]");
 
  27 $sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]");
 
  28 $sel->wait_for_page_to_load_ok($lxtest->{timeoutlong});
 
  29 $sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank anlegen -");
 
  30 $sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]");
 
  31 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
 
  32 $sel->title_is("Lx-Office ERP Administration -");
 
  34 diag('Unlock the system');
 
  35 $sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System entsperren\")]");
 
  36 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
 
  37 $sel->title_is("Lx-Office ERP Administration -");