Automation done when used jupyter

When I try to write the code for automation in a python script, it gives the error ElementClickInterceptedException. This arrives when the toggle button needs to be clicked.

hey @Mohit2000,
This happens because selenium works in somewhat way a human work.
So , if you try in incognito mode doing the same task as you are doing now , you will see an message box appearing asking about cookies or something.
Due to this message selenium can’t focus on the main window and hence raises an exception.

to overcome this , using selenium code just scroll the current browser window ,so that your button that you want to click appears in the center of the page and hence it can be then clicked.

I hope it helps.

So we have to scroll to the current browser window manually. I didn’t get it. Can you explain a bit more

no , not manually . We do this by code.
have a look here.

This will help.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.