TT#56376 selenium: fix for 'stale element reference' in ctr_subscriber

controller_subscriber.t:
- fix 'stale element reference' error which happens occasionally

Change-Id: If1c00b32060b975618f988c318e1a7b27135dd10
changes/92/31192/1
Nico Schedel 6 years ago
parent 25ae53fa19
commit a7dab67c8e

@ -200,6 +200,8 @@ $d->find_element("Edit", 'link_text')->click();
diag('Add Subscriber to profile');
$d->scroll_to_element($d->find_element('//*[@id="profile_setidtable_filter"]/label/input'));
$d->fill_element('//*[@id="profile_setidtable_filter"]/label/input', 'xpath', 'thisshouldnotexist');
ok($d->find_element_by_css('#profile_setidtable tr > td.dataTables_empty'), 'Garbage Text was not found');
$d->fill_element('//*[@id="profile_setidtable_filter"]/label/input', 'xpath', $setname);
ok($d->wait_for_text('//*[@id="profile_setidtable"]/tbody/tr/td[3]', $setname), 'Subscriber Profile was found');
$d->select_if_unselected('//*[@id="profile_setidtable"]/tbody/tr/td[5]');

Loading…
Cancel
Save