Feb-03-2020, 07:17 AM
Still I am getting below error after changing from 0 to 1.
Error:C:\Users\Klsingh\Anaconda3\lib\site-packages\ipykernel_launcher.py:4: DeprecationWarning: use driver.switch_to.window instead
after removing the cwd from sys.path.
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-22-8eb1449d4630> in <module>
4 wd.switch_to_window(wd.window_handles[0])
5 buttons = rest_types_buttons()
----> 6 buttons[1].click()
7 driver.switch_to_window(wd.window_handles[0])
IndexError: list index out of range