X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/6c8a96c23a56f8db29948f265d895541369ac36b..0534e31033f43074b6e4ae2a1178609bd15e9813:/t/selenium/testscripts/administration/begin/A001CreateTestDatabase.t diff --git a/t/selenium/testscripts/administration/begin/A001CreateTestDatabase.t b/t/selenium/testscripts/administration/begin/A001CreateTestDatabase.t index c45e1bc7f..7a568f0e8 100644 --- a/t/selenium/testscripts/administration/begin/A001CreateTestDatabase.t +++ b/t/selenium/testscripts/administration/begin/A001CreateTestDatabase.t @@ -1,5 +1,9 @@ ### Create Database - +if(!defined $sel) { + require "t/selenium/AllTests.t"; + init_server("singlefileonly", $0); + exit(0); +} $sel->open_ok($lxtest->{lxadmin}); if($sel->get_title() eq "") { @@ -11,7 +15,7 @@ if($sel->get_title() eq "") { $sel->title_is("Lx-Office ERP Administration -"); diag('Lock the system'); -$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System sperren\")]"); +$sel->click_ok("document.forms[0].action[3]"); # Button für System sperren $sel->wait_for_page_to_load_ok($lxtest->{timeout}); $sel->title_is("Lx-Office ERP Administration -"); @@ -38,6 +42,7 @@ $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->click_ok("document.forms[0].action[3]"); # BUtton für System entsperren $sel->wait_for_page_to_load_ok($lxtest->{timeout}); $sel->title_is("Lx-Office ERP Administration -"); +1; \ No newline at end of file