[Koha-bugs] [Bug 25829] New: Z39.50 search selenium test

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Jun 20 06:26:52 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25829

            Bug ID: 25829
           Summary: Z39.50 search selenium test
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Test Suite
          Assignee: chris at bigballofwax.co.nz
          Reporter: victor at tuxayo.net
        QA Contact: testopia at bugs.koha-community.org

Here is some code to reuse from bug 18974 because Z39.50 won't be used:

# Go to Cataloging page
    $s->click( { href => '/cataloguing/addbooks.pl',
                 main => 'container-main' } );
    $s->click( { id => 'z3950search' } );

# Z39.50 search pop up
    my $handles = $driver->get_window_handles;
    $driver->switch_to_window($handles->[1]);
    $s->fill_form(
        {
            title  => "The Iliad",
            author => "Homer"
        }
    );
    $s->submit_form;

# Import the MARC result
    # open the "Actions" dropdown of the first result
    $driver->find_element_by_css("tr:nth-of-type(1)
[id*=cataloguesearchactions]")->click;
    # "Import" the first result
    $driver->find_element_by_css("tr:nth-of-type(1) .import_record")->click;
    $driver->switch_to_window($handles->[0]);

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list