TT#56376 selenium: add missing scroll_to_element

controller_subscriber.t:
- add a missing scroll_to_element, to prevent crashing if element is out
of screen

Change-Id: Iaa3b2007c17006ab2cb38d9209cedeade5f0e60d
changes/01/30801/1
Nico Schedel 6 years ago
parent ad4444f89b
commit 11b4ffc850

@ -180,6 +180,7 @@ sub ctr_subscriber {
ok($d->find_element_by_xpath('//table//tr/td[contains(text(), "record_call")]/../td//input[@checked="checked"]'), "Call recording was enabled");
diag('Trying to add a simple call forward');
$d->scroll_to_element($d->find_element("Call Forwards", 'link_text'));
$d->find_element("Call Forwards", 'link_text')->click();
$d->move_and_click('//*[@id="preferences_table_cf"]/tbody/tr/td[contains(text(), "Unconditional")]/../td/div/a[contains(text(), "Edit")]', 'xpath');
$d->fill_element('//*[@id="destination.uri.destination"]', 'xpath', '43123456789');

Loading…
Cancel
Save