Reporting a Bug
Internet Explorer fails to scroll on a custom angular dropdown
Internet Explorer should scroll our custom dropdown before clicking/performing actions
Click the last element of our custom dropdown. Chrome and Firefox scroll fine.
I created a code pen and a test case.
This is a simplified version of our angular component, but the dom element and the style is the same.
Tested page URL:
https://codepen.io/anon/pen/rKmRNo
Test code
import { Selector } from 'testcafe';
fixture `IE BUG`
.page('https://codepen.io/anon/pen/rKmRNo');
test(`Cannot click on the last element`, async t => {
let iframe = Selector('iframe.result-iframe');
let last = Selector('p').withText('Ten');
await t
.wait(10000)
.switchToIframe(iframe)
.expect(last.exists).ok('The element exists')
.click(last);
});
Hi @berrutti,
I've reproduced this problem and will investigate it.
The hasScroll function works incorrectly in IE11 if an element has the overflow-x: auto CSS attribute only. In other browsers, computedStyle.overflowX and computedStyle.overflowY equal auto by default. In IE11, computedStyle.overflowY equals visible. Test is passed if I change the overflow-x: auto line to overflow-y: auto in example higher.
Thank you very much. We added the changes and can confirm it now scrolls properly. Thanks a lot.
TestCafe should properly handle this case
I'm working on it
Test cases:
<body><html>This issue has been automatically marked as stale because it has not had any activity for a long period. It will be closed and archived if no further activity occurs. However, we may return to this issue in the future. If it still affects you or you have any additional information regarding it, please leave a comment and we will keep it open.
Most helpful comment
TestCafe should properly handle this case