TT#83370 selenium: fix scrolling issue when trying to enable opus stereo

test would crash, because it would scroll past the option it wants to enable
this commit should fix it

Change-Id: I97ea9164cd9fa22bd1745c976beeb4f92600dbc9
changes/54/40954/3
Nico Schedel 6 years ago
parent 424642aada
commit b1b2b056fd

@ -137,7 +137,7 @@ $d->find_element('//*[@id="toggle-accordions"]')->click();
ok($d->find_element_by_xpath('//table//tr/td[contains(text(), "opus_mono_bitrate")]/../td/select/option[text()[contains(., "32")]][@selected="selected"]'), 'Correct bitrate was selected');
diag("Enable Opus Stereo");
$d->scroll_to_element($d->find_element('//table//tr/td[contains(text(), "transcode_opus_stereo")]'));
$d->scroll_to_element($d->find_element('//table//tr/td[contains(text(), "transcode_opus_mono")]'));
$d->move_and_click('//table//tr/td[contains(text(), "transcode_opus_stereo")]/../td//a[contains(text(), "Edit")]', 'xpath', '//table//tr/td[contains(text(), "transcode_opus_mono")]');
ok($d->find_element_by_xpath('//*[@id="mod_edit"]/div/h3[contains(text(), "Edit Preference")]'), 'Edit window has been opened');
$d->select_if_unselected('//*[@id="transcode_opus_stereo"]');

Loading…
Cancel
Save