From 2e5d910d9401c4fa8f105d8f9502d9e4ea27bb99 Mon Sep 17 00:00:00 2001 From: Kohei Yoshino Date: Wed, 13 Dec 2017 16:06:06 -0500 Subject: Bug 1376826 - New HTML Header for BMO --- t/bmo/passwords.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't') diff --git a/t/bmo/passwords.t b/t/bmo/passwords.t index 249cdfb3c..83bea60be 100644 --- a/t/bmo/passwords.t +++ b/t/bmo/passwords.t @@ -198,7 +198,7 @@ sub click_and_type { my ($sel, $name, $text) = @_; eval { - my $el = $sel->find_element(qq{//input[\@name="$name"]}, 'xpath'); + my $el = $sel->find_element(qq{//*[\@id="bugzilla-body"]//input[\@name="$name"]}, 'xpath'); $el->click(); $sel->send_keys_to_active_element($text); pass("found $name and typed $text"); @@ -244,7 +244,7 @@ sub login { $sel->title_is("Log in to Bugzilla"); click_and_type($sel, 'Bugzilla_login', $login); click_and_type($sel, 'Bugzilla_password', $password); - submit($sel, '//input[@name="GoAheadAndLogIn"]'); + submit($sel, '//*[@id="bugzilla-body"]//input[@name="GoAheadAndLogIn"]'); } sub login_ok { -- cgit v1.2.3-24-g4f1b