+++ /dev/null
-### Create Database
-
-$sel->open_ok($lxtest->{lxadmin});
-#$sel->title_is("Lx-Office ERP Administration -");
-#
-if($sel->get_title() eq "") {
- $sel->open_ok($lxtest->{lxadmin_url});
- $sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Anmeldung\")]");
- $sel->wait_for_page_to_load_ok($lxtest->{timeout});
-}
-
-$sel->title_is("Lx-Office ERP ".$lxtest->{version}." Administration -");
-
-diag('Lock the system');
-$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System sperren\")]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-
-diag("Create test database '$lxtest->{db}'");
-$sel->title_is("Lx-Office ERP Administration -");
-$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbankadministration\")]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->title_is("Lx-Office ERP / Datenbankadministration -");
-$sel->type_ok("dbuser", $lxtest->{dbuser});
-$sel->type_ok("dbpasswd", $lxtest->{dbpasswd});
-$sel->type_ok("dbhost", $lxtest->{dbhost});
-$sel->type_ok("dbport", $lxtest->{dbport});
-$sel->type_ok("dbdefault", $lxtest->{dbdefault});
-$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbank anlegen\")]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank anlegen -");
-$sel->type_ok("db", $lxtest->{db});
-$sel->select_ok("encoding", "label=ISO 8859-1");
-$sel->click_ok("//input[(\@name=\"chart\") and (\@value=\"Germany-DATEV-SKR03EU\")]");
-$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeoutlong});
-$sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank anlegen -");
-$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->title_is("Lx-Office ERP Administration -");
-
-diag('Unlock the system');
-$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System entsperren\")]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->title_is("Lx-Office ERP Administration -");
+++ /dev/null
-
-### Create new user
-diag("Create test user '$lxtest->{testuserlogin}'");
-$sel->open_ok($lxtest->{lxadmin});
-$sel->title_is("Lx-Office ERP Administration -");
-$sel->click_ok("action");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->title_is("Lx-Office ERP Administration / Benutzer erfassen -");
-$sel->type_ok("login", $lxtest->{testuserlogin});
-$sel->type_ok("password", $lxtest->{testuserpasswd});
-$sel->type_ok("name", "Selenium");
-$sel->type_ok("email", "selenium\@lx-office.org");
-$sel->type_ok("signature", "Selenium Testuser");
-$sel->type_ok("tel", "0000");
-$sel->type_ok("fax", "1111");
-$sel->type_ok("company", "Sel-enium");
-$sel->type_ok("signature", "Selenium Testuser\nTestfirma");
-$sel->type_ok("address", "Testfirma");
-$sel->type_ok("taxnumber", "111-222-333-444");
-$sel->type_ok("co_ustid", "1234567");
-$sel->type_ok("duns", "0987654321");
-#$sel->click_ok("dbdriver");
-$sel->type_ok("newtemplates", "seleniumtestuser");
-$sel->click_ok("menustyle");
-$sel->type_ok("dbhost", $lxtest->{dbhost});
-$sel->type_ok("dbname", $lxtest->{db});
-$sel->type_ok("dbport", $lxtest->{dbport});
-$sel->type_ok("dbuser", $lxtest->{dbuser});
-$sel->type_ok("dbpasswd", $lxtest->{dbpasswd});
-$sel->click_ok("action");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->title_is("Lx-Office ERP Administration -");
+++ /dev/null
-### Update Database
-
-# NOTEST: some preruns for initializing missing parameters
-$sel->open($lxtest->{lxadmin});
-$sel->click("//input[(\@name=\"action\") and (\@value=\"Datenbankadministration\")]");
-$sel->wait_for_page_to_load($lxtest->{timeout});
-$sel->type("dbuser", $lxtest->{dbuser});
-$sel->type("dbpasswd", $lxtest->{dbpasswd});
-$sel->type("dbuser", $lxtest->{dbuser});
-$sel->type("dbhost", $lxtest->{dbhost});
-$sel->type("dbport", $lxtest->{dbport});
-$sel->type("dbdefault", $lxtest->{dbdefault});
-$sel->click("//input[(\@name=\"action\") and (\@value=\"Datenbank aktualisieren\")]");
-$sel->wait_for_page_to_load($lxtest->{timeoutlong});
-$sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank aktualisieren -");
-
-my $count =0;
-
-while (){ # count the number of radiobuttons
- eval { $sel->is_checked("//input[(\@id=\"$count\")]"); };
- if ( $@ ) { $count--; last; };
- $count++;
-}
-
-#TEST: Now run the Tests
-
-$sel->open_ok($lxtest->{lxadmin});
-$sel->title_is("Lx-Office ERP Administration -");
-
-#diag('Lock the system');
-#$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System sperren\")]");
-#$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-
-diag('Update the database');
-
-$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbankadministration\")]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->title_is("Lx-Office ERP / Datenbankadministration -");
-$sel->type_ok("dbuser", $lxtest->{dbuser});
-$sel->type_ok("dbpasswd", $lxtest->{dbpasswd});
-$sel->type_ok("dbuser", $lxtest->{dbuser});
-$sel->type_ok("dbhost", $lxtest->{dbhost});
-$sel->type_ok("dbport", $lxtest->{dbport});
-$sel->type_ok("dbdefault", $lxtest->{dbdefault});
-$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbank aktualisieren\")]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeoutlong});
-$sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank aktualisieren -");
-
-for (my $i=0; $i <= $count; $i++){
- $sel->uncheck_ok("//input[(\@id=\"$i\")]");
-}
-
-#$sel->click_ok("//input[\@value=\"$lxtest->{db}\"]");
-#$sel->check_ok("//input[\@name=\"db$lxtest->{db}\"]");
-$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]");
-$sel->title_like( qr/Lx-Office ERP Datenbankadministration/ );
-
-#diag('Unlock the system');
-#$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System entsperren\")]");
-#$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-#$sel->title_is("Lx-Office ERP Administration -");
-
+++ /dev/null
-### Login
-
-diag("TestLogin");
-
-$sel->open_ok($lxtest->{lxbaseurl}."/login.pl");
-
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->title_is("Lx-Office Version ".$lxtest->{version});
-$sel->type_ok("login", $lxtest->{testuserlogin});
-$sel->type_ok("password", $lxtest->{testuserpasswd});
-$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Anmeldung\")]");
-
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-if($sel->title_is("Datenbankaktualisierung - Lx-Office Version 2.4.3 - -")) {
- $sel->click_ok("//input[(\@name=\"dummy\") and (\@value=\"Weiter\")]");
- $sel->wait_for_page_to_load_ok($lxtest->{timeoutlong});
- $sel->click_ok("//input[(\@type=\"submit\") and (\@value=\"Weiter\")]");
- $sel->wait_for_page_to_load_ok($lxtest->{timeout});
-}
-
-$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " $lxtest->{db});
-1;
\ No newline at end of file
+++ /dev/null
-### Delete user
-diag("Delete test user '$lxtest->{testuserlogin}'");
-$sel->open_ok($lxtest->{lxadmin});
-$sel->title_is("Lx-Office ERP Administration -");
-$sel->click_ok("link=$lxtest->{testuserlogin}");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->title_is("Lx-Office ERP Administration / Benutzerdaten bearbeiten -");
-$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Löschen\")]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+++ /dev/null
-#### Delete database
-
-
-$sel->open_ok($lxtest->{lxadmin});
-$sel->title_is("Lx-Office ERP Administration -");
-
-diag('Lock the system');
-$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System sperren\")]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-
-diag("Delete test database '$lxtest->{db}'");
-$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbankadministration\")]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->title_is("Lx-Office ERP / Datenbankadministration -");
-$sel->type_ok("dbhost", $lxtest->{dbhost});
-$sel->type_ok("dbport", $lxtest->{dbport});
-$sel->type_ok("dbuser", $lxtest->{dbuser});
-$sel->type_ok("dbpasswd", $lxtest->{dbpasswd});
-$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbank löschen\")]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeoutlong});
-$sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank löschen -");
-
-$sel->click_ok("//input[\@value=\"$lxtest->{db}\"]");
-
-$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->body_text_is("Lx-Office ERP Datenbankadministration / Datenbank löschen $lxtest->{db} wurde erfolgreich gelöscht");
-$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->title_is("Lx-Office ERP Administration -");
-
-diag('Unlock the system');
-$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System entsperren\")]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->title_is("Lx-Office ERP Administration -");
\ No newline at end of file
--- /dev/null
+### Create Database
+
+$sel->open_ok($lxtest->{lxadmin});
+#$sel->title_is("Lx-Office ERP Administration -");
+#
+if($sel->get_title() eq "") {
+ $sel->open_ok($lxtest->{lxadmin_url});
+ $sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Anmeldung\")]");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+}
+
+$sel->title_is("Lx-Office ERP Administration -");
+
+diag('Lock the system');
+$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System sperren\")]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+
+diag("Create test database '$lxtest->{db}'");
+$sel->title_is("Lx-Office ERP Administration -");
+$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbankadministration\")]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->title_is("Lx-Office ERP / Datenbankadministration -");
+$sel->type_ok("dbuser", $lxtest->{dbuser});
+$sel->type_ok("dbpasswd", $lxtest->{dbpasswd});
+$sel->type_ok("dbhost", $lxtest->{dbhost});
+$sel->type_ok("dbport", $lxtest->{dbport});
+$sel->type_ok("dbdefault", $lxtest->{dbdefault});
+$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbank anlegen\")]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank anlegen -");
+$sel->type_ok("db", $lxtest->{db});
+$sel->select_ok("encoding", "label=ISO 8859-1");
+$sel->select_ok("chart", "label=Germany-DATEV-SKR03EU");
+$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeoutlong});
+$sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank anlegen -");
+$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->title_is("Lx-Office ERP Administration -");
+
+diag('Unlock the system');
+$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System entsperren\")]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->title_is("Lx-Office ERP Administration -");
--- /dev/null
+
+### Create new user
+diag("Create test user '$lxtest->{testuserlogin}'");
+$sel->open_ok($lxtest->{lxadmin});
+$sel->title_is("Lx-Office ERP Administration -");
+$sel->click_ok("action");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->title_is("Lx-Office ERP Administration / Benutzer erfassen -");
+$sel->type_ok("login", $lxtest->{testuserlogin});
+$sel->type_ok("password", $lxtest->{testuserpasswd});
+$sel->type_ok("name", "Selenium");
+$sel->type_ok("email", "selenium\@lx-office.org");
+$sel->type_ok("signature", "Selenium Testuser");
+$sel->type_ok("tel", "0000");
+$sel->type_ok("fax", "1111");
+$sel->type_ok("company", "Sel-enium");
+$sel->type_ok("signature", "Selenium Testuser\nTestfirma");
+$sel->type_ok("address", "Testfirma");
+$sel->type_ok("taxnumber", "111-222-333-444");
+$sel->type_ok("co_ustid", "1234567");
+$sel->type_ok("duns", "0987654321");
+#$sel->click_ok("dbdriver");
+$sel->type_ok("newtemplates", "seleniumtestuser");
+$sel->click_ok("menustyle");
+$sel->type_ok("dbhost", $lxtest->{dbhost});
+$sel->type_ok("dbname", $lxtest->{db});
+$sel->type_ok("dbport", $lxtest->{dbport});
+$sel->type_ok("dbuser", $lxtest->{dbuser});
+$sel->type_ok("dbpasswd", $lxtest->{dbpasswd});
+$sel->click_ok("action");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->title_is("Lx-Office ERP Administration -");
--- /dev/null
+### Update Database
+
+# NOTEST: some preruns for initializing missing parameters
+$sel->open($lxtest->{lxadmin});
+$sel->click("//input[(\@name=\"action\") and (\@value=\"Datenbankadministration\")]");
+$sel->wait_for_page_to_load($lxtest->{timeout});
+$sel->type("dbuser", $lxtest->{dbuser});
+$sel->type("dbpasswd", $lxtest->{dbpasswd});
+$sel->type("dbuser", $lxtest->{dbuser});
+$sel->type("dbhost", $lxtest->{dbhost});
+$sel->type("dbport", $lxtest->{dbport});
+$sel->type("dbdefault", $lxtest->{dbdefault});
+$sel->click("//input[(\@name=\"action\") and (\@value=\"Datenbank aktualisieren\")]");
+$sel->wait_for_page_to_load($lxtest->{timeoutlong});
+$sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank aktualisieren -");
+
+my $count =0;
+
+while (){ # count the number of radiobuttons
+ eval { $sel->is_checked("//input[(\@id=\"$count\")]"); };
+ if ( $@ ) { $count--; last; };
+ $count++;
+}
+
+#TEST: Now run the Tests
+
+$sel->open_ok($lxtest->{lxadmin});
+$sel->title_is("Lx-Office ERP Administration -");
+
+#diag('Lock the system');
+#$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System sperren\")]");
+#$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+
+diag('Update the database');
+
+$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbankadministration\")]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->title_is("Lx-Office ERP / Datenbankadministration -");
+$sel->type_ok("dbuser", $lxtest->{dbuser});
+$sel->type_ok("dbpasswd", $lxtest->{dbpasswd});
+$sel->type_ok("dbuser", $lxtest->{dbuser});
+$sel->type_ok("dbhost", $lxtest->{dbhost});
+$sel->type_ok("dbport", $lxtest->{dbport});
+$sel->type_ok("dbdefault", $lxtest->{dbdefault});
+$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbank aktualisieren\")]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeoutlong});
+$sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank aktualisieren -");
+
+for (my $i=0; $i <= $count; $i++){
+ $sel->uncheck_ok("//input[(\@id=\"$i\")]");
+}
+
+#$sel->click_ok("//input[\@value=\"$lxtest->{db}\"]");
+#$sel->check_ok("//input[\@name=\"db$lxtest->{db}\"]");
+$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]");
+$sel->title_like( qr/Lx-Office ERP Datenbankadministration/ );
+
+#diag('Unlock the system');
+#$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System entsperren\")]");
+#$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+#$sel->title_is("Lx-Office ERP Administration -");
+
--- /dev/null
+### Login
+
+diag("Login");
+
+$sel->open_ok($lxtest->{lxbaseurl}."/login.pl");
+
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->title_is("Lx-Office Version ".$lxtest->{version});
+$sel->type_ok("login", $lxtest->{testuserlogin});
+$sel->type_ok("password", $lxtest->{testuserpasswd});
+$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Anmeldung\")]");
+
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+if($sel->title_is("Datenbankaktualisierung - Lx-Office Version 2.4.3 - -")) {
+ $sel->click_ok("//input[(\@name=\"dummy\") and (\@value=\"Weiter\")]");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeoutlong});
+ $sel->click_ok("//input[(\@type=\"submit\") and (\@value=\"Weiter\")]");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+}
+
+$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
--- /dev/null
+### Login
+
+diag("Logout");
+
+$sel->select_frame_ok("relative=up") if(!$sel->is_element_present_ok("//img"));
+$sel->click_ok("link=abmelden");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->title_is("Lx-Office Version ".$lxtest->{version});
\ No newline at end of file
--- /dev/null
+### Delete user
+diag("Delete test user '$lxtest->{testuserlogin}'");
+$sel->open_ok($lxtest->{lxadmin});
+$sel->title_is("Lx-Office ERP Administration -");
+$sel->click_ok("link=$lxtest->{testuserlogin}");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->title_is("Lx-Office ERP Administration / Benutzerdaten bearbeiten -");
+$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Löschen\")]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
--- /dev/null
+
+$sel->open_ok($lxtest->{lxadmin});
+$sel->title_is("Lx-Office ERP Administration -");
+
+diag('Lock the system');
+$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System sperren\")]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+
+$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbankadministration\")]");
+diag("Delete test database '$lxtest->{db}'");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->title_is("Lx-Office ERP / Datenbankadministration -");
+$sel->type_ok("dbhost", $lxtest->{dbhost});
+$sel->type_ok("dbport", $lxtest->{dbport});
+$sel->type_ok("dbuser", $lxtest->{dbuser});
+$sel->type_ok("dbpasswd", $lxtest->{dbpasswd});
+$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbank löschen\")]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeoutlong});
+$sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank löschen -");
+
+$sel->select_ok("db", "label=" . $lxtest->{db});
+
+$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->body_text_is("Lx-Office ERP Datenbankadministration / Datenbank löschen Die Datenbank $lxtest->{db} wurde erfolgreich gelöscht.");
+$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->title_is("Lx-Office ERP Administration -");
+
+diag('Unlock the system');
+$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System entsperren\")]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->title_is("Lx-Office ERP Administration -");
\ No newline at end of file
--- /dev/null
+diag("Create first Customer");
+
+if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
+ require_ok("../../begin/B004Login.t");
+}
+
+$sel->select_frame_ok("relative=up");
+$sel->click_ok("link=Kunde erfassen");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
+$sel->select_frame_ok("main_window");
+$sel->click_ok("customernumber");
+$sel->type_ok("customernumber", "001");
+$sel->type_ok("greeting", "Firma");
+$sel->type_ok("name", "Selenium-Testfirma1");
+$sel->type_ok("department_1", "Einkauf");
+$sel->type_ok("department_2", "extern");
+$sel->type_ok("street", "Grummelburger 111");
+$sel->type_ok("zipcode", "37115");
+$sel->type_ok("city", "Musterstadt");
+$sel->type_ok("country", "Germany");
+$sel->type_ok("creditlimit", "100");
+$sel->type_ok("discount", "5");
+$sel->type_ok("account_number", "1");
+$sel->select_ok("salesman_id", "label=Selenium");
+$sel->type_ok("notes", "keine Bemerkungen");
+$sel->click_ok("link=Lieferadresse");
+$sel->click_ok("shipto_id");
+$sel->select_ok("shipto_id", "label=Alle");
+$sel->click_ok("//tr[1]/td/select/option[2]");
+$sel->click_ok("shiptoname");
+$sel->click_ok("shiptodepartment_1");
+$sel->type_ok("shiptodepartment_1", "Einkauf");
+$sel->type_ok("shiptostreet", "Donnerburger 12");
+$sel->type_ok("shiptozipcode", "37115");
+$sel->type_ok("shiptocity", "Musterstadt");
+$sel->type_ok("shiptocountry", "Germany");
+$sel->type_ok("shiptocontact", "Herr Mustermann");
+$sel->type_ok("shiptophone", "0");
+$sel->type_ok("shiptofax", "1");
+$sel->type_ok("shiptoemail", "mustermann\@linet-services.de");
+$sel->click_ok("link=Ansprechpartner");
+$sel->click_ok("cp_greeting");
+$sel->type_ok("cp_greeting", "Frau");
+$sel->type_ok("cp_title", "Dr.");
+$sel->type_ok("cp_abteilung", "Verkauf");
+$sel->type_ok("cp_givenname", "Mechtilde");
+$sel->type_ok("cp_name", "Grosshaupt");
+$sel->type_ok("cp_phone1", "05528 111111111");
+$sel->type_ok("cp_phone2", "05528 222222222");
+$sel->type_ok("cp_fax", "05528 222222223");
+$sel->type_ok("cp_mobile1", "05528 2222222224");
+$sel->type_ok("cp_mobile2", "05528 2222222225");
+$sel->type_ok("cp_satphone", "05528 2222222226");
+$sel->type_ok("cp_satfax", "05528 2222222227");
+$sel->type_ok("cp_project", "1");
+$sel->type_ok("cp_email", "mustergrosshaupt\@linet-services.de");
+$sel->type_ok("cp_privatphone", "05528 2222222220");
+$sel->type_ok("cp_privatemail", "keine\@linet-services.de");
+$sel->type_ok("cp_birthday", "05.09.1982");
+$sel->click_ok("link=Lieferungen");
+$sel->click_ok("delivery_id");
+$sel->click_ok("action");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+
+diag("Create second Customer");
+$sel->title_is("Kunde erfassen - Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
+$sel->select_frame_ok("relative=up");
+$sel->click_ok("link=Kunde erfassen");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->select_frame_ok("main_window");
+$sel->click_ok("link=Rechnungsadresse");
+$sel->click_ok("customernumber");
+$sel->type_ok("customernumber", "2");
+$sel->click_ok("greeting");
+$sel->type_ok("greeting", "Herr");
+$sel->type_ok("name", "TestMann2");
+$sel->type_ok("street", "Goettingweg 3");
+$sel->type_ok("zipcode", "38100");
+$sel->type_ok("city", "Braunschweig");
+$sel->type_ok("country", "Germany");
+$sel->type_ok("phone", "0531 010101010101");
+$sel->type_ok("email", "testmann\@linet-services.de");
+$sel->click_ok("document.ct.action[1]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+
+diag("Create third Customer");
+$sel->title_is("Kunde erfassen - Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
+$sel->select_frame_ok("relative=up");
+$sel->click_ok("link=Kunde erfassen");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->select_frame_ok("main_window");
+$sel->click_ok("customernumber");
+$sel->type_ok("customernumber", "3");
+$sel->click_ok("greeting");
+$sel->type_ok("greeting", "Frau");
+$sel->type_ok("name", "TestFrau3");
+$sel->type_ok("department_1", "Outsourced");
+$sel->type_ok("street", "Billighäuser 3444");
+$sel->click_ok("street");
+$sel->click_ok("zipcode");
+$sel->type_ok("zipcode", "67899");
+$sel->type_ok("city", "Brunnenberge");
+$sel->type_ok("country", "Austria");
+$sel->click_ok("document.ct.action[1]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
--- /dev/null
+diag("Create vendor");
+
+if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
+ require_ok("../../begin/B004Login.t");
+}
+
+$sel->select_frame_ok("relative=up");
+$sel->click_ok("link=Lieferant erfassen");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+diag("Create first vendor");
+$sel->select_frame_ok("main_window");
+$sel->click_ok("vendornumber");
+$sel->type_ok("vendornumber", "1");
+$sel->click_ok("selected_company_greeting");
+$sel->select_ok("selected_company_greeting", "label=Firma");
+$sel->click_ok("//option[2]");
+$sel->click_ok("name");
+$sel->type_ok("name", "TestLieferant1");
+$sel->type_ok("department_1", "GossAus");
+$sel->type_ok("street", "Berger 1");
+$sel->type_ok("zipcode", "11990");
+$sel->type_ok("city", "Drehmel");
+$sel->type_ok("country", "Germany");
+$sel->type_ok("contact", "Herr Custom");
+$sel->type_ok("phone", "01234 56787902");
+$sel->type_ok("fax", "01234 567879023");
+$sel->type_ok("email", "custom\@linet-services.de");
+$sel->type_ok("account_number", "2");
+$sel->click_ok("obsolete");
+$sel->click_ok("obsolete");
+$sel->type_ok("notes", "keine Bemerkungen");
+$sel->click_ok("link=Lieferadresse");
+$sel->click_ok("shipto_id");
+$sel->select_ok("shipto_id", "label=Alle");
+$sel->click_ok("//tr[1]/td/select/option[2]");
+$sel->click_ok("link=Ansprechpartner");
+$sel->click_ok("cp_id");
+$sel->click_ok("cp_id");
+$sel->click_ok("cp_greeting");
+$sel->click_ok("selected_cp_greeting");
+$sel->select_ok("selected_cp_greeting", "label=Frau");
+$sel->click_ok("//tr[2]/td/select/option[2]");
+$sel->click_ok("cp_title");
+$sel->click_ok("selected_cp_title");
+$sel->click_ok("cp_title");
+$sel->type_ok("cp_title", "Diplom Meterologin");
+$sel->click_ok("cp_abteilung");
+$sel->type_ok("cp_title", "Dipl. Inf.");
+$sel->click_ok("cp_title");
+$sel->click_ok("cp_title");
+$sel->type_ok("cp_title", "Dipl. Ing.");
+$sel->click_ok("cp_abteilung");
+$sel->type_ok("cp_abteilung", "Externes");
+$sel->type_ok("cp_givenname", "Hildegunde");
+$sel->type_ok("cp_name", "Riess");
+$sel->type_ok("cp_phone1", "0111 222333444 5");
+$sel->click_ok("cp_birthday");
+$sel->type_ok("cp_birthday", "12.03.1964");
+$sel->click_ok("link=Lieferungen");
+$sel->click_ok("action");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("link=Rechnungsadresse");
+$sel->click_ok("document.ct.action[1]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+diag("Create second vendor");
+$sel->click_ok("vendornumber");
+$sel->type_ok("vendornumber", "2");
+$sel->click_ok("greeting");
+$sel->click_ok("selected_company_greeting");
+$sel->select_ok("selected_company_greeting", "label=Firma");
+$sel->click_ok("//option[2]");
+$sel->click_ok("name");
+$sel->type_ok("name", "TestLieferant2");
+$sel->type_ok("department_1", "Verkauf");
+$sel->type_ok("department_2", "Orga");
+$sel->type_ok("street", "Wlkenweg 3");
+$sel->type_ok("zipcode", "09090");
+$sel->type_ok("city", "Brummbach");
+$sel->click_ok("city");
+$sel->type_ok("city", "Markt Brummbach");
+$sel->click_ok("country");
+$sel->type_ok("country", "Germany");
+$sel->click_ok("document.ct.action[1]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+diag("Create third vendor");
+$sel->click_ok("link=Rechnungsadresse");
+$sel->click_ok("vendornumber");
+$sel->type_ok("vendornumber", "3");
+$sel->click_ok("selected_company_greeting");
+$sel->select_ok("selected_company_greeting", "label=Firma");
+$sel->click_ok("//option[2]");
+$sel->type_ok("name", "TestFirma3 GmbH");
+$sel->type_ok("fax", "03232 7272727273");
+$sel->type_ok("creditlimit", "50000");
+$sel->type_ok("discount", "10");
+$sel->click_ok("link=Lieferadresse");
+$sel->click_ok("shiptoname");
+$sel->type_ok("shiptoname", "TestFirma3 GmbH");
+$sel->type_ok("shiptodepartment_1", "Vertrieb");
+$sel->type_ok("shiptostreet", "Grummelsburger 1423");
+$sel->type_ok("shiptozipcode", "40000");
+$sel->type_ok("shiptocity", "Hansastadt");
+$sel->type_ok("shiptocountry", "Germany");
+$sel->type_ok("shiptocontact", "Herr Baumann von Clausen");
+$sel->type_ok("shiptophone", "03232 7272727272");
+$sel->type_ok("shiptofax", "03232 7272727273");
+$sel->type_ok("shiptoemail", "baumann\@linet-services.de");
+$sel->click_ok("link=Ansprechpartner");
+$sel->click_ok("selected_cp_greeting");
+$sel->click_ok("cp_greeting");
+$sel->type_ok("cp_greeting", "Herr");
+$sel->type_ok("cp_abteilung", "Vertrieb");
+$sel->type_ok("cp_givenname", "Dietmar");
+$sel->type_ok("cp_name", "Baumann von Clausen");
+$sel->type_ok("cp_phone1", "03232 7272727272");
+$sel->type_ok("cp_fax", "03232 7272727273");
+$sel->type_ok("cp_birthday", "14.05.1971");
+$sel->click_ok("link=Lieferungen");
+$sel->click_ok("document.ct.action[1]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+
--- /dev/null
+diag("Create goods");
+
+if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
+ require_ok("../../begin/B004Login.t");
+}
+
+$sel->select_frame_ok("relative=up");
+$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
+$sel->click_ok("link=Ware erfassen");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->select_frame_ok("main_window");
+$sel->type_ok("partnumber", "1");
+$sel->type_ok("description", "TestWare1");
+$sel->select_ok("partsgroup", "label=TestSeleniumWarengruppe1");
+$sel->select_ok("buchungsgruppen_id", "label=Standard 16%/19%");
+$sel->click_ok("trigger1");
+$sel->type_ok("listprice", "100,00");
+$sel->type_ok("sellprice", "150,00");
+$sel->type_ok("lastcost", "50,00");
+$sel->select_ok("price_factor_id", "label=pro 10");
+$sel->type_ok("notes", "Zu dieser Testware existiert keine Bemerkung");
+$sel->select_ok("unit", "label=kg");
+$sel->type_ok("weight", "10");
+$sel->type_ok("rop", "10");
+$sel->type_ok("bin", "1");
+$sel->type_ok("ve", "10");
+$sel->click_ok("shop");
+$sel->type_ok("microfiche", "27 drei 4tel");
+$sel->select_ok("payment_id", "label=Schnellzahler/Skonto");
+# Spracheinstellungen müssen überarbeitet werden, bevor der Test laufen kann!
+# $sel->click_ok("//button[\@type='button']");
+# $sel->wait_for_pop_up_ok("_new_generic", $lxtest->{timeout});
+# $sel->click_ok("//button[\@type='button']");
+# $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->type_ok("price_1", "115,00");
+$sel->type_ok("price_2", "150,00");
+$sel->type_ok("make_1", "TestFabrikant1");
+$sel->type_ok("model_1", "TestWare1");
+$sel->click_ok("action");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("document.ic.action[1]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->type_ok("partnumber", "2");
+$sel->type_ok("description", "TestWareSelenium2");
+$sel->type_ok("listprice", "0,50");
+$sel->type_ok("sellprice", "1,00");
+$sel->type_ok("lastcost", ",25");
+$sel->select_ok("unit", "label=kg");
+$sel->type_ok("weight", "0,5");
+$sel->type_ok("rop", "2");
+$sel->type_ok("bin", "2");
+$sel->click_ok("not_discountable");
+$sel->type_ok("ve", "1");
+$sel->type_ok("notes", "Die ist Brot");
+# Spracheinstellungen müssen überarbeitet werden, bevor der Test laufen kann!
+# $sel->click_ok("//button[\@type='button']");
+# $sel->wait_for_pop_up_ok("_new_generic", $lxtest->{timeout});
+# $sel->click_ok("//button[\@type='button']");
+# $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->select_ok("payment_id", "label=Schnellzahler/Skonto");
+$sel->click_ok("action");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("document.ic.action[1]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
--- /dev/null
+diag("Add service");
+
+if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
+ require_ok("../../begin/B004Login.t");
+}
+
+$sel->select_frame_ok("relative=up");
+$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
+$sel->click_ok("link=Dienstleistung erfassen");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->select_frame_ok("main_window");
+$sel->type_ok("partnumber", "999");
+$sel->type_ok("description", "Programmierstunde");
+$sel->select_ok("partsgroup", "label=TestSeleniumWarengruppe3");
+$sel->select_ok("buchungsgruppen_id", "label=Standard 16%/19%");
+$sel->type_ok("notes", "Eine Programmierstunde wird immer besser bezahlt");
+$sel->type_ok("listprice", "50,00");
+$sel->type_ok("sellprice", "100");
+$sel->type_ok("lastcost", "45");
+$sel->select_ok("unit", "label=Std");
+$sel->select_ok("payment_id", "label=Schnellzahler/Skonto");
+$sel->type_ok("price_1", "100");
+$sel->click_ok("action");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("document.ic.action[1]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->type_ok("partnumber", "998");
+$sel->type_ok("description", "Telefonstunde");
+$sel->select_ok("partsgroup", "label=TestSeleniumWarengruppe3");
+$sel->select_ok("buchungsgruppen_id", "label=Standard 16%/19%");
+$sel->type_ok("notes", "gibt's beim Telekomunikator");
+$sel->type_ok("listprice", "0,05");
+$sel->type_ok("sellprice", "0,10");
+$sel->type_ok("lastcost", "0,02");
+$sel->select_ok("unit", "label=psch");
+$sel->select_ok("payment_id", "label=Schnellzahler/Skonto");
+$sel->type_ok("price_1", "0,02");
+$sel->type_ok("price_2", "0,1");
+$sel->type_ok("price_1", "0,1");
+$sel->click_ok("document.ic.action[1]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
\ No newline at end of file
--- /dev/null
+diag("Add product");
+
+if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
+ require_ok("../../begin/B004Login.t");
+}
+
+$sel->select_frame_ok("relative=up");
+$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
+$sel->click_ok("link=Erzeugnis erfassen");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->select_frame_ok("main_window");
+$sel->type_ok("partnumber", "991");
+$sel->type_ok("description", "Handykarten");
+$sel->select_ok("partsgroup", "label=TestSeleniumWarengruppe2");
+$sel->select_ok("buchungsgruppen_id", "label=Standard 16%/19%");
+$sel->click_ok("trigger1");
+$sel->type_ok("listprice", "3,00");
+$sel->type_ok("sellprice", "30,00");
+$sel->select_ok("unit", "label=Stck");
+$sel->type_ok("stock", "100");
+$sel->type_ok("rop", "10");
+$sel->type_ok("bin", "991");
+$sel->click_ok("not_discountable");
+$sel->click_ok("shop");
+$sel->type_ok("price_1", "30,00");
+$sel->type_ok("price_2", "30,00");
+$sel->type_ok("make_1", "TCom");
+$sel->type_ok("model_1", "standard");
+$sel->click_ok("action");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("document.ic.action[1]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
\ No newline at end of file
--- /dev/null
+diag("Add product");
+
+if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
+ require_ok("../../begin/B004Login.t");
+}
+
+$sel->select_frame_ok("relative=up");
+$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
+$sel->click_ok("link=Projekt erfassen");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->select_frame_ok("main_window");
+$sel->type_ok("projectnumber", "1001");
+$sel->type_ok("description", "tausend und eine Nacht");
+$sel->click_ok("action");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
\ No newline at end of file
--- /dev/null
+diag("CreateProductGroups");
+
+if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
+ require_ok("../../begin/B004Login.t");
+}
+
+$sel->select_frame_ok("relative=up");
+$sel->click_ok("link=Warengruppe erfassen");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->select_frame_ok("main_window");
+$sel->type_ok("partsgroup", "TestSeleniumWarengruppe1");
+$sel->click_ok("action");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->type_ok("partsgroup", "TestSeleniumWarengruppe2");
+$sel->click_ok("action");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->select_frame_ok("relative=up");
+$sel->click_ok("link=Warengruppen anzeigen");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->select_frame_ok("main_window");
+$sel->click_ok("action");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("link=TestSeleniumWarengruppe1");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("action");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("link=TestSeleniumWarengruppe2");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("action");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("action");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->type_ok("partsgroup", "TestSeleniumWarengruppe3");
+$sel->click_ok("action");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("link=TestSeleniumWarengruppe3");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
\ No newline at end of file
--- /dev/null
+diag("Create price brackets");
+
+if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
+ require_ok("../../begin/B004Login.t");
+}
+
+$sel->select_frame_ok("relative=up");
+$sel->click_ok("link=Preisgruppe erfassen");
+$sel->wait_for_page_to_load($lxtest->{timeout});
+
+$sel->select_frame_ok("main_window");
+$sel->type_ok("pricegroup", "SeleniumTestPreisgruppe1");
+$sel->click_ok("action","value=Speichern");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->type_ok("pricegroup", "SeleniumTestPreisgruppe2");
+$sel->click_ok("action","value=Speichern");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+
--- /dev/null
+diag("Add languages");
+
+if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
+ require_ok("../../begin/B004Login.t");
+}
+
+$sel->select_frame_ok("relative=up");
+$sel->click_ok("link=Sprache hinzufügen");
+$sel->wait_for_page_to_load($lxtest->{timeout});
+$sel->select_frame_ok("main_window");
+$sel->type_ok("description", "elbisch");
+$sel->type_ok("template_code", "elb");
+$sel->type_ok("article_code", "elb");
+$sel->select_ok("output_numberformat", "label=1.000,00");
+$sel->select_ok("output_dateformat", "label=yyyy-mm-dd");
+$sel->click_ok("action");
+$sel->wait_for_page_to_load($lxtest->{timeout});
+
+use DBI;
+$lxtest->{dsn} = 'dbi:Pg:dbname=' . $lxtest->{db} . ';host=' . $lxtest->{dbhost} . ';port=' . $lxtest->{dbport};
+my $dbh = DBI->connect( $lxtest->{dsn}, $lxtest->{dbuser}, $lxtest->{dbpasswd} ) or die "Cannot connect to database!\n $DBI::errstr";
+my $sth = $dbh->prepare("SELECT id FROM language WHERE description ILIKE 'elbisch'") or die "Error while preparing sql statement!\n $DBI::errstr\n";
+$sth->execute() or die "Error while excecuting sql statement!\n $DBI::errstr";
+$lxtest->{lang_id} = $sth->fetchrow_array() or die "Nothing to fetch!\n$DBI::errstr";
+$sth->finish();
+$dbh->disconnect();
+
+1;
\ No newline at end of file
--- /dev/null
+diag("Show languages");
+
+if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
+ require_ok("../../begin/B004Login.t");
+}
+
+$sel->select_frame_ok("relative=up");
+$sel->click_ok("link=Sprachen anzeigen");
+$sel->wait_for_page_to_load($lxtest->{timeout});
+$sel->select_frame_ok("main_window");
+$sel->click_ok("link=elbisch");
+$sel->wait_for_page_to_load($lxtest->{timeout});
+$sel->click_ok("action");
+$sel->wait_for_page_to_load($lxtest->{timeout});
--- /dev/null
+diag("Add payment conditions");
+
+if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
+ require_ok("../../begin/B004Login.t");
+}
+
+$sel->select_frame_ok("relative=up");
+$sel->click_ok("link=Zahlungskonditionen hinzufügen");
+$sel->wait_for_page_to_load($lxtest->{timeout});
+$sel->select_frame_ok("main_window");
+$sel->type_ok("description", "Schnellzahler/Skonto");
+$sel->type_ok("description_long", "Schnellzahler bekommen sofort ein Skonto von 3% gewährleistet");
+$sel->type_ok("description_long_" . $lxtest->{lang_id}, "This is a test in elbisch");
+$sel->type_ok("terms_netto", "100");
+$sel->type_ok("percent_skonto", "3");
+$sel->type_ok("terms_skonto", "97");
+$sel->click_ok("action");
+$sel->wait_for_page_to_load($lxtest->{timeout});
--- /dev/null
+diag("Show payment conditions");
+
+if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
+ require_ok("../../begin/B004Login.t");
+}
+
+$sel->select_frame_ok("relative=up");
+$sel->click_ok("link=Zahlungskonditionen anzeigen");
+$sel->wait_for_page_to_load($lxtest->{timeout});
+$sel->select_frame_ok("main_window");
+$sel->click_ok("link=Schnellzahler/Skonto");
+$sel->wait_for_page_to_load($lxtest->{timeout});
+$sel->click_ok("action");
+$sel->wait_for_page_to_load($lxtest->{timeout});
\ No newline at end of file
--- /dev/null
+diag("Add customer/vendor types");
+
+if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
+ require_ok("../../begin/B004Login.t");
+}
+
+$sel->select_frame_ok("relative=up");
+$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
+$sel->click_ok("link=Kunden-/Lieferantentyp erfassen");
+$sel->wait_for_page_to_load($lxtest->{timeout});
+$sel->select_frame_ok("main_window");
+$sel->type_ok("description", "Großabnehmer");
+$sel->type_ok("discount", "3");
+$sel->type_ok("customernumberinit", "100");
+$sel->click_ok("action");
+$sel->wait_for_page_to_load($lxtest->{timeout});
+$sel->type_ok("description", "Kleinkäufer");
+$sel->type_ok("customernumberinit", "200");
+$sel->click_ok("action");
+$sel->wait_for_page_to_load($lxtest->{timeout});
--- /dev/null
+diag("Show customer/vendor types");
+
+if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
+ require_ok("../../begin/B004Login.t");
+}
+
+$sel->select_frame_ok("relative=up");
+$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
+$sel->click_ok("link=Kunden\-\/Lieferantentypen\ anzeigen");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->select_frame_ok("main_window");
+$sel->click_ok("link=Großabnehmer");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("action");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("link=Kleinkäufer");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("action");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
--- /dev/null
+diag("Add show and delete measure");
+
+if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
+ require_ok("../../begin/B004Login.t");
+}
+
+$sel->select_frame_ok("relative=up");
+$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
+$sel->click_ok("link=Maßeinheiten");
+$sel->wait_for_page_to_load($lxtest->{timeout});
+$sel->select_frame_ok("main_window");
+$sel->type_ok("new_name", "ogge");
+$sel->select_ok("new_base_unit", "label=Stck");
+$sel->type_ok("new_factor", "3,5");
+$sel->type_ok("new_localized_" . $lxtest->{lang_id}, "kogge");
+$sel->type_ok("new_localized_plural_" . $lxtest->{lang_id}, "kogges");
+$sel->click_ok("action");
+$sel->wait_for_page_to_load($lxtest->{timeout});
+$sel->type_ok("localized_1_" . $lxtest->{lang_id}, "gm");
+$sel->type_ok("localized_plural_1_" . $lxtest->{lang_id}, "gms");
+$sel->type_ok("localized_2_" . $lxtest->{lang_id}, "gg");
+$sel->type_ok("localized_plural_2_" . $lxtest->{lang_id}, "ggs");
+$sel->type_ok("localized_3_" . $lxtest->{lang_id}, "gk");
+$sel->type_ok("localized_plural_3_" . $lxtest->{lang_id}, "gks");
+$sel->type_ok("localized_4_" . $lxtest->{lang_id}, "tt");
+$sel->type_ok("localized_plural_4_" . $lxtest->{lang_id}, "tts");
+$sel->type_ok("localized_5_" . $lxtest->{lang_id}, "lm");
+$sel->type_ok("localized_plural_5_" . $lxtest->{lang_id}, "lms");
+$sel->type_ok("localized_6_" . $lxtest->{lang_id}, "LL");
+$sel->type_ok("localized_plural_6_" . $lxtest->{lang_id}, "LLs");
+$sel->type_ok("localized_7_" . $lxtest->{lang_id}, "kctS");
+$sel->type_ok("localized_plural_7_" . $lxtest->{lang_id}, "kctSs");
+$sel->click_ok("document.forms[0].action[1]");
+$sel->wait_for_page_to_load($lxtest->{timeout});
+$sel->click_ok("delete_8");
+$sel->click_ok("//tr[9]/td[1]/a/img");
+$sel->wait_for_page_to_load($lxtest->{timeout});
+$sel->click_ok("//tr[8]/td[1]/a[1]/img");
+$sel->wait_for_page_to_load($lxtest->{timeout});
+$sel->click_ok("//tr[7]/td[1]/a[2]/img");
+$sel->wait_for_page_to_load($lxtest->{timeout});
+$sel->click_ok("//tr[8]/td[1]/a[2]/img");
+$sel->wait_for_page_to_load($lxtest->{timeout});
+$sel->click_ok("delete_8");
+$sel->click_ok("document.forms[0].action[1]");
+$sel->wait_for_page_to_load($lxtest->{timeout});
+
--- /dev/null
+diag("Add show and delete service measure");
+
+if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
+ require_ok("../../begin/B004Login.t");
+}
+
+$sel->select_frame_ok("relative=up");
+$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
+$sel->click_ok("link=Dienstleistungseinheiten");
+$sel->wait_for_page_to_load($lxtest->{timeout});
+$sel->select_frame_ok("main_window");
+$sel->type_ok("new_name", "ProggerStunde");
+$sel->select_ok("new_base_unit", "label=Std");
+$sel->type_ok("new_factor", "2,0");
+$sel->type_ok("new_localized_" . $lxtest->{lang_id}, "Dinges");
+$sel->type_ok("new_localized_plural_" . $lxtest->{lang_id}, "Dingeses");
+$sel->click_ok("action");
+$sel->wait_for_page_to_load($lxtest->{timeout});
+$sel->click_ok("//tr[6]/td[1]/a/img");
+$sel->wait_for_page_to_load($lxtest->{timeout});
+$sel->click_ok("//tr[5]/td[1]/a[2]/img");
+$sel->wait_for_page_to_load($lxtest->{timeout});
+$sel->click_ok("delete_5");
+$sel->click_ok("document.forms[0].action[1]");
+$sel->wait_for_page_to_load($lxtest->{timeout});
--- /dev/null
+diag("Delete customer/vendor types");
+
+if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
+ require_ok("../../begin/B004Login.t");
+}
+
+$sel->select_frame_ok("relative=up");
+$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
+$sel->click_ok("link=Kunden-/Lieferantentypen anzeigen");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->select_frame_ok("main_window");
+$sel->click_ok("link=Großabnehmer");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("document.forms[0].action[1]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("link=Kleinkäufer");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("document.forms[0].action[1]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
--- /dev/null
+diag("Delete payment conditions");
+
+if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
+ require_ok("../../begin/B004Login.t");
+}
+
+$sel->select_frame_ok("relative=up");
+$sel->click_ok("link=Zahlungskonditionen anzeigen");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->select_frame_ok("main_window");
+$sel->click_ok("link=Schnellzahler/Skonto");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("document.forms[0].action[1]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
--- /dev/null
+diag("Delete languages");
+
+if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
+ require_ok("../../begin/B004Login.t");
+}
+
+$sel->select_frame_ok("relative=up");
+$sel->click_ok("link=Sprachen anzeigen");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->select_frame_ok("main_window");
+$sel->click_ok("link=elbisch");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("document.forms[0].action[1]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
--- /dev/null
+diag("Delete price brackets");
+
+if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
+ require_ok("../../begin/B004Login.t");
+}
+
+$sel->select_frame_ok("relative=up");
+$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
+$sel->click_ok("link=Preisgruppen anzeigen");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->select_frame_ok("main_window");
+$sel->click_ok("action");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("link=SeleniumTestPreisgruppe1");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("document.forms[0].action[1]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("link=SeleniumTestPreisgruppe2");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("document.forms[0].action[1]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
\ No newline at end of file
--- /dev/null
+diag("Delete product groups");
+
+if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
+ require_ok("../../begin/B004Login.t");
+}
+
+$sel->select_frame_ok("relative=up");
+$sel->click_ok("link=Warengruppen anzeigen");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->select_frame_ok("main_window");
+$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("link=TestSeleniumWarengruppe1");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("document.forms[0].action[1]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("link=TestSeleniumWarengruppe2");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("document.forms[0].action[1]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("link=TestSeleniumWarengruppe3");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+$sel->click_ok("document.forms[0].action[1]");
+$sel->wait_for_page_to_load_ok($lxtest->{timeout});
\ No newline at end of file