Instapy: ERROR browsingContextFn().currentWindowGlobal is null

Created on 4 Jan 2021  路  3Comments  路  Source: timgrossmann/InstaPy

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

Most helpful comment

I have the same problem.... any help please?

All 3 comments

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)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thisishotdog picture thisishotdog  路  3Comments

ingorichter picture ingorichter  路  3Comments

neomh picture neomh  路  3Comments

ediooo picture ediooo  路  3Comments

drcyber975 picture drcyber975  路  3Comments