From 604ca574878ab304ab8fcc20c48bb2357248fbb8 Mon Sep 17 00:00:00 2001 From: Nico Schedel Date: Thu, 12 Sep 2019 11:45:07 +0200 Subject: [PATCH] TT#56376 selenium: edit invalid fallback element which caused issues controller_ncos.t: - edited one fallback element to something thats better detectable for selenium (edit button for setting adm_cf_ncos) Change-Id: Iaefdb6cc46bf8eb8b0f2078a5562265af7110792 --- t/selenium/controller_ncos.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/selenium/controller_ncos.t b/t/selenium/controller_ncos.t index 90057d495a..22691673c4 100644 --- a/t/selenium/controller_ncos.t +++ b/t/selenium/controller_ncos.t @@ -214,7 +214,7 @@ $d->find_element("Call Blockings", 'link_text')->click(); $d->scroll_to_element($d->find_element('//*[@id="preference_groups"]//div//a[contains(text(),"Call Blockings")]')); diag("Edit setting 'NCOS'"); -$d->move_and_click('//table//tr//td[contains(text(), "ncos")]/../td//a[contains(text(), "Edit")]', 'xpath', '//*[@id="preference_groups"]//div//a[contains(text(),"Call Blockings")]'); +$d->move_and_click('//table//tr//td[contains(text(), "ncos")]/../td//a[contains(text(), "Edit")]', 'xpath', '//table//tr//td[contains(text(), "adm_cf_ncos")]/../td//a[contains(text(), "Edit")]'); ok($d->find_element_by_xpath('//*[@id="mod_edit"]/div/h3[contains(text(), "Edit Preference")]'), "Edit Window has been opened"); ok($d->find_element_by_xpath('//*[@id="ncos"]/option[contains(text(), "' . $ncosname . '")]'), "Element was found"); $d->find_element('//*[@id="ncos"]/option[contains(text(), "' . $ncosname . '")]')->click();