Bug 18804: (bug 13501 follow-up) Fix add item form (select2)
Hard to say here, select2 adds so many elements that we need to ignore. Here we just assume that input text with an id starting with tag_952_subfield must be filled Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Signed-off-by: Lee Jamison <ldjamison@marywood.edu> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
This commit is contained in:
parent
08ab41aa98
commit
8035a467f0
1 changed files with 4 additions and 0 deletions
|
@ -126,6 +126,10 @@ SKIP: {
|
|||
my $inputs = $driver->find_child_elements($form, '//input[@type="text"]');
|
||||
for my $input ( @$inputs ) {
|
||||
next if $input->is_hidden();
|
||||
|
||||
my $id = $input->get_attribute('id');
|
||||
next unless $id =~ m|^tag_952_subfield|;
|
||||
|
||||
$input->send_keys('t_value_bib'.$biblionumber);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue