View | Details | Raw Unified | Return to bug 29458
Collapse All | Expand All

(-)a/t/lib/Selenium.pm (-2 / +5 lines)
Lines 135-141 sub submit_form { Link Here
135
    }
135
    }
136
136
137
    my $default_submit_selector = '//fieldset[@class="action"]/input[@type="submit"]';
137
    my $default_submit_selector = '//fieldset[@class="action"]/input[@type="submit"]';
138
    $self->driver->find_element($default_submit_selector)->click
138
    my @elts = map { my $size = $_->get_size; ( $size->{height} && $size->{width} ) ? $_ : () } $self->driver->find_elements($default_submit_selector);
139
140
    die "Too many forms are displayed. Cannot submit." if @elts > 1;
141
142
    return $elts[0]->click;
139
}
143
}
140
144
141
sub click {
145
sub click {
142
- 

Return to bug 29458