DownloadRestrictions

Allow download restrictions

Supported on:

  • Google Chrome (Linux, Mac, Windows) since version 61
  • Google Chrome OS (Google Chrome OS) since version 61

Description:

Setting the policy means users can’t bypass download security decisions.

Setting the policy to:

* Block dangerous downloads means all downloads are allowed, except for those that carry safety warnings.

* Block potentially…

To scroll to a specific element in selenium, we use scrollIntoView method.

Lets’ understand the scrollIntoView method very quickly.

scrollIntoView:

The Element interface's scrollIntoView() method scrolls the element's parent container such that the element on which scrollIntoView() is called is visible to the user

Ref: https://developer.mozilla.org/en/docs/Web/API/Element/scrollIntoView

Now let’s take an example to understand it properly:

Let’s assume we want to…

Abhishek Dhoundiyal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store