TT#56376 selenium: yet another fix for crashing fraud limits.

controller_customer.t:
- clicking on fraud limits is now done first instead of scrolling to fraud
limits. This is how it is done everywhere else, so hopefully it fixes it.

Change-Id: I51559dc5f15985d00b2ce7fd930c28ac39cb7428
changes/69/29569/2
Nico Schedel 7 years ago
parent 09be313fe4
commit cfb64bba3d

@ -123,8 +123,8 @@ $d->find_element('//*[@id="subscribers_table_filter"]/label/input')->send_keys($
ok($d->wait_for_text('//*[@id="subscribers_table"]/tbody/tr/td[2]', $username), 'Subscriber was found');
diag("Edit Fraud Limits");
$d->scroll_to_element($d->find_element('//div[contains(@class,"accordion-heading")]//a[contains(text(),"Fraud Limits")]'));
$d->find_element('//div[contains(@class,"accordion-heading")]//a[contains(text(),"Fraud Limits")]')->click();
$d->scroll_to_element($d->find_element('//div[contains(@class,"accordion-heading")]//a[contains(text(),"Fraud Limits")]'));
$d->move_action(element => $d->find_element('//*[@id="collapse_fraud"]/div/table/tbody/tr[1]/td//a[text()[contains(.,"Edit")]]'));
$d->find_element('//*[@id="collapse_fraud"]/div/table/tbody/tr[1]/td//a[text()[contains(.,"Edit")]]')->click();

Loading…
Cancel
Save