• 0

polyfills for cross browser support

Do you have a legacy app designed for chrome and suddenly you have to support multiple browsers like IE10+, Firefox and Chrome. Then you will have to use polyfill library. There are few options for polyfill libraries.

1 : Shadow-DOM

https://github.com/tuespetre/shadow-dom Pros :
  • Does not wrap the original DOM with a wrapper. Hence, it allows the selenium automation to work nicely with internet explorer.

2 : Polyfill-io

https://qa.polyfill.io/v2/docs/ Pros:
  • Library does the browser detection work & fetches necessary polyfills when needed
  • Highly configurable

3: Webcomponents

https://www.webcomponents.org/polyfills/ Pros:
  • Allows featuer detection, meaning you download polyfill only when needed
  • Does not interfere with existing application