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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to