A number of functional tests in widgets either employ workarounds or skip specific browsers to allow them to run. Known driver bugs are also skipped by targeting browsers. We should try to avoid targeting browsers and instead of using the available APIs to do feature detection, etc.
Skips and workarounds
Numbers in (parens) refer to bugs below.
(1) Calendar: Edge driver does not handle mouseup on click.
(8?) Calendar: Skipped if either supportsKeysCommand is false or the browser is Safari "Arrow keys must be supported"
The focusing click event happens on a td element
(2) Calendar: Edge driver does not handle focus on click
Slider: All tests skipped in Edge ("example page doesn't work in Edge")
(8?, 10) Slider: "Click to focus" tests skipped in Firefox and Safari
(11) Slider: mouse movements doesn't work in IE.
(12, 13) Slider: "slider should be slidable with mouse" tests skipped in Firefox and Safari
(14, 15) Slider: pressKeys with arrow keys doesn't work in iphone and IE.
(16) SplitPane: All tests skipped in Safari, Firefox, and Edge (StaleElement, undefined target)
(17) Textarea: getVisibleText includes the textarea placeholder in IE
(18) Textarea: Firefox is not able to locate the input.
(19) Textarea: Classes are not being updated in Safari 9
(20) Timepicker: Firefox throws an error when clicking on the disabled input.
Timepicker: Test does not work on Internet Explorer
(21) ALL: return document.activeElement === document.querySelector('#example-s1 .${css.root} input'); is used in place of APIs
Bugs:
Edge driver doesn't send mouseup event on click
Edge driver does not handle focus on click
FirefoxDriver updates the input value with non-printable characters
Enhancement
A number of functional tests in widgets either employ workarounds or skip specific browsers to allow them to run. Known driver bugs are also skipped by targeting browsers. We should try to avoid targeting browsers and instead of using the available APIs to do feature detection, etc.
Skips and workarounds
Numbers in (parens) refer to bugs below.
(1) Calendar: Edge driver does not handle mouseup on click. (8?) Calendar: Skipped if either
supportsKeysCommand
is false or the browser is Safari "Arrow keys must be supported" The focusing click event happens on atd
element (2) Calendar: Edge driver does not handle focus on click(3, 4) ComboBox: FirefoxDriver and SafariDriver update the input value with non-printable characters. https://openradar.appspot.com/radar?id=6097023048613888 (5) ComboBox: SafariDriver does not move focus with tab key. https://github.com/seleniumhq/selenium-google-code-issue-archive/issues/5403
(6, 7) Dialog: Edge and Firefox are also having trouble with tab key focus. (8) Dialog: SafariDriver doesn't recognize focus on divs
(9) SlidePane: Edge driver does not handle mouse movements correctly. https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11469232/
Slider: All tests skipped in Edge ("example page doesn't work in Edge") (8?, 10) Slider: "Click to focus" tests skipped in Firefox and Safari (11) Slider: mouse movements doesn't work in IE. (12, 13) Slider: "slider should be slidable with mouse" tests skipped in Firefox and Safari (14, 15) Slider: pressKeys with arrow keys doesn't work in iphone and IE.
(16) SplitPane: All tests skipped in Safari, Firefox, and Edge (
StaleElement
, undefined target)(17) Textarea:
getVisibleText
includes the textarea placeholder in IE (18) Textarea: Firefox is not able to locate the input. (19) Textarea: Classes are not being updated in Safari 9(20) Timepicker: Firefox throws an error when clicking on the disabled input. Timepicker: Test does not work on Internet Explorer
(21) ALL:
return document.activeElement === document.querySelector('#example-s1 .${css.root} input');
is used in place of APIsBugs:
getVisibleText
includes the textarea placeholder in IEfindByCssSelector
followed by.getActiveElement()
may result in different elements