Bug 25829 - Z39.50 search selenium test
Summary: Z39.50 search selenium test
Status: ASSIGNED
Alias: None
Product: Koha
Classification: Unclassified
Component: Test Suite (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Victor Grousset/tuxayo
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks: 19384
  Show dependency treegraph
 
Reported: 2020-06-20 04:26 UTC by Victor Grousset/tuxayo
Modified: 2020-06-21 13:38 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Grousset/tuxayo 2020-06-20 04:26:52 UTC
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]);