Bugzilla – Attachment 67496 Details for
Bug 19243
Selenium test for testing the administration module functionality - part 1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19243 - Followup patch with xpaths changed to id's
Bug-19243---Followup-patch-with-xpaths-changed-to-.patch (text/plain), 50.75 KB, created by
Alex Buckley
on 2017-10-02 03:14:15 UTC
(
hide
)
Description:
Bug 19243 - Followup patch with xpaths changed to id's
Filename:
MIME Type:
Creator:
Alex Buckley
Created:
2017-10-02 03:14:15 UTC
Size:
50.75 KB
patch
obsolete
>From 80386f2788a402fa48de221e6acfc44a23116704 Mon Sep 17 00:00:00 2001 >From: Alex Buckley <alexbuckley@catalyst.net.nz> >Date: Mon, 2 Oct 2017 03:12:44 +0000 >Subject: [PATCH] Bug 19243 - Followup patch with xpaths changed to id's > >Sponsored-By: Catalyst IT >--- > .../prog/en/modules/admin/admin-home.tt | 64 ++++---- > .../prog/en/modules/admin/authorised_values.tt | 4 +- > .../prog/en/modules/admin/branches.tt | 8 +- > .../prog/en/modules/admin/categories.tt | 4 +- > .../intranet-tmpl/prog/en/modules/admin/cities.tt | 6 +- > .../en/modules/admin/item_circulation_alerts.tt | 2 +- > .../prog/en/modules/admin/itemtypes.tt | 4 +- > .../prog/en/modules/admin/marctagstructure.tt | 8 +- > .../prog/en/modules/admin/patron-attr-types.tt | 4 +- > .../prog/en/modules/admin/smart-rules.tt | 4 +- > .../prog/en/modules/admin/z3950servers.tt | 4 +- > .../intranet-tmpl/prog/en/modules/intranet-main.tt | 26 ++-- > t/db_dependent/selenium/administration_tasks.t | 171 ++++++++++----------- > 13 files changed, 153 insertions(+), 156 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt >index 0d43e6f..35bc94e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt >@@ -29,37 +29,37 @@ > <div class="hint"><h4>Hint:</h4><p>Configure these parameters in the order they appear.</p></div> > <h3>Basic parameters</h3> > <dl> >- <dt><a href="/cgi-bin/koha/admin/branches.pl">Libraries and groups</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/branches.pl" id="libraries">Libraries and groups</a></dt> > <dd>Define libraries and groups.</dd> >- <dt><a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/itemtypes.pl" id="itemtypes">Item types</a></dt> > <dd>Define item types used for circulation rules.</dd> >- <dt><a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized values</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/authorised_values.pl" id="authorisedvalues">Authorized values</a></dt> > <dd>Define categories and authorized values for them.</dd> > </dl> > > <h3>Patrons and circulation</h3> > <dl> >- <dt><a href="/cgi-bin/koha/admin/categories.pl">Patron categories</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/categories.pl"id="categories">Patron categories</a></dt> > <dd>Define patron categories.</dd> > [% IF CAN_user_parameters_manage_circ_rules %] >- <dt><a href="/cgi-bin/koha/admin/smart-rules.pl">Circulation and fines rules</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/smart-rules.pl" id="circulationrules">Circulation and fines rules</a></dt> > <dd>Define circulation and fines rules for combinations of libraries, patron categories, and item types</dd> > [% END %] >- <dt><a href="/cgi-bin/koha/admin/patron-attr-types.pl">Patron attribute types</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/patron-attr-types.pl" id="attributetypes">Patron attribute types</a></dt> > <dd>Define extended attributes (identifiers and statistical categories) for patron records</dd> >- <dt><a href="/cgi-bin/koha/admin/branch_transfer_limits.pl">Library transfer limits</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/branch_transfer_limits.pl" id="transferlimits">Library transfer limits</a></dt> > <dd>Limit the ability to transfer items between libraries based on the library sending, the library receiving, and the item type involved. These rules only go into effect if the preference UseBranchTransferLimits is set to ON.</dd> >- <dt><a href="/cgi-bin/koha/admin/transport-cost-matrix.pl">Transport cost matrix</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/transport-cost-matrix.pl" id="costmatrix">Transport cost matrix</a></dt> > <dd>Define transport costs between branches</dd> >- <dt><a href="/cgi-bin/koha/admin/item_circulation_alerts.pl">Item circulation alerts</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/item_circulation_alerts.pl" id="circulationalters">Item circulation alerts</a></dt> > <dd>Define rules for check-in and checkout notifications for combinations of libraries, patron categories, and item types</dd> >- <dt><a href="/cgi-bin/koha/admin/cities.pl">Cities and towns</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/cities.pl" id="cities">Cities and towns</a></dt> > <dd>Define cities and towns that your patrons live in.</dd> > </dl> > [% IF CAN_user_plugins %] > <h3>Plugins</h3> > <dl> >- <dt><a href="/cgi-bin/koha/plugins/plugins-home.pl">Manage plugins</a></dt> >+ <dt><a href="/cgi-bin/koha/plugins/plugins-home.pl" id="plugins">Manage plugins</a></dt> > <dd>View, manage, configure and run plugins.</dd> > </dl> > [% END %] >@@ -67,44 +67,44 @@ > <div class="yui-u"> > <h3>Catalog</h3> > <dl> >- <dt><a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC bibliographic framework</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/biblio_framework.pl" id="marcframework">MARC bibliographic framework</a></dt> > <dd>Create and manage Bibliographic frameworks that define the characteristics of your MARC Records (field and subfield definitions) as well as templates for the MARC editor.</dd> >- <dt><a href="/cgi-bin/koha/admin/koha2marclinks.pl">Koha to MARC mapping</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/koha2marclinks.pl" id="mapping">Koha to MARC mapping</a></dt> > <dd>Define the mapping between the Koha transactional database (SQL) and the MARC Bibliographic records. Note that the mapping can be defined through MARC Bibliographic Framework. This tool is just a shortcut to speed up linkage.</dd> >- <dt><a href="/cgi-bin/koha/admin/fieldmapping.pl">Keywords to MARC mapping</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/fieldmapping.pl" id="keywords">Keywords to MARC mapping</a></dt> > <dd>Define the mapping between keywords and MARC fields. The keywords are used to find some data independently of the framework.</dd> >- <dt><a href="/cgi-bin/koha/admin/checkmarc.pl">MARC Bibliographic framework test</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/checkmarc.pl" id="frameworktest">MARC Bibliographic framework test</a></dt> > <dd>Checks the MARC structure. If you change your MARC Bibliographic framework it's recommended that you run this tool to test for errors in your definition.</dd> >- <dt><a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/authtypes.pl" if="authoritytypes">Authority types</a></dt> > <dd>Create and manage Authorities frameworks that define the characteristics of your MARC Records (field and subfield definitions).</dd> >- <dt><a href="/cgi-bin/koha/admin/classsources.pl">Classification sources</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/classsources.pl" id="classification">Classification sources</a></dt> > <dd>Define classification sources (i.e., call number schemes) used by your collection. Also define filing rules used for sorting call numbers.</dd> >- <dt><a href="/cgi-bin/koha/admin/matching-rules.pl">Record matching rules</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/matching-rules.pl" id="matchingrules">Record matching rules</a></dt> > <dd>Manage rules for automatically matching MARC records during record imports.</dd> >- <dt><a href="/cgi-bin/koha/admin/oai_sets.pl">OAI sets configuration</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/oai_sets.pl" id="OAIsets">OAI sets configuration</a></dt> > <dd>Manage OAI Sets</dd> >- <dt><a href="/cgi-bin/koha/admin/items_search_fields.pl">Item search fields</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/items_search_fields.pl" id="searchfields">Item search fields</a></dt> > <dd>Manage custom fields for item search.</dd> > [% IF Koha.Preference('SearchEngine') == 'Elasticsearch' %] >- <dt><a href="/cgi-bin/koha/admin/searchengine/elasticsearch/mappings.pl">Search engine configuration</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/searchengine/elasticsearch/mappings.pl" id="searchconfig">Search engine configuration</a></dt> > <dd>Manage indexes, facets, and their mappings to MARC fields and subfields.</dd> > [% END %] > </dl> > > <h3>Acquisition parameters</h3> > <dl> >- <dt><a href="/cgi-bin/koha/admin/currency.pl">Currencies and exchange rates</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/currency.pl" id="currencyrates">Currencies and exchange rates</a></dt> > <dd>Define currencies and exchange rates used for acquisitions.</dd> > >- <dt><a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/aqbudgetperiods.pl" id="budgets">Budgets</a></dt> > <dd>Define your budgets</dd> > >- <dt><a href="/cgi-bin/koha/admin/aqbudgets.pl">Funds</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/aqbudgets.pl" id="funds">Funds</a></dt> > <dd>Define funds within your budgets</dd> > >- <dt><a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/edi_accounts.pl" id="EDIaccounts">EDI accounts</a></dt> > <dd>Manage vendor EDI accounts for import/export</dd> >- <dt><a href="/cgi-bin/koha/admin/edi_ean_accounts.pl">Library EANs</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/edi_ean_accounts.pl" id="libraryEAN">Library EANs</a></dt> > <dd>Manage library EDI EANs</dd> > </dl> > >@@ -112,19 +112,19 @@ > <dl> > <!-- <dt><a href="/cgi-bin/koha/admin/printers.pl">Network Printers</a></dt> > <dd>Printers (UNIX paths).</dd> --> >- <dt><a href="/cgi-bin/koha/admin/z3950servers.pl">Z39.50/SRU servers</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/z3950servers.pl" id="z39.50server">Z39.50/SRU servers</a></dt> > <dd>Define which external servers to query for MARC data.</dd> >- <dt><a href="/cgi-bin/koha/admin/didyoumean.pl">Did you mean?</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/didyoumean.pl"id="didyoumean">Did you mean?</a></dt> > <dd>Choose which plugins to use to suggest searches to patrons and staff.</dd> >- <dt><a href="/cgi-bin/koha/admin/columns_settings.pl">Configure columns</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/columns_settings.pl" id="configurecolumns">Configure columns</a></dt> > <dd>Hide or show columns for tables.</dd> >- <dt><a href="/cgi-bin/koha/admin/audio_alerts.pl">Audio alerts</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/audio_alerts.pl" id="audioalerts">Audio alerts</a></dt> > <dd>Define which events trigger which sounds</dd> > [% IF Koha.Preference('SMSSendDriver') == 'Email' %] >- <dt><a href="/cgi-bin/koha/admin/sms_providers.pl">SMS cellular providers</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/sms_providers.pl" id="smsproviders">SMS cellular providers</a></dt> > <dd>Define a list of cellular providers for sending SMS messages via email.</dd> > [% END %] >- <dt><a href="/cgi-bin/koha/admin/usage_statistics.pl">Share your usage statistics</a></dt> >+ <dt><a href="/cgi-bin/koha/admin/usage_statistics.pl" id="usagestats">Share your usage statistics</a></dt> > <dd>Share with the Koha community the usage statistics of your Koha installation.</dd> > </dl> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >index 5aee840..3484588 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >@@ -56,7 +56,7 @@ $(document).ready(function() { > <body id="admin_authorised_values" class="admin"> > [% INCLUDE 'header.inc' %] > [% INCLUDE 'prefs-admin-search.inc' %] >-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › [% IF op == 'add_form' %] <a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized values</a> › [% IF ( action_modify ) %]Modify authorized value[% END %] >+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl" id="home">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl" id="administration">Administration</a> › [% IF op == 'add_form' %] <a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized values</a> › [% IF ( action_modify ) %]Modify authorized value[% END %] > [% IF ( action_add_value ) %]New authorized value[% END %] > [% IF ( action_add_category ) %]New category[% END %][% END %] > [% IF op == 'list' %]Authorized values[% END %]</div> >@@ -156,7 +156,7 @@ $(document).ready(function() { > [% END %] > </fieldset> > <fieldset class="action"> <input type="hidden" name="id" value="[% id %]" /> >- <input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=[% category %]">Cancel</a></fieldset> >+ <input type="submit" value="Save" id="save" /> <a class="cancel" href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=[% category %]">Cancel</a></fieldset> > </form> > [% END %] > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >index 7a5f22a..6f6b372 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >@@ -59,9 +59,9 @@ tinyMCE.init({ > [% INCLUDE 'prefs-admin-search.inc' %] > > <div id="breadcrumbs"> >- <a href="/cgi-bin/koha/mainpage.pl">Home</a> >-› <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> >-› <a href="/cgi-bin/koha/admin/branches.pl">Libraries and groups</a> >+ <a href="/cgi-bin/koha/mainpage.pl" id="home">Home</a> >+› <a href="/cgi-bin/koha/admin/admin-home.pl" id="administration">Administration</a> >+› <a href="/cgi-bin/koha/admin/branches.pl" id="libraries">Libraries and groups</a> > [% IF op == 'add_form_category' %] > › [% IF category.categorycode %]Edit group [% category.categorycode %][% ELSE %]New group[% END %] > [% ELSIF op == 'delete_confirm_category' %] >@@ -195,7 +195,7 @@ tinyMCE.init({ > </ol> > </fieldset> > <fieldset class="action"> >- <input type="submit" value="Submit" /> >+ <input type="submit" value="Submit" id="submit" /> > <a class="cancel" href="/cgi-bin/koha/admin/branches.pl">Cancel</a> > </fieldset> > </form> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt >index e33b36f..3eb4b29 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt >@@ -21,7 +21,7 @@ > [% INCLUDE 'header.inc' %] > [% INCLUDE 'patrons-admin-search.inc' %] > >-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › [% IF op == 'add_form' %] <a href="/cgi-bin/koha/admin/categories.pl">Patron categories</a> › [% IF ( categorycode ) %]Modify category '[% categorycode |html %]'[% ELSE %]New category[% END %][% END %] >+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl" id="home">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl" id="administration">Administration</a> › [% IF op == 'add_form' %] <a href="/cgi-bin/koha/admin/categories.pl">Patron categories</a> › [% IF ( categorycode ) %]Modify category '[% categorycode |html %]'[% ELSE %]New category[% END %][% END %] > [% IF op == 'delete_confirm' %] <a href="/cgi-bin/koha/admin/categories.pl">Patron categories</a> › [% IF ( patrons_in_category > 0 ) %]Cannot delete: Category [% categorycode |html %] in use[% ELSE %]Confirm deletion of category '[% categorycode |html %]'[% END %][% END %] > [% IF op == 'delete_confirmed' %] <a href="/cgi-bin/koha/admin/categories.pl">Patron categories</a> › Category deleted[% END %] > [% IF op == 'list' %]Patron categories[% END %]</div> >@@ -243,7 +243,7 @@ > </fieldset> > [% END %] > <fieldset class="action"> >- <input type="submit" value="Save" /> >+ <input type="submit" value="Save" id="save"/> > <a href="/cgi-bin/koha/admin/categories.pl" class="cancel">Cancel</a> > </fieldset> > </form> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt >index 7acb4d6..92a449e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt >@@ -23,8 +23,8 @@ > [% INCLUDE 'cities-admin-search.inc' %] > > <div id="breadcrumbs"> >- <a href="/cgi-bin/koha/mainpage.pl">Home</a> >- › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> >+ <a href="/cgi-bin/koha/mainpage.pl" id="home">Home</a> >+ › <a href="/cgi-bin/koha/admin/admin-home.pl" id="administration">Administration</a> > › <a href="/cgi-bin/koha/admin/cities.pl">Cities</a> > [% IF op == 'add_form' %] > › [% IF city.cityid %]Modify[% ELSE %]New[% END %] City >@@ -98,7 +98,7 @@ > </fieldset> > > <fieldset class="action"> >- <input type="submit" value="Submit" /> >+ <input type="submit" value="Submit" id="submit"/> > <a class="cancel" href="/cgi-bin/koha/admin/cities.pl">Cancel</a> > </fieldset> > </form> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/item_circulation_alerts.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/item_circulation_alerts.tt >index a765174..75cf83f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/item_circulation_alerts.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/item_circulation_alerts.tt >@@ -89,7 +89,7 @@ $(function(){ > <body id="admin_item_circulation_alerts" class="admin"> > [% INCLUDE 'header.inc' %] > [% INCLUDE 'prefs-admin-search.inc' %] >-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › Item circulation alerts </div> >+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl" id="home">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl" id="administration">Administration</a> › Item circulation alerts </div> > > <div id="doc3" class="yui-t1"> > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >index 0d07187..77cbe27 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >@@ -60,7 +60,7 @@ Data deleted > [% INCLUDE 'header.inc' %] > [% INCLUDE 'prefs-admin-search.inc' %] > >-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › [% IF op == 'add_form' %] >+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl" id="home">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl" id="administration">Administration</a> › [% IF op == 'add_form' %] > [% IF itemtype %] > <a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a> › Modify item type '[% itemtype.itemtype %]' > [% ELSE %] >@@ -300,7 +300,7 @@ Item types administration > </fieldset> > > <fieldset class="action"> >- <input type="submit" value="Save changes" /> >+ <input type="submit" value="Save changes" id="save"/> > <a href="/cgi-bin/koha/admin/itemtypes.pl" class="cancel">Cancel</a> > </fieldset> > </form> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt >index a5d354d..4b26c13 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt >@@ -35,9 +35,9 @@ $(document).ready(function() { > [% INCLUDE 'prefs-admin-search.inc' %] > > <div id="breadcrumbs"> >- <a href="/cgi-bin/koha/mainpage.pl">Home</a> >-› <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> >-› <a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC frameworks</a> >+ <a href="/cgi-bin/koha/mainpage.pl" id="home">Home</a> >+› <a href="/cgi-bin/koha/admin/admin-home.pl" id="administration">Administration</a> >+› <a href="/cgi-bin/koha/admin/biblio_framework.pl" id="marcframeworks">MARC frameworks</a> > [% IF ( add_form ) %] > › <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% framework.frameworkcode %]">[% IF framework %][% framework.frameworktext %] ([% framework.frameworkcode %])[% ELSE %]Default MARC framework[% END%]</a> > › [% action %] [% searchfield %] >@@ -107,7 +107,7 @@ $(document).ready(function() { > (if you select a value here, the indicators will be limited to the authorized value list)</li> > </ol></fieldset> > <fieldset class="action"> >- <input type="submit" value="Save changes" /> >+ <input type="submit" value="Save changes" id="save" /> > <a class="cancel" href="[% script_name %]?frameworkcode=[% framework.frameworkcode %]">Cancel</a> > </fieldset> > </form> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt >index b0c49bf..46de41e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt >@@ -36,7 +36,7 @@ $(document).ready(function() { > [% INCLUDE 'header.inc' %] > [% INCLUDE 'prefs-admin-search.inc' %] > >-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › [% IF ( display_list ) %]Patron attribute types[% ELSE %]<a href="/cgi-bin/koha/admin/patron-attr-types.pl">Patron attribute types</a>[% END %] >+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl" id="home">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl" id="administration">Administration</a> › [% IF ( display_list ) %]Patron attribute types[% ELSE %]<a href="/cgi-bin/koha/admin/patron-attr-types.pl">Patron attribute types</a>[% END %] > [% IF ( attribute_type_form ) %] > [% IF ( edit_attribute_type ) %] > › Modify patron attribute type >@@ -210,7 +210,7 @@ $(document).ready(function() { > </ol> > </fieldset> > <fieldset class="action"> >- <input type="submit" value="Save" /> >+ <input type="submit" value="Save" id="save" /> > <a class="cancel" href="/cgi-bin/koha/admin/patron-attr-types.pl">Cancel</a> > </fieldset> > </form> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >index 0283d80..82e19e8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >@@ -113,7 +113,7 @@ $(document).ready(function() { > [% INCLUDE 'header.inc' %] > [% INCLUDE 'prefs-admin-search.inc' %] > >-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › Circulation and fine rules</div> >+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl" id="home">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl" id="administration">Administration</a> › Circulation and fine rules</div> > > <div id="doc3" class="yui-t1"> > >@@ -387,7 +387,7 @@ $(document).ready(function() { > <td><input type="text" name="rentaldiscount" id="rentaldiscount" size="2" /></td> > <td class="actions"> > <input type="hidden" name="branch" value="[% current_branch %]"/> >- <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> Save</button> >+ <button type="submit" class="btn btn-default btn-xs" id="save"><i class="fa fa-save"></i> Save</button> > <button name="cancel" class="clear_edit btn btn-default btn-xs"><i class="fa fa-undo"></i> Clear</button> > </td> > </tr> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt >index 4a6a968..8eaa3ed 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt >@@ -93,7 +93,7 @@ > [% INCLUDE 'header.inc' %] > [% INCLUDE 'z3950-admin-search.inc' %] > >-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › >+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl" id="home">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl" id="administration">Administration</a> › > <a href="/cgi-bin/koha/admin/z3950servers.pl">Z39.50/SRU servers</a> > [% IF op == 'edit' %]› Modify [% PROCESS ServerType %] server [% server.servername %][% END %] > [% IF op == 'add' %]› New [% PROCESS ServerType %] server[% END %] >@@ -212,7 +212,7 @@ > </ol> > </fieldset> > >- <fieldset class="action"><input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/admin/z3950servers.pl">Cancel</a></fieldset> >+ <fieldset class="action"><input type="submit" value="Save" id="save"/> <a class="cancel" href="/cgi-bin/koha/admin/z3950servers.pl">Cancel</a></fieldset> > </form> > [% END %] > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt >index a94b2e4..234c98b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt >@@ -28,39 +28,39 @@ > <ul class="biglinks-list"> > [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %] > <li> >- <a class="icon_general icon_circulation" href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> >+ <a class="icon_general icon_circulation" href="/cgi-bin/koha/circ/circulation-home.pl" id="circulation">Circulation</a> > </li> > [% END %] > > [% IF ( CAN_user_borrowers ) %] > <li> >- <a class="icon_general icon_patrons" href="/cgi-bin/koha/members/members-home.pl">Patrons</a> >+ <a class="icon_general icon_patrons" href="/cgi-bin/koha/members/members-home.pl" id="patrons">Patrons</a> > </li> > [% END %] > > [% IF ( CAN_user_catalogue ) %] > <li> >- <a class="icon_general icon_search" href="/cgi-bin/koha/catalogue/search.pl">Advanced search</a> >+ <a class="icon_general icon_search" href="/cgi-bin/koha/catalogue/search.pl" id="advancedsearch">Advanced search</a> > </li> > [% END %] > > <li> >- <a class="icon_general icon_lists" href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a> >+ <a class="icon_general icon_lists" href="/cgi-bin/koha/virtualshelves/shelves.pl" id="lists">Lists</a> > </li> > > [% IF ( UseCourseReserves ) %] > <li> >- <a class="icon_general icon_course_reserves" href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a> >+ <a class="icon_general icon_course_reserves" href="/cgi-bin/koha/course_reserves/course-reserves.pl" id="reserves">Course reserves</a> > </li> > [% END %] > > [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %] > <li> >- <a class="icon_general icon_cataloging" href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a> >+ <a class="icon_general icon_cataloging" href="/cgi-bin/koha/cataloguing/addbooks.pl" id="cataloguing">Cataloging</a> > </li> > [% END %] > <li> >- <a class="icon_general icon_authorities" href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a> >+ <a class="icon_general icon_authorities" href="/cgi-bin/koha/authorities/authorities-home.pl" id="authorities">Authorities</a> > </li> > </ul> > </div><!-- /area-list-left --> >@@ -70,38 +70,38 @@ > <ul class="biglinks-list"> > [% IF ( CAN_user_serials ) %] > <li> >- <a class="icon_general icon_serials" href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> >+ <a class="icon_general icon_serials" href="/cgi-bin/koha/serials/serials-home.pl" id="serials">Serials</a> > <span class="biglink"></span> > </li> > [% END %] > > [% IF ( CAN_user_acquisition ) %] > <li> >- <a class="icon_general icon_acquisitions" href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> >+ <a class="icon_general icon_acquisitions" href="/cgi-bin/koha/acqui/acqui-home.pl" id="acquisitions">Acquisitions</a> > <span class="biglink"></span> > </li> > [% END %] > > [% IF ( CAN_user_reports ) %] > <li> >- <a class="icon_general icon_reports" href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> >+ <a class="icon_general icon_reports" href="/cgi-bin/koha/reports/reports-home.pl" id="reports">Reports</a> > </li> > [% END %] > > > [% IF ( CAN_user_tools ) %] > <li> >- <a class="icon_general icon_tools" href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> >+ <a class="icon_general icon_tools" href="/cgi-bin/koha/tools/tools-home.pl" id="tools">Tools</a> > </li> > [% END %] > > [% IF ( CAN_user_parameters ) %] > <li> >- <a class="icon_general icon_administration" href="/cgi-bin/koha/admin/admin-home.pl">Koha administration</a> >+ <a class="icon_general icon_administration" href="/cgi-bin/koha/admin/admin-home.pl" id="administration">Koha administration</a> > </li> > [% END %] > <li> >- <a class="icon_general icon_koha" href="/cgi-bin/koha/about.pl">About Koha</a> >+ <a class="icon_general icon_koha" href="/cgi-bin/koha/about.pl" id="about">About Koha</a> > </li> > </ul> > </div><!-- /area-list-right --> >diff --git a/t/db_dependent/selenium/administration_tasks.t b/t/db_dependent/selenium/administration_tasks.t >index 160395b..ed3db0d 100644 >--- a/t/db_dependent/selenium/administration_tasks.t >+++ b/t/db_dependent/selenium/administration_tasks.t >@@ -38,6 +38,10 @@ my $password = 'koha'; > my $base_url= 'http://'.C4::Context->preference("staffClientBaseURL")."/cgi-bin/koha/"; > my $opac_url= C4::Context->preference("OPACBaseURL"); > >+BEGIN { >+ my $debug = $ENV{DEBUG}; >+} >+ > my $number_of_biblios_to_insert = 0; > our $sample_data = { > category => { >@@ -77,18 +81,16 @@ SKIP: { > t::lib::Selenium::time_diff($prev_time, "main"); > > # Navigate to the Administration area and create an item type >- $driver->find_element('//a[@href="/cgi-bin/koha/admin/admin-home.pl"]')->click; >+ $driver->find_element('//a[@id="administration"]')->click; > # t::lib::Selenium::pause_driver($driver, '/html/body/div[4]/div/div/div[2]/div[1]/dl[1]/dt[2]/a'); >-# $driver->pause(20000); > $driver->pause(20000); >-# $driver->find_element_by_xpath('/html/body/div[4]/div/div/div[2]/div[1]/dl[1]/dt[2]/a')->click; >-# $$driver->find_element_by_xpath('/html/body/div[4]/div/div/div[2]/div[1]/dl[1]/dt[2]/a')->click; >+ $driver->find_element('//a[@id="itemtypes"]')->click; > $driver->pause(20000); > $driver->find_element('//a[@id="newitemtype"]')->click; > $driver->pause(20000); > $driver->find_element('//input[@id="itemtype"]')->send_keys("DVD"); > $driver->find_element('//input[@id="description"]')->send_keys("Digital Optical Disc"); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[2]/input')->click; >+ $driver->find_element('//input[@id="save"]')->click; > if ( $driver->find_element('//a[@href="/cgi-bin/koha/admin/itemtypes.pl?op=add_form&itemtype=DVD"]')) { > t::lib::Selenium::time_diff($prev_time, "Item type successfully added"); > } else { >@@ -96,60 +98,55 @@ SKIP: { > } > > # Add circulation/fine rules >- $driver->pause(20000); >- $driver->find_element('//input[@href="/cgi-bin/koha/admin/admin-home.pl"]')->click; >- $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div/div[2]/div[1]/dl[2]/dt[2]/a')->click; >- $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div[2]/form[3]/table/tbody/tr[2]/td[3]/input')->send_keys("5"); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div[2]/form[3]/table/tbody/tr[2]/td[4]/input')->send_keys("4"); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div[2]/form[3]/table/tbody/tr[2]/td[16]/input')->send_keys("4"); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div[2]/form[3]/table/tbody/tr[2]/td[17]/input')->send_keys("10"); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div[2]/form[3]/table/tbody/tr[2]/td[22]/input')->send_keys("4"); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div[2]/form[3]/table/tbody/tr[2]/td[23]/input')->send_keys("4"); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div[2]/form[3]/table/tbody/tr[2]/td[28]/button[1]')->click; >+ $driver->find_element('//a[@id="administration"]')->click; >+ $driver->find_element('//a[@id="circulationrules"]')->click; >+ $driver->pause(20000); >+ $driver->find_element('//input[@id="maxissueqty"]')->send_keys("5"); >+ $driver->find_element('//input[@id="maxonsiteissueqty"]')->send_keys("4"); >+ $driver->find_element('//input[@id="renewalsallowed"]')->send_keys("4"); >+ $driver->find_element('//input[@id="renewalperiod"]')->send_keys("10"); >+ $driver->find_element('//input[@id="reservesallowed"]')->send_keys("4"); >+ $driver->find_element('//input[@id="holds_per_record"]')->send_keys("4"); >+ $driver->find_element('//button[@id="save"]')->click; > t::lib::Selenium::time_diff($prev_time, "Circulation rule added"); > > # Modify frameworks > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[3]/a[2]')->click; >+ $driver->find_element('//a[@id="administration"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div/div[2]/div[2]/dl[1]/dt[1]/a')->click; >+ $driver->find_element('//a[@id="marcframework"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div[2]/table/tbody/tr[5]/td[3]/div/a')->click; >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div[2]/table/tbody/tr[5]/td[3]/div/ul/li[1]/a')->click; >+ $driver->find_element('//a[@id="frameworkactionsFA"]')->click; >+ $driver->find_element('//a[@href="marctagstructure.pl?frameworkcode=FA"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div[2]/table/tbody/tr[3]/td[6]/div/a')->click; >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div[2]/table/tbody/tr[3]/td[6]/div/ul/li[3]/a')->click; >+ $driver->find_element('//a[@id="marctagactions010"]')->click; >+ $driver->find_element('//a[@href="/cgi-bin/koha/admin/marctagstructure.pl?op=delete_confirm&searchfield=010&frameworkcode=FA"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div/form[1]/button')->click; >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div/form/button')->click; >+ $driver->find_element('//button[@class="approve"]')->click; >+ $driver->find_element('//button[@class="approve"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div[1]/a')->click; >+ $driver->find_element('//a[@id="addtag"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[1]/input')->send_keys("092"); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[2]/input')->send_keys("Local Dewey"); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[3]/input')->send_keys("Local Dewey"); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[2]/input')->click; >+ $driver->find_element('//input[@id="tagfield"]')->send_keys("092"); >+ $driver->find_element('//input[@id="liblibrarian"]')->send_keys("Local Dewey"); >+ $driver->find_element('//input[@id="libopac"]')->send_keys("Local Dewey"); >+ $driver->find_element('//input[@id="save"]')->click; > $driver->pause(20000); > t::lib::Selenium::time_diff($prev_time, "Added subfield to framework"); > > #Add library >- $driver->get_title(); >- $driver->find_element_by_xpath('/html/body/div[2]/h1/a')->click; >- $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div[1]/div[2]/div/ul/li[5]/a')->click; >+ $driver->find_element('//a[@id="administration"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div/div[2]/div[1]/dl[1]/dt[1]/a')->click; >+ $driver->find_element('//a[@id="libraries"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div[1]/a[1]')->click; >+ $driver->find_element('//a[@id="newbranch"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[1]/input')->send_keys("Test"); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[2]/input')->send_keys("Test library"); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[3]/input')->click; >+ $driver->find_element('//input[@id="branchcode"]')->send_keys("Test"); >+ $driver->find_element('//input[@id="branchname"]')->send_keys("Test library"); >+ $driver->find_element('//input[@id="submit"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div[3]/div[1]/div[2]/label/select')->click; >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div[3]/div[1]/div[2]/label/select/option[3]')->click; >+ $driver->find_element('//select[@name="branchest_length"]')->click; >+ $driver->find_element('//option[@value="50"]')->click; > if ($driver->find_element('//td[text()="Test library"]')) { > t::lib::Selenium::time_diff($prev_time, "Library successfully added"); > } else { >@@ -158,19 +155,19 @@ SKIP: { > > > #Add authorised values >- $driver->find_element_by_xpath('/html/body/div[3]/a[2]')->click; >+ $driver->find_element('//a[@id="administration"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div/div[2]/div[1]/dl[1]/dt[3]/a')->click; >+ $driver->find_element('//a[@id="authorisedvalues"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/select')->click; >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/select/option[7]')->click; >+ $driver->find_element('//select[@id="searchfield"]')->click; >+ $driver->find_element('//option[@value="CCODE"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div[1]/a[1]')->click; >+ $driver->find_element('//a[@id="addauth"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[2]/input')->send_keys("HBK"); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[3]/input')->send_keys("Hardback"); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[4]/input')->send_keys("Hardcover"); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[2]/input[2]')->click; >+ $driver->find_element('//input[@id="authorised_value"]')->send_keys("HBK"); >+ $driver->find_element('//input[@id="lib"]')->send_keys("Hardback"); >+ $driver->find_element('//input[@id="lib_opac"]')->send_keys("Hardcover"); >+ $driver->find_element('//input[@id="save"]')->click; > if ($driver->find_element('//td[text()="HBK"]')) { > t::lib::Selenium::time_diff($prev_time, "Authorised value successfully added"); > } else { >@@ -178,18 +175,18 @@ SKIP: { > } > > #Patron category >- $driver->find_element_by_xpath('/html/body/div[3]/a[2]')->click; >+ $driver->find_element('//a[@id="administration"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div/div[2]/div[1]/dl[2]/dt[1]/a')->click; >+ $driver->find_element('//a[@id="categories"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div[1]/a')->click; >+ $driver->find_element('//a[@id="newcategory"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[1]/input')->send_keys("AD"); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[2]/input')->send_keys("Adult"); >- $driver->find_element_by_xpath("/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[3]/fieldset/ol/li[1]/input")->send_keys(12); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[10]/select')->click; >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[10]/select/option[6]')->click; >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[2]/input')->click; >+ $driver->find_element('//input[@id="categorycode"]')->send_keys("AD"); >+ $driver->find_element('//input[@id="description"]')->send_keys("Adult"); >+ $driver->find_element('//input[@id="enrolmentperiod"]')->send_keys(12); >+ $driver->find_element('//select[@id="category_type"]')->click; >+ $driver->find_element('//option[@value="P"]')->click; >+ $driver->find_element('//input[@id="save"]')->click; > $driver->pause(20000); > if ($driver->find_element('//td[text()="AD"]')) { > t::lib::Selenium::time_diff($prev_time, "Patron category successfully added"); >@@ -198,17 +195,17 @@ SKIP: { > } > > #Add patron attribute type >- $driver->find_element_by_xpath('/html/body/div[3]/a[2]')->click; >+ $driver->find_element('//a[@id="administration"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div/div[2]/div[1]/dl[2]/dt[3]/a')->click; >+ $driver->find_element('//a[@id="attributetypes"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div[2]/a')->click; >+ $driver->find_element('//a[@id="newrule"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[1]/input')->send_keys("DL"); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[2]/input')->send_keys("Driver's License"); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[11]/select')->click; >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[11]/select/option[2]')->click; >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[2]/input')->click; >+ $driver->find_element('//input[@id="code"]')->send_keys("DL"); >+ $driver->find_element('//input[@id="description"]')->send_keys("Driver's License"); >+ $driver->find_element('//select[@id="category"]')->click; >+ $driver->find_element('//option[@value="BOR_NOTES"]')->click; >+ $driver->find_element('//input[@id="save"]')->click; > $driver->pause(20000); > if ($driver->find_element('//td[text()="DL"]')) { > t::lib::Selenium::time_diff($prev_time, "Patron attribute type successfully added"); >@@ -217,19 +214,19 @@ SKIP: { > } > > #Add Z39.50 target server >- $driver->find_element_by_xpath('/html/body/div[3]/a[2]')->click; >+ $driver->find_element('//a[@id="administration"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div/div[2]/div[2]/dl[3]/dt[1]/a')->click; >+ $driver->find_element('//a[@id="z39.50server"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div[1]/a[1]')->click; >+ $driver->find_element('//a[@id="newserver"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[1]/input')->send_keys("University of London"); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[2]/input')->send_keys("consull.ull.ac.uk"); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[3]/input')->send_keys(210); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[4]/input')->send_keys("INNOPAC"); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[9]/select')->click; >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[9]/select/option[4]')->click; >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[2]/input')->click; >+ $driver->find_element('//input[@id="servername"]')->send_keys("University of London"); >+ $driver->find_element('//input[@id="host"]')->send_keys("consull.ull.ac.uk"); >+ $driver->find_element('//input[@id="port"]')->send_keys(210); >+ $driver->find_element('//input[@id="db"]')->send_keys("INNOPAC"); >+ $driver->find_element('//select[@id="syntax"]')->click; >+ $driver->find_element('//option[@value="USMARC"]')->click; >+ $driver->find_element('//input[@id="save"]')->click; > $driver->pause(20000); > if ($driver->find_element('//td[text()="consull.ull.ac.uk:210"]')) { > t::lib::Selenium::time_diff($prev_time, "Z39.50 target successfully added"); >@@ -238,24 +235,24 @@ SKIP: { > } > > #Add item circulation alerts >- $driver->find_element_by_xpath('/html/body/div[3]/a[2]')->click; >+ $driver->find_element('//a[@id="administration"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div/div[2]/div[1]/dl[2]/dt[6]/a')->click; >+ $driver->find_element('//a[@id="circulationalters"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div[2]/div[1]/table/tbody/tr[1]/td[1]')->click; >+ $driver->find_element('//td[@id="B-BK-CHECKOUT"]')->click; > t::lib::Selenium::time_diff($prev_time, "Added item circulation alert"); > > #Add city >- $driver->find_element_by_xpath('/html/body/div[3]/a[2]')->click; >+ $driver->find_element('//a[@id="administration"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div/div[2]/div[1]/dl[2]/dt[7]/a')->click; >+ $driver->find_element('//a[@id="cities"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/div[1]/a')->click; >+ $driver->find_element('//a[@id="newcity"]')->click; > $driver->pause(20000); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[1]/input')->send_keys("Wellington"); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[3]/input')->send_keys(6011); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[1]/ol/li[4]/input')->send_keys("New Zealand"); >- $driver->find_element_by_xpath('/html/body/div[4]/div/div[1]/div/form/fieldset[2]/input')->click; >+ $driver->find_element('//input[@id="city_name"]')->send_keys("Wellington"); >+ $driver->find_element('//input[@id="city_zipcode"]')->send_keys(6011); >+ $driver->find_element('//input[@id="city_country"]')->send_keys("New Zealand"); >+ $driver->find_element('//input[@id="submit"]')->click; > $driver->pause(20000); > if ($driver->find_element('//td[text()="Wellington"]')) { > t::lib::Selenium::time_diff($prev_time, "City successfully added"); >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19243
:
66788
|
67433
|
67492
|
67493
|
67494
|
67495
|
67496
|
67497
|
68123
|
68124
|
68125
|
68832
|
68833
|
69757
|
69939
|
70160
|
70161
|
70162
|
70163
|
70164
|
70268
|
70269
|
70270