So i never programmed in my life except for some basic c++ and html. I am completely new to InstaPy, to python and to bots in general. I followed the youtube tutorial and installed InstaPy and Python on my windows pc. I also installed brackets to edit the script. I downloaded the follow unfollow basic script, but when i run it and it opens instagram i have to manually accept the cookies before the bot starts to login. Just after the bot clicks on login, the firefox window closes itself and i get this error:
File "C:\Users\frafr\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: TypeError: browsingContextFn().currentWindowGlobal is null
How can i solve? Just tell me what else do i need to post and i will
Thanks
I have the same problem.... any help please?
Possible duplicate of #5989
Go to line 1953 of ".../instapy/util.py" and change "PFL" to "VOEL". Worked for me on Windows 10, python 3.6.
EDIT:
Change line
explicit_wait(browser, "PFL", [], logger, 10)
to
explicit_wait(browser, "VOEL", [], logger, 10)
Most helpful comment
I have the same problem.... any help please?